From patchwork Thu Jul 16 08:08:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 11666835 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E0DC913B4 for ; Thu, 16 Jul 2020 08:10:38 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B9635206F4 for ; Thu, 16 Jul 2020 08:10:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dx5YDgNK"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="PCX3eNBJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B9635206F4 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Wq0pbfndatbHdUcd1EIwHk+iBwf6KaBLpcmg4Xubax4=; b=dx5YDgNKML/enBEcbNcvxKcpZa M7vTmYDgLhkclph9WdpU/CbVJMs77FsgceGIWXiZiTkktmdxC1QoZXlnoOd0SIfRmJV3PYJXKhLt1 PuK4ZjfBbjmC1y5CoyB5AAPj1ANrqpr8+VesWiRBz/UKI9gU2hpa92ldSCJtNFMxpnpcpjjEbzHTz zsJksfzl/DMBGnqqCzYN6bmESJXtHY4U4NNsEIxG8zfsbrO5hA6L8Pmbdwaf0nxNqF3DeHmUbKRQ7 Mhx574+TuKeBC2HX/OmBX2mBd0MzMvhk7pVJYUGyq0COBIJswyCQBtiXStoFD0UQBAoSbBSd55oZl cWkmp14A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvyws-0002yL-2D; Thu, 16 Jul 2020 08:08:58 +0000 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jvywp-0002xG-AW for linux-arm-kernel@lists.infradead.org; Thu, 16 Jul 2020 08:08:56 +0000 Received: by mail-pf1-x435.google.com with SMTP id u185so3328806pfu.1 for ; Thu, 16 Jul 2020 01:08:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DQl00yYXYwsbpEtRwxsV9i6tqBPWGw0OYdTItL8Npos=; b=PCX3eNBJh2mqYNaMPMn0gVvxkCAmz8mqNsRWiN5HBvqOC3YNoY+sXnQEa7TLgzm7yz OxRZajCzl6VnFa0FbTdELIg4dQXr66IYV9Xb3vjeNrQCLsdGmhpg3pWKBlVTqgYEv0lK gxQsQ9Tofpz1qTaejYFP6lDGToXNhgTJMrM04= 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:in-reply-to :references; bh=DQl00yYXYwsbpEtRwxsV9i6tqBPWGw0OYdTItL8Npos=; b=ko1gcpFnYe4EkZp4xaQFEc8Dw1PaWZFSmgPQMdDIJ3PKMZGpp2hJF25oDW3kUpylB/ Ggxwt71nBdWh+UVrMHVWEpDPncmLIrmd+zxda1rVbVrg0/JAlpkubiRCut6WPv+ofDZE Kdy4iKRqcbW0oQeNvi2OOfAH1fdKGgW66o6gJifMyWmsahZoG8wiA8JPUbr5V+u5laiO 745+SY+I9PT3D89VbzOTqpAYWI9RuqDnCoGRQR97Xwa1nypKFl/GGVKiqMoN2YgThPer nZNJ3pddN8+gojKxxCaAtafKqZ6L7H9N5C5yTvPpXvGElLDLdSOlH9UDEmmcBfjh8i0X MUZQ== X-Gm-Message-State: AOAM533jmLCcK2manSbwX22Rrtp+8nghdvA+O4qjet+zYGUFJUF4qnzm 9x/3yxgj18DkAMfUJ3ZjvhMsuQ== X-Google-Smtp-Source: ABdhPJxm7zAj2YaUS8iycAQbwnHzDM0z0BXDv4TUVD79cq9vyE7R2aq700W4lTKv5MMyGXmEi6aBUA== X-Received: by 2002:a62:347:: with SMTP id 68mr2540133pfd.185.1594886933131; Thu, 16 Jul 2020 01:08:53 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id a3sm4353085pgd.73.2020.07.16.01.08.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2020 01:08:52 -0700 (PDT) From: Rayagonda Kokatanur To: Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Lori Hikichi , Robert Richter , Nishka Dasgupta , Andy Shevchenko , linux-arm-kernel@lists.infradead.org Subject: [PATCH V1 1/2] i2c: add PEC error event Date: Thu, 16 Jul 2020 13:38:35 +0530 Message-Id: <20200716080836.2279-2-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200716080836.2279-1-rayagonda.kokatanur@broadcom.com> References: <20200716080836.2279-1-rayagonda.kokatanur@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200716_040855_393851_2575C964 X-CRM114-Status: GOOD ( 11.34 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:435 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - Whitelisted High sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rayagonda Kokatanur MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add new event I2C_SLAVE_PEC_ERR to list of slave events. This event will be used by slave bus driver to indicate PEC error to slave client or backend driver. Signed-off-by: Rayagonda Kokatanur --- include/linux/i2c.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/i2c.h b/include/linux/i2c.h index b8b8963f8bb9..e04acd04eb48 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -370,6 +370,7 @@ enum i2c_slave_event { I2C_SLAVE_READ_PROCESSED, I2C_SLAVE_WRITE_RECEIVED, I2C_SLAVE_STOP, + I2C_SLAVE_PEC_ERR, }; int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb);