aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/chrome/wilco_ec/core.c
diff options
context:
space:
mode:
authorNick Crews <ncrews@chromium.org>2019-05-08 15:38:09 -0600
committerEnric Balletbo i Serra <enric.balletbo@collabora.com>2019-05-20 10:18:10 +0200
commit2ad1f7a91449de48d4bd5d1ec361ba7bb9026505 (patch)
treead401ffdcca8ad1fa4cca0f6ab175058bb8bc846 /drivers/platform/chrome/wilco_ec/core.c
parentplatform/chrome: wilco_ec: Add Boot on AC support (diff)
downloadlinux-dev-2ad1f7a91449de48d4bd5d1ec361ba7bb9026505.tar.xz
linux-dev-2ad1f7a91449de48d4bd5d1ec361ba7bb9026505.zip
platform/chrome: wilco_ec: Remove 256 byte transfers
The 0xF6 command, intended to send and receive 256 byte payloads to and from the EC, is not needed. The 0xF5 command for 32 byte payloads is sufficient. This patch removes support for the 0xF6 command and 256 byte payloads. Signed-off-by: Nick Crews <ncrews@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Diffstat (limited to 'drivers/platform/chrome/wilco_ec/core.c')
-rw-r--r--drivers/platform/chrome/wilco_ec/core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/platform/chrome/wilco_ec/core.c b/drivers/platform/chrome/wilco_ec/core.c
index abd15d04e57b..45cf3a5ed062 100644
--- a/drivers/platform/chrome/wilco_ec/core.c
+++ b/drivers/platform/chrome/wilco_ec/core.c
@@ -52,9 +52,7 @@ static int wilco_ec_probe(struct platform_device *pdev)
ec->dev = dev;
mutex_init(&ec->mailbox_lock);
- /* Largest data buffer size requirement is extended data response */
- ec->data_size = sizeof(struct wilco_ec_response) +
- EC_MAILBOX_DATA_SIZE_EXTENDED;
+ ec->data_size = sizeof(struct wilco_ec_response) + EC_MAILBOX_DATA_SIZE;
ec->data_buffer = devm_kzalloc(dev, ec->data_size, GFP_KERNEL);
if (!ec->data_buffer)
return -ENOMEM;