From patchwork Tue Aug 27 17:04:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 11117305 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 948A613B1 for ; Tue, 27 Aug 2019 17:05:30 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 68A962173E for ; Tue, 27 Aug 2019 17:05:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="F0uWGVC2"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="hEwUgqVa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 68A962173E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gmx.net 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=bombadil.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=oyDlXLb/Da+VdrP9JfanFT71TqnYcLZ97q9fz26Qfgo=; b=F0uWGVC2H2W6MZmlZWkDKopvT3 pvdhX1TniAZzu0P/WbrIp7RE7IgXoStxHV5ag8c+p75C9LE59BIpu6S0yb3Mw1JBfU6l47gF3rNCi GxSCIR5Ta36n9GnoKPBjEE6bUhtQK3afeZafA+eWbQHS54gsB3f9cf9uSUmck3ZSLF3pZ1rw+zoRv 3JN+S5qiWMsXqIiNUD36AGnzlK2Fz45WRWyUYB2aEAfVdCrxcq68RSc+Fcsv1aoyH9tpSvJg7Bqzg YzmTFZ9vItsPw0qhsYE65oq00ff8CZ3YaZi5krkOlyNfUjC0LMXfSV9S+/AUPI2YBGN9adAk+ZxYX NwMBZ8sg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2euI-0007hb-OV; Tue, 27 Aug 2019 17:05:22 +0000 Received: from mout.gmx.net ([212.227.15.18]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2eu4-0006SL-F7 for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2019 17:05:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1566925495; bh=4j2ABTJxXzVQpL1MUAY5wsip78ebEuKdC8l4vRx7EGc=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=hEwUgqVaNCqE/dzyWKEOO0BL1Jy88FW4iCc+pt0yDQ6MmArvC+vLPcTsPGXAkm9eC GoDCMgTHjrrXOf/y+AxpAdpTVZCLpsl1CH20VMGLeQzgvIywGAnPacehTilT8vHzpW 4rU2dV8iZLl2U9WubhiSlJVN7Zu4pY5zLtjgtROY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([37.4.249.106]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LyEqr-1iEXVC300D-015c7i; Tue, 27 Aug 2019 19:04:55 +0200 From: Stefan Wahren To: Wolfram Sang , Eric Anholt , Florian Fainelli , Ray Jui , Scott Branden Subject: [PATCH 1/3] dt-bindings: i2c: bcm2835: Add brcm,bcm2711 compatible Date: Tue, 27 Aug 2019 19:04:14 +0200 Message-Id: <1566925456-5928-2-git-send-email-wahrenst@gmx.net> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566925456-5928-1-git-send-email-wahrenst@gmx.net> References: <1566925456-5928-1-git-send-email-wahrenst@gmx.net> X-Provags-ID: V03:K1:KrvTLehEGpnLznYvNUOXcPZV4nLSLV7YsDxTvKjwp/Im4ZcKLfx NDSV4j3sntIH7leBqwk3CIBRzER5r6wgp0vbCdGJcsykK4HWy9Uha+g/hI0O51rM/wPgiHD 5I3XnUPLVulET1NJLjQqiXzQRz3B12xFbicDGuOyvTzMDWAo5H+lg1wGVo8hIHn493NHlRG N99Q95uNlnMRYyPtesB7A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:W376pQCHREo=:v8k8uKMZ99f8P7I+UOXMs+ gZukDeraPdNnkwEeoIGqMPHI81RIe1WPdIlkWYwc86131Efjn+zux5cWk9DgQSbvJNXVc7C70 /GM0pmwOyp0y1sTQXEycle9lHOtj1mSVyj0bIJVlFheyNjkYE411gXx9h6jGxtbqzaMiyIH9k 7n89Z5GjqsxTRR3oMwXMRe8gHI1UlkAV2KTjEo7spelmXNa26jxxaExIEeaGP7ZH3Iv3jW60t cQT7x5UxbV7g2L5x0LqzJEVgjnMlLK06dSw+soDWS+sKjYIMCTBeBNxDOy51i0LKcc/zf7k8x JG7pa6BO78XcMcTdbieBZhCH6MyQUoCFNITRQVUwvbt7l8+fG4JTCCIPMr3jBcyrLHUBBr9cK JcipZt/SArexNypDTHPEZoDV40C3oaprO10gS4XG81WuJ2g4mHhawjeHgr0oiOLjYpCiQO4qC oUa/UjPA9lYxTJiHQiuk0KJbatzmlUC1qOokycotes5eTtfXDHZ7G/eePZel1Hw05dT3fXtpk NAIwFnXFlU81a2mj0/sKKy3HP0eWEjb/APD94BvyYKWAGjs+VD/GzjEghpzKjo6zjPJ48XRok V7l3CWsEAieuVDyTHAItSMG3ZTO/5mIuNLeRV8i0xIzNeA8eDB0qBFPLBDwmGpTb/a8S2gB0r D7kDo9eoJ+8Vb/2+TSs8LVPuSXdURFT8xXLhXL3mfsGjJQutSRtOi8btVSJjZmQpOoKSH66m9 MGCUeIKKJUY60aBjy02GLTsBVntMQtvxxVMVhnH7rfOeTZ2EaRZvZ6k+YeV6Wir1a+hY3HKD0 PmFu5QQ+vkFXFVe97qyJe35oH+7jSQrKJ9ciQcfar2ZghQGoTooWUdGtXRUK5FtzlH5C1u9Zb xvwajglRrSnkhlv9IrZOxYZlwcyg2Md74dSkVv5zVY8jlpEzhV7RV3qRfbCT1Pb22LjiUPmQH ktmFmVhgY3rVGNMPd2w7ktUwAp1488Aggamp/cjJyq5usUfiYGMUj2JNKOcg9ppB8WMZh1hFK jVcP68sSvPx3QB/Mlh6b8JpXyim6n4p/mgUeeK5XvHVdiqzRdTQ0aGfsFM+B0aS7tCLbEt6oZ fAOvXp/naKOv87IjJm0JF/ynk+Tp0ys9Z/MAdgFU26sKeeV7hB9VZVTZ5Fpq0W2r4ddwYDsQQ SrKyJtYdWM2jtp0Hbd4LXL3GMX5VmqUR06Z33XowuoSFMOcw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190827_100508_885577_2B4B35E6 X-CRM114-Status: GOOD ( 10.60 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.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 [212.227.15.18 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (wahrenst[at]gmx.net) -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_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 Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Wahren MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Add a new compatible for the BCM2711, which hasn't the clock stretch bug. Signed-off-by: Stefan Wahren Reviewed-by: Eric Anholt Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/i2c/brcm,bcm2835-i2c.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/Documentation/devicetree/bindings/i2c/brcm,bcm2835-i2c.txt b/Documentation/devicetree/bindings/i2c/brcm,bcm2835-i2c.txt index e9de375..c9a6587 100644 --- a/Documentation/devicetree/bindings/i2c/brcm,bcm2835-i2c.txt +++ b/Documentation/devicetree/bindings/i2c/brcm,bcm2835-i2c.txt @@ -1,7 +1,9 @@ Broadcom BCM2835 I2C controller Required properties: -- compatible : Should be "brcm,bcm2835-i2c". +- compatible : Should be one of: + "brcm,bcm2711-i2c" + "brcm,bcm2835-i2c" - reg: Should contain register location and length. - interrupts: Should contain interrupt. - clocks : The clock feeding the I2C controller. From patchwork Tue Aug 27 17:04:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 11117309 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 486151398 for ; Tue, 27 Aug 2019 17:06:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 2759F2173E for ; Tue, 27 Aug 2019 17:06:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FXUTXgPD"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="jjZbzo+X" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2759F2173E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gmx.net 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=bombadil.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=BzUwU8V9EqLJ85DTVkqoQplFuKhu8QCbLCCXKBNybIc=; b=FXUTXgPD5qCz9GNXmbaH5HBiXs d87hZT4EDBBbpUWOcVIV78Lz/NpVnqc11M2JsZjJKle2+bPW01VNnTAM05IFfORVlW6xmBh+2O6EN sf/GE8Fz9OTg3BZwu8w8ZoXvcEE0EBw8qhDRkoT5LgTT3/L/Der+3fQsX+bUExkH9mWphRMedEeZv DEnNkKV8PUdCnD6JpFxb8t545lu4EdMBWFdgAvW/scltMw8QHT1rJK2cauwBMxyOVcyWzzjRWgW4B OJzJ+NGvHJ77uxuwDi2FWpAg29Xn59iq7YMQpmJroL1lzUib4b4SBa33En+pZaQMz0KfYfTmp1CKd P2wx1Y4g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2eup-0000FJ-FO; Tue, 27 Aug 2019 17:05:55 +0000 Received: from mout.gmx.net ([212.227.15.18]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2eu4-0006SR-F5 for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2019 17:05:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1566925496; bh=Uo1b3HfhaDmYWZdy1HlA+2i2PHDkmmpjfklpjPXzKxw=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=jjZbzo+XYlVxeu0N/XlLeLTxHHg108xm2GU+uCwoe0MtEhlzCF3U8fRe7b09Wb7fz F1Ol9pWw4rD4TpFRbTuoYwQ1C7tB1Es1tg1/5cPN3UrFNIso5VrCM62mcUsWEtUYDK /tBoTkBn0c/5PoSIX7Oqtc7mEvkF8lXEiyOALMag= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([37.4.249.106]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MV5hN-1hhPfx0Gwn-00YUII; Tue, 27 Aug 2019 19:04:56 +0200 From: Stefan Wahren To: Wolfram Sang , Eric Anholt , Florian Fainelli , Ray Jui , Scott Branden Subject: [PATCH 2/3] i2c: bcm2835: Avoid clk stretch quirk for BCM2711 Date: Tue, 27 Aug 2019 19:04:15 +0200 Message-Id: <1566925456-5928-3-git-send-email-wahrenst@gmx.net> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566925456-5928-1-git-send-email-wahrenst@gmx.net> References: <1566925456-5928-1-git-send-email-wahrenst@gmx.net> X-Provags-ID: V03:K1:Khj7mXUW5z0WC/ZBBqLcGNldA+ElzWSWMIlsnsdZzREPTsd8HDD J+gPVzpIk9piKLiieHnfv5qxCFOVhQ3hfNctz70sxa4cm6/sV7NaZCNL1Ceqrify33wKkgn Gh96Vz3/dCD+L1MF6KCEMkIA/3GpcRij0fKqaoWTeO1ThunIEOgqMH5WffrL0J3diX3cCUv 8t2guKrtd7dEQorwAd8IA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:5pSzR/iKChg=:DVqxCdjc3UJXq8/A9WN25l f8lFLCErb4Rfa5ou0tV+AzzQ0Yh3Ze8ZPO0vgpX6FqmM8JNlspYjsiU6bEy/Cd19hWc9xG+6S sb4aysewj4iDvDrwfaNW2YOjzqHEV4IJkOigsAcwozkb8natDSbrGLxWUUkUiJ72tNULdHOVi LXVj+sW3kBzGJMIDYCO2zoKKlg4Wa3s5NAYXgwGjILCQx2sWCCROdfJesUyfSnISr0RnzJGXa ndFpwKZdotZPqVQEKUawsJJ+1xzPwIUgKrqv0GFQvgmVYcYOCjErv4HMCa52oByn8LBOrq5FU s2OHMEHLHCagVcoCvx54hdsK/0LMzECgP1CJSqMmHvrp1Kj8NAuzO7iHXSA2f35rLeDc4p6Oc 4Xl4Ilkr2bT8LUnS0sMuTwr+t/qG6VUckZPSBr7eMVAt2CgxMUFKOyeUQCJZJBPjIXyD0s4wt h70hNHruPX/ItfT7kg0fu+JWMtFlYIlvtSLTlnsCgXoC3jeJ4UIUBWy8ygpWGbTZXwX5N1IlT N42kmySAZQEg1jAgItAnpArNSZ/CVVcCXWu7fXeqj56n8bDqKTOYcGn7P8zpQQ/yH3KY+JFNN jrDKs6+aJCK9b9oAk2jGvy659Gluq3qWkXvtYI2JlDs9IoaDph6JCtYpBvfyVJwyDrr3xzUaS IuAjtCWzLX8PHHgF/CXgjG8zLbo+0YrzC1tdi1Y5K7pIguueOXoUBM930jC5b8eMdbUGP6ByW 8/IbMqwcuPpz1cb8DKOB+xh+wiIVaRQiHPEnubYAEqbvsrpBbu2BXkRouCDw8GoIdxV0sd3KI kfdI6w1EY8NgVpCtjw5hVlmOg3TV8PYlH5slBQXCGkvHfZrFL34fGpfR9np2bW2AziqOghyhu wpqpTnnkjlxgH87ShTCDtGZwmwkvEHKcFXC6JOkEiQtJ2hieXDzK9W712qVNdGNEk3WSN/oWb KxiXqIIBXYl/i740hGBfGRd2sTlSxHO0VOp7xwMRKuLy8OUkejFym2bJhW9kqvIsDS+rCjNII 5g8ZL1qM7VhtE6OVEjvz7HolgHnuWDgrQC0m1Rsg1XCLVi5gP9KXiFF18t1STlC+dyGZdhA3X SUHrQggJpnNhDB2kKO4gcDmqocffp456FprdqWaXRYmLddn3qFSWuL1pFMNofQHP5RYl8CTDq IaeLK+0SDv/rM1ZHMh5Z8KR7v0xdKteNfKkkXC5GZQ9yr7VQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190827_100508_929975_C5C94690 X-CRM114-Status: GOOD ( 12.21 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.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 [212.227.15.18 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (wahrenst[at]gmx.net) -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_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 Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Wahren MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org The I2C block on the BCM2711 isn't affected by the clk stretching bug. So there is no need to apply the corresponding quirk. Signed-off-by: Stefan Wahren Reviewed-by: Eric Anholt --- drivers/i2c/busses/i2c-bcm2835.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) -- 2.7.4 diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2c/busses/i2c-bcm2835.c index 67752f7..ab5502f 100644 --- a/drivers/i2c/busses/i2c-bcm2835.c +++ b/drivers/i2c/busses/i2c-bcm2835.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -389,7 +390,7 @@ static const struct i2c_algorithm bcm2835_i2c_algo = { }; /* - * This HW was reported to have problems with clock stretching: + * The BCM2835 was reported to have problems with clock stretching: * http://www.advamation.com/knowhow/raspberrypi/rpi-i2c-bug.html * https://www.raspberrypi.org/forums/viewtopic.php?p=146272 */ @@ -475,7 +476,7 @@ static int bcm2835_i2c_probe(struct platform_device *pdev) adap->algo = &bcm2835_i2c_algo; adap->dev.parent = &pdev->dev; adap->dev.of_node = pdev->dev.of_node; - adap->quirks = &bcm2835_i2c_quirks; + adap->quirks = of_device_get_match_data(&pdev->dev); bcm2835_i2c_writel(i2c_dev, BCM2835_I2C_C, 0); @@ -501,7 +502,8 @@ static int bcm2835_i2c_remove(struct platform_device *pdev) } static const struct of_device_id bcm2835_i2c_of_match[] = { - { .compatible = "brcm,bcm2835-i2c" }, + { .compatible = "brcm,bcm2711-i2c" }, + { .compatible = "brcm,bcm2835-i2c", .data = &bcm2835_i2c_quirks }, {}, }; MODULE_DEVICE_TABLE(of, bcm2835_i2c_of_match); From patchwork Tue Aug 27 17:04:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 11117303 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 6F1981398 for ; Tue, 27 Aug 2019 17:05:19 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 4E0D92173E for ; Tue, 27 Aug 2019 17:05:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Fd1h5Vqj"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="QIRU5LXE" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4E0D92173E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gmx.net 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=bombadil.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=wjboJgM0qc77lCvG2XTINX3KH/tdznhyRKzouXQWvbU=; b=Fd1h5VqjbiuEDlVSk/IWAWeV8S N+XR/l+PAooeMmOV60MQ61X8rLKQaMLqR+MS8PN8Iy6iW5ozmzRNfxaae4PZmli7Bg0kOVI96u4vV mX5FhzCCaRMLZBnREeT21dc6cqQ/D6o+AcF7dH5x3Adx44gjqC9odaA53nYeYx3Sf58+NX1qoOBXt 3RZKEXJx01DVRB5wYhw7K7zLNKNm/xUD9OWPocjisXQl6u51dUwnybB7DZiFv1ZSUu+twfe8tXamJ pX1m996W8lajC3fZYswUFWOvZ1C5YaDkwr+9wJa7k6ZhYj3Yqytly9ogTbWOxNGC0+uxP970+Rn66 Jcdo0JaA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i2eu8-0006yX-Cc; Tue, 27 Aug 2019 17:05:12 +0000 Received: from mout.gmx.net ([212.227.15.19]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i2etz-0005sD-DS for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2019 17:05:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1566925496; bh=iHML+3J8Gz/ZoXa55rWlvuO5gxBAoQS0ShcVMHMoF+8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=QIRU5LXEtpLxXDh5f4Tu8sKtaz3KCIFtqmFhU+C3bPOjwrcWwow6Wc6s5ei1cnDtZ kUQkf4QjjnqV9oVJec58sB0ERMGW9/V7NKmaW+OwfKU/y5Kw+zLqiOpcHtLnFh9xVq jT0owZ1x7wI289IWT+BlBVbjqyT7Sr7HinEjsLiQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([37.4.249.106]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MIuSH-1i4aq91kQD-002VXu; Tue, 27 Aug 2019 19:04:56 +0200 From: Stefan Wahren To: Wolfram Sang , Eric Anholt , Florian Fainelli , Ray Jui , Scott Branden Subject: [PATCH 3/3] i2c: bcm2835: Add full name of devicetree node to adapter name Date: Tue, 27 Aug 2019 19:04:16 +0200 Message-Id: <1566925456-5928-4-git-send-email-wahrenst@gmx.net> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1566925456-5928-1-git-send-email-wahrenst@gmx.net> References: <1566925456-5928-1-git-send-email-wahrenst@gmx.net> X-Provags-ID: V03:K1:aZYCnrYSUMa259o8XUY7VioHSFgAqtazTRKuK29qv+dxx4hlcWX y3W507fuap5c14ulqH8+mdcazpaWUShLGhu5I+k3ayg7Kwoh7HYWFfozjn8mihWipo166EI sUBCS75QNwWoMNgYORuMcxPV+Dn5tm0Y7xWcykJe1Zi1SuSiU7hpl+zB5HuF4UkmsxJqziI PbIK5Dh6YDWo5TU9CDaTg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:te8ExPthDRw=:+1A4+agapq1RX9Pb4knZFi qgN1IUfIiJsvYeSE8DMBA8l0KJSLd+o1+EEXGa+8GzeEIt2RfBv5v3wOCa3XP8ZXmkpfkYU8+ lgLZYAwxhMW0DhiksWtRhvlrl75myih6YgU3aUlPG3S4Fm6P9mfTKztTnQBI/6ntTIRcPJZ+5 0yScBSID09fHIZfAyRNCnC/SUyaOiLMzPHz2cFD7ueXU2341JDvwTl8y6ugw2L0SBLw4SSgoP beOMXtp264Ki9CDjCLSHImUUR+yluM5uXZiwZXbZCpnmG1BgUM4/uSSVhjN3tJVlla9bC6M7m 1h+dNnTojqAncg9Pn6ErKpPW1G8KLUb3pjoFNT8o0KbDtCuj98TUS5DkPzT9fjvFxdhpdtxzc Jrl6dwMDHbDhlWpxmoyRNBXSIbRE3STl6aOeNwFQJboWckHQ3parW1ZHQrz2o5Tf9KuN8aQqm BT+0EQsfLrNPdneD0LUug90psobgLYLzm4GTbkizSHT4GqIJ+0slyN+mVBxKeGIlHC6Mjss8X Tk65u4vHp49mjI3afTl6+bViCiAlncVm/obV0GY0bP6/UJnrbm7yNPUduKSjx0laU4FW7OD/W Mgo/C0eSZ5K4yC+CHYZLI/HvXSTzJP07dzTgDqiQHRI5NzE9fDe4olBbw/Erdcw+K/TyUomyJ gpEfJrpDMm1t2hgvGHUCBTYTo6OmpJ3tjqOn81f1dvrdVdFYAjaARoAGSTTdrhlj0FFT9U3Er CckhZybyO5x+OdAuCO/pJjPFAMdMvo84sHWX3IjNus9Lu+zO/SvdjbHeTZ98GexWDGsCZNcjw eIjhq0KGqruQn9K7eEfyt5cU5wwoO+TgFaNRoaCZZ41tGdBoIGzEFHozh1fxFr+hyhBrlq7MB JzG24VMXCf0DturZZ8AmIjQWwvBV8w9kSONe294TQAMzlqKpWastQOoIKJXDJpyLbskl+UM/Y KX8U0bAyWP7fanIERSmYAUU+EajnbUNjzX0ir8pvUsfosPiVLDJAUFMTRRzton2ZuTcnKEjOI Oec9ixThaaW0jTF9cTgsYBz4MZe1ksw3o71tU3jc4+J6rqKjNYMSvjU0TLY3AfK3HI7BHhhx1 jYrnYKcGffNkLfoig7Tt+ScnyD33xir8nxt4aF2ZKDHie4XMnhAw1hjig== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190827_100503_834488_2D7F05BC X-CRM114-Status: GOOD ( 11.18 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.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 [212.227.15.19 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (wahrenst[at]gmx.net) -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_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 Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 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: linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Wahren MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Inspired by Lori Hikichi's patch for iproc, this adds the full name of the devicetree node to the adapter name. With the introduction of BCM2711 it's very difficult to distinguish between the multiple instances. Signed-off-by: Stefan Wahren Acked-by: Scott Branden --- drivers/i2c/busses/i2c-bcm2835.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/i2c/busses/i2c-bcm2835.c b/drivers/i2c/busses/i2c-bcm2835.c index ab5502f..e01b2b5 100644 --- a/drivers/i2c/busses/i2c-bcm2835.c +++ b/drivers/i2c/busses/i2c-bcm2835.c @@ -472,7 +472,8 @@ static int bcm2835_i2c_probe(struct platform_device *pdev) i2c_set_adapdata(adap, i2c_dev); adap->owner = THIS_MODULE; adap->class = I2C_CLASS_DEPRECATED; - strlcpy(adap->name, "bcm2835 I2C adapter", sizeof(adap->name)); + snprintf(adap->name, sizeof(adap->name), "bcm2835 (%s)", + of_node_full_name(pdev->dev.of_node)); adap->algo = &bcm2835_i2c_algo; adap->dev.parent = &pdev->dev; adap->dev.of_node = pdev->dev.of_node;