From patchwork Fri Jul 17 09:01:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 11669567 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 3951760D for ; Fri, 17 Jul 2020 09:03:33 +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 116C0207FB for ; Fri, 17 Jul 2020 09:03:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="kv2ZimKi"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="eKvpq7Vc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 116C0207FB 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=kv2ZimKiWGlHPpyEoCIfhlJ0v2 PDHomiB4kbZLUGuJgLMkPBEIV4n9ng8PdtvbSd9/3GFHF71fFeJTTdnFMi2PdYz5+6kumBKQkynF4 2DOySHR8xM4vuobm7Dli1rQpzrIdYGzb+EijhyyX3uhIzI/v8yqc2URqQ4xuy/d9Nfg6vW8Q7N941 HqKcQxvs6f5I6/lIisCqBMVU0s2A6Z59bEq6X8Xv1zZhgU3WLrCuTSFt7C1qfeJ0qUbEmMc9dPjwW HzJfHinfGJudDqzcW1UOeDx+UqcBTjs02+BWJUtOV6sOV/gq/f0P90FgueeHxoCfYwKGfIOeYsttY OhS5e+fQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwMG3-0004Iy-59; Fri, 17 Jul 2020 09:02:19 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwMG0-0004I8-Pf for linux-arm-kernel@lists.infradead.org; Fri, 17 Jul 2020 09:02:17 +0000 Received: by mail-wm1-x329.google.com with SMTP id g75so13864627wme.5 for ; Fri, 17 Jul 2020 02:02:16 -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=eKvpq7Vc+pWXLiZBlozFZ+/crmGW074XhcYNp3r4fmPCGI8tcs9WINywIQKdsPseE2 8ANxuaBJTN/gfFuBoIKiKMD6t/RoizLQC/C5FpqaQuNzoK80pqOr/gkmFMoH6nt0lItv fwm7+63jhaXuoSSeEEcHzQQuQqzfAfoV62LvY= 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=DTBHZVzwnMk8Qv0u1GxbuCxNB8TTaOj+r6+L0bzn0sBp5TfsPnj99qpZ8X6qWDVkQD 0W9Ny3XaIhxZKW77XCddw+2hVJG+xY0c/VvWrhzIME0KyMG//T4ru7JBMFqdSDQzgb24 Hb89AYltvGROyLIllDPB/6TwXci6hHZw8RD5xJO/6kp1Ao+5b0zwlj7Vu31vhRJfcZyB tm1C0YrhbdOmYYHMkMGgddEZSX3RqarAqRCbtztViBBZZmfRl8xvw+HrIhrnVfXEv23W Cr/9BRD15OqZMAPbWnW/wh9csqcVpjpPdHVkNQ5DtIEma7S57SVJ4Zqh3JXGv/KkaXDj 0Lrg== X-Gm-Message-State: AOAM533NJh8JryX+VWSEe/sIv48RPTpwByf0/0QAyC+WBWzyA2XMIuRz 7TBCIGqpxZda+dACB+RREZxYuQ== X-Google-Smtp-Source: ABdhPJxkxy6FlQOiuxDgHDw4Xc4tE6UUCy+720USQNgwde4/nwbXPW0bbDuGrlGPXgKWc23kFw+LHw== X-Received: by 2002:a1c:48d:: with SMTP id 135mr8559807wme.102.1594976535435; Fri, 17 Jul 2020 02:02:15 -0700 (PDT) Received: from rayagonda.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id w7sm12360705wmc.32.2020.07.17.02.02.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 02:02:14 -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 v2 1/2] i2c: add PEC error event Date: Fri, 17 Jul 2020 14:31:54 +0530 Message-Id: <20200717090155.10383-2-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200717090155.10383-1-rayagonda.kokatanur@broadcom.com> References: <20200717090155.10383-1-rayagonda.kokatanur@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200717_050216_925060_DD51F200 X-CRM114-Status: GOOD ( 11.33 ) 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 [2a00:1450:4864:20:0:0:0:329 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -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);