From patchwork Fri Jul 17 09:01:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rayagonda Kokatanur X-Patchwork-Id: 11669565 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 EEA7160D for ; Fri, 17 Jul 2020 09:03:26 +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 C622B207FB for ; Fri, 17 Jul 2020 09:03:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="W+QHs0QF"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="aTYRu6Wq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C622B207FB 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: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:In-Reply-To:References:List-Owner; bh=0vkI6xkSzA462MT9lfJOI30lMyMO3wmRzFRFoMA1YZo=; b=W+QHs0QFhBrhS3VK6GvxKjAT0O SSdCmvm8f5EQcU8v6SwZOxCkS9vk4dRrVcoRLyAVP8VIuNnHRnBn5HQC0utPL9LyD94U5WcnoVfa5 nQC/Vz0TKVVvBy3I3GdDtX1dsbI5ZIt3bLvzX+pE9Xp4zlLOir8KSIun4o+9tHz9MbRElqVj12DIF /pYEei3jh4OzjtytX1M1JHvD6FySJvn6SzpZZYRKJQZxMJhU1ZcqnUJ0+42ez+JraOM372uM7KiMU SV8m/DCQWLq3P+YCRGgZDUm5oBDflzvMs3KF7ZcNHrmMNuc9VF2gHRTx/on2HlDnWdlJy0Og3siot X6am+tBQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwMFy-0004Hc-3o; Fri, 17 Jul 2020 09:02:14 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jwMFu-0004GX-Kb for linux-arm-kernel@lists.infradead.org; Fri, 17 Jul 2020 09:02:11 +0000 Received: by mail-wr1-x42d.google.com with SMTP id k6so10212033wrn.3 for ; Fri, 17 Jul 2020 02:02:09 -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; bh=UnjoNpdodzX7PZWMpGc2XxyIkrG22+hxSEEF2NRUIqo=; b=aTYRu6Wq43Tp/39GoKIOYNLuuNS3uBZb8KPaKWyrImAEbbjA8UT45QNx46/RD1Ky+u kkq5/kJA95MU/n+zBO4aQqiQ64OORCAbmwuwTsCEcDzaum//aTJFCpz7Be+9LywJpLnR js/1MpoJ1V8D3dmuueDYnMUw/KiLs9Q03KmpM= 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; bh=UnjoNpdodzX7PZWMpGc2XxyIkrG22+hxSEEF2NRUIqo=; b=P65eN45KRDvI64jzFF6DPjzTf3AwlNwBD818g4+T6wRGFDmHph7IY46460sW+IqB4n HS5Qzf9G9Z5HpIhIbj4ubGD3QZmPdhj7YaeARWOs8qZflsWOHxWBsxBwIdMy1T3O9Cua llfrwD1O7mgpHZwD5ThUunySx85UP5Ea1i6WZ74IDsWXDw482sC7DXUb7IYvnQgq6Y7F 69LT2qOOiQi0gABiyZE6uyp1vOpNfaPxna7dDJGzYUq6tM79EI9jXXad+QAkAQ7kIVFs c8JuozzJpcCyVZSxgRsFVEmgGqn/qKJK5i4v1ZCSxssqxJqrMOycvbxkXdsDlTBf9Juw Prug== X-Gm-Message-State: AOAM532FCoL6g976vJgDm5qWRBndVpyJEMuRuBUQUBKauAWElPyvDGTo C8bDHRTHHEzhhFEE9lpDeIx+0A== X-Google-Smtp-Source: ABdhPJxEonsfrDX0Dd91odQ0lshO6H7U+LzQjtWP+J4Jzo+XWVGZPBnxRsSwTZg2eUmSQaJs6M7Jtw== X-Received: by 2002:adf:e3c5:: with SMTP id k5mr9414650wrm.121.1594976528383; Fri, 17 Jul 2020 02:02:08 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2020 02:02:07 -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 0/2] add PEC support on slave side Date: Fri, 17 Jul 2020 14:31:53 +0530 Message-Id: <20200717090155.10383-1-rayagonda.kokatanur@broadcom.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200717_050211_014527_68E9A05B X-CRM114-Status: UNSURE ( 9.13 ) X-CRM114-Notice: Please train this message. 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:42d 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 This patch set adds support for PEC on Slave side. Changes from v1: -Address review comments from Andy Shevchenko Update commit message, Rewrite bcm_iproc_smbus_check_slave_pec() to remove local variable ret and type casting, Use positive condition. Rayagonda Kokatanur (2): i2c: add PEC error event i2c: iproc: add slave pec support drivers/i2c/busses/i2c-bcm-iproc.c | 49 +++++++++++++++++++++++++++--- include/linux/i2c.h | 1 + 2 files changed, 46 insertions(+), 4 deletions(-) Reviewed-by: Andy Shevchenko