From patchwork Fri May 3 22:02:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 10929305 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8B190912 for ; Fri, 3 May 2019 22:03:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79E2F287CE for ; Fri, 3 May 2019 22:03:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6DC7B287D1; Fri, 3 May 2019 22:03:46 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8CEE1287CE for ; Fri, 3 May 2019 22:03:45 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 61D6D17E7; Sat, 4 May 2019 00:02:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 61D6D17E7 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1556921023; bh=pY47dtW7DP5BKMVc3vlbV8dJ6hQDgnPOVX0lR159/94=; h=From:To:Date:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=a8C4jYaoMdyxcSaHzn3ZIrUouQY3TWqVUsHIY7MvlLbwzXc1cIpQrQQXtLgC/6XEK DktT2yOLAXAa8wmZL8XtR3WfNoQeLlIXqkEY2XwwoI10kKYaq8UaRXgL0pDeJCp9Eu E77A/hmL1wwO3w05cafntCiiHEYrqtKvuaX9MK7k= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 82FABF896B6; Sat, 4 May 2019 00:02:52 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa1.perex.cz (Postfix, from userid 50401) id A5089F80720; Sat, 4 May 2019 00:02:48 +0200 (CEST) Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 7B120F80720 for ; Sat, 4 May 2019 00:02:43 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7B120F80720 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="JsedSoz7" Received: by mail-pf1-x442.google.com with SMTP id b3so3548972pfd.1 for ; Fri, 03 May 2019 15:02:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UAkZh+pG3X7RhxhjtR/tZOT3SAC9uY31R80VLP/yIuQ=; b=JsedSoz7wKFSnaH6jn4rCeN58mmcMcynZw3khYX3cgPvEqus+JNQZwJcs7t6++F4ia WIdviprjMaJ9gvQh8lACs7qxQxaMCYdPdXH9C/Z1g5PQFqd1nrU/rDFcDZR9RNUJHgSP AwiXbqHkP3Tu96dinRppVrhvt9EcpANfA4VVI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=UAkZh+pG3X7RhxhjtR/tZOT3SAC9uY31R80VLP/yIuQ=; b=JovMnZIHY+Ck9ysY/EEy4UczWSloeQunQPz4LtkN0zYfv2TuNbhfMw/vT6+Im7T141 7w97JCziprgnLiIGcKyO1bHUgy8Z74ZQ0V8IxDNG1tkvBZhBPNRKqC9LULS7sp2P6gCx mrZZhWYJDVmfhL+zJExXY5w/9WkHehLm2qIfJv5KfKed74NaSFApj/CCpLDThsZ9WO1m Cju+EtRSaqaUzYMOoD6IjrUzjObidaqYp8UVNX/8ThiXtH5Io0pO+R7lFYWaxy048sHI OU7Intm5hKoZPZUfmKCAA6CX7u5SIVh4sVzaTT242R3zG7YFj+zRQR6EN6vdHMDPDvDt P2zg== X-Gm-Message-State: APjAAAVadsy4PB19gc/I3xi2rGzLkG0GTVcnp9JljobPPByzWDn1xfjg drxarJOFmMVhJGo+iWEoIqHOEg== X-Google-Smtp-Source: APXvYqye04AAIXZnSLyIndCwXAXdHVgkKP1uVoNTcf32J5fI9MQPwyrqamzRblzQLzNnMyL3pMWsxQ== X-Received: by 2002:a62:470e:: with SMTP id u14mr14522795pfa.31.1556920962181; Fri, 03 May 2019 15:02:42 -0700 (PDT) Received: from localhost ([2620:15c:202:1:3c8f:512b:3522:dfaf]) by smtp.gmail.com with ESMTPSA id j14sm3967888pfa.57.2019.05.03.15.02.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 15:02:41 -0700 (PDT) From: Gwendal Grignou To: enric.balletbo@collabora.com, bleung@chromium.org, groeck@chromium.org, lee.jones@linaro.org, jic23@kernel.org, broonie@kernel.org, cychiang@chromium.org, tiwai@suse.com Date: Fri, 3 May 2019 15:02:03 -0700 Message-Id: <20190503220233.64546-1-gwendal@chromium.org> X-Mailer: git-send-email 2.21.0.1020.gf2820cf01a-goog MIME-Version: 1.0 Cc: linux-iio@vger.kernel.org, alsa-devel@alsa-project.org, Gwendal Grignou Subject: [alsa-devel] [PATCH v2 00/30] Update cros_ec_commands.h X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" X-Virus-Scanned: ClamAV using ClamSMTP The interface between CrosEC embedded controller and the host, described by cros_ec_commands.h, as diverged from what the embedded controller really support. The source of thruth is at https://chromium.googlesource.com/chromiumos/platform/ec/+/master/include/ec_commands.h That include file is converted to remove ACPI and Embedded only code. From now on, cros_ec_commands.h will be automatically generated from the file above, do not modify directly. Fell free to squash the commits below. Changes in v2: - Move I2S changes at the end of the patchset, squashed with change in sound/soc/codecs/cros_ec_codec.c to match new interface. - Add Acked-by: Enric Balletbo i Serra Gwendal Grignou (30): mfd: cros_ec: Update license term mfd: cros_ec: Zero BUILD_ macro mfd: cros_ec: set comments properly mfd: cros_ec: add ec_align macros mfd: cros_ec: Define commands as 4-digit UPPER CASE hex values mfd: cros_ec: use BIT macro mfd: cros_ec: Update ACPI interface definition mfd: cros_ec: move HDMI CEC API definition mfd: cros_ec: Remove zero-size structs mfd: cros_ec: Add Flash V2 commands API mfd: cros_ec: Add PWM_SET_DUTY API mfd: cros_ec: Add lightbar v2 API mfd: cros_ec: Expand hash API mfd: cros_ec: Add EC transport protocol v4 mfd: cros_ec: Complete MEMS sensor API mfd: cros_ec: Fix event processing API mfd: cros_ec: Add fingerprint API mfd: cros_ec: Fix temperature API mfd: cros_ec: Complete Power and USB PD API mfd: cros_ec: Add API for keyboard testing mfd: cros_ec: Add Hibernate API mfd: cros_ec: Add Smart Battery Firmware update API mfd: cros_ec: Add I2C passthru protection API mfd: cros_ec: Add API for EC-EC communication mfd: cros_ec: Add API for Touchpad support mfd: cros_ec: Add API for Fingerprint support mfd: cros_ec: Add API for rwsig mfd: cros_ec: Add SKU ID and Secure storage API mfd: cros_ec: Add Management API entry points mfd: cros_ec: Update I2S API include/linux/mfd/cros_ec_commands.h | 3735 +++++++++++++++++++++----- sound/soc/codecs/cros_ec_codec.c | 8 +- 2 files changed, 2997 insertions(+), 746 deletions(-) Acked-By: Benson Leung