From patchwork Fri Feb 8 11:14:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 10802907 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 005F713B5 for ; Fri, 8 Feb 2019 11:24:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E40B62AB37 for ; Fri, 8 Feb 2019 11:24:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D72682B454; Fri, 8 Feb 2019 11:24: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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 916D82AB37 for ; Fri, 8 Feb 2019 11:24:46 +0000 (UTC) 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: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=j8mlu/pqmuDGJ1aGipEkc8Ya4vCi5LgepBdm9RgNOic=; b=St7 z0zMkAVUJMLHpWdDEqfu9tZ4BT2cWT+QTEQSm1AmBNPJmjr+g6RW/jQcrb7S+aeDNC8/XR06YARt0 Nq8VvKGbVZW1UJFjyULrjVhoSuUHfGaftYG5lGLRj3csnRTM3uLrkHFeir23lPEdp2Cw3gQHexLyZ TFKO0zXl5ap0WNQtw0wAO1B9ZrKZR/uwXkqGYDQYrTFvZwC0rneOlz9XnAdWOuV2FNzw/5UmVmygq HYSA1/Jgay8nr6fc93XfVULchqnWwdwG7vBqpgbs6xL1DIAmoLlYQqmUkFT5y+Quw/XYeJApCWRug pqs90Y70V36NHB7FWCk6jExFIWaF+lQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gs4Gy-0003OX-QB; Fri, 08 Feb 2019 11:24:44 +0000 Received: from kirsty.vergenet.net ([202.4.237.240]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gs4GZ-0002SP-U6 for linux-arm-kernel@lists.infradead.org; Fri, 08 Feb 2019 11:24:41 +0000 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 8AEF925BF1B; Fri, 8 Feb 2019 22:14:29 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1549624469; bh=t7pF3Oh5waApUVCuODmGLuPf+exKgHfsZ67h9jN6qvI=; h=From:To:Cc:Subject:Date:From; b=XSERQEujJFarMvH70gxralkeMPd89HFN9OXNMhfx4VdrUPVYr0P7/f4aaiJsnXKh9 9+Fdy+VRfHGf+sseLRL5hswAy9NbC2FE0/g4GdoeCjEok8Qmzpa+5fKfmzKT0qv8jT +4McqOZgGKBl2m8U7eNKGSKcPmT5FTZlaksEMCAI= Received: by reginn.horms.nl (Postfix, from userid 7100) id E97E29401DB; Fri, 8 Feb 2019 12:14:27 +0100 (CET) From: Simon Horman To: arm@kernel.org Subject: [GIT PULL] Renesas ARM Based SoC Updates for v5.1 Date: Fri, 8 Feb 2019 12:14:24 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190208_032420_526127_CE732931 X-CRM114-Status: UNSURE ( 9.14 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , Kevin Hilman , Magnus Damm , linux-renesas-soc@vger.kernel.org, Olof Johansson , Simon Horman , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Olof, Hi Kevin, Hi Arnd, Please consider these Renesas ARM based SoC updates for v5.1. The following changes since commit bfeffd155283772bbe78c6a05dec7c0128ee500c: Linux 5.0-rc1 (2019-01-06 17:08:20 -0800) are available in the git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas.git tags/renesas-arm-soc-for-v5.1 for you to fetch changes up to 5347a0203709d5039a74d7c94e23519eee478094: ARM: shmobile: Fix R-Car Gen2 regulator quirk (2019-01-07 13:24:07 +0100) ---------------------------------------------------------------- Renesas ARM Based SoC Updates for v5.1 * Correct shared IRQ handling of R-Car Gen2 Regulator quirk * Add missing dts files to MAINTAINERS ---------------------------------------------------------------- Marek Vasut (1): ARM: shmobile: Fix R-Car Gen2 regulator quirk Simon Horman (1): ARM: shmobile: Add missing dts files to MAINTAINERS MAINTAINERS | 2 ++ arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c | 5 +++++ 2 files changed, 7 insertions(+) From patchwork Fri Feb 8 11:14:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 10802911 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 C711113B5 for ; Fri, 8 Feb 2019 11:25:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B3FE12AB37 for ; Fri, 8 Feb 2019 11:25:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A6F342B62A; Fri, 8 Feb 2019 11:25:25 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 342922AB37 for ; Fri, 8 Feb 2019 11:25:25 +0000 (UTC) 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=FXcxaMwUnR3fifVI1d5JnJeWTvqA+ZkiQo1vLp+iOKQ=; b=gcNmcqkbinopqt7bo56aWMwzSn Chagm7F6xzT022PioOLxCwGapeknj/MMllGdIeu8sMlI3rBTyhtNxU5tfp2Yr65us+O77u9/iWnXh qDNHuqFzI6YwlgEVyAVCYk/kHS560ieFYicuHSRr5HiRvMILbtQ9IpVKmWC8wT25OnoU1l2DAJofP iOm2kBwY8RK70PUwPF9ZWkrnTGThPsWrG7WxqbeHJX/vD8QM1fvEl25P5/Jo64SFe0pOFl2m93xEe riCU5PC0EJntA7FqLdQGFN79b5EJ26eoH5F9oTUoP11AjvbXg+AJ2CVpDtEuJliCQcQ/g8KC/a1Ze T0Dt+OZg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gs4Hb-0004yR-Dx; Fri, 08 Feb 2019 11:25:23 +0000 Received: from kirsty.vergenet.net ([202.4.237.240]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gs4H5-0002SP-EQ for linux-arm-kernel@lists.infradead.org; Fri, 08 Feb 2019 11:25:02 +0000 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 1D6E225BF22; Fri, 8 Feb 2019 22:14:32 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1549624472; bh=5f1yj1BwB5o7wQ5PO8mMFZK1cIcAWTQmjCu+k28EdQE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ETCpGSnShkutLLscbKjBJhveStNhHYek5rBCZ1gfOBeeKvoy7Q9oQeGo1NOBh3Scu xIR4nkS936CCOyi/BBAkdgw2e9bepE7oStjibkwveQCjqdaaA4fFt89Quueab7zpGg b4CO9KH5Ob4JKfNZUdZQr8LqB+mre3twaOyJm+2U= Received: by reginn.horms.nl (Postfix, from userid 7100) id 70162940171; Fri, 8 Feb 2019 12:14:30 +0100 (CET) From: Simon Horman To: linux-renesas-soc@vger.kernel.org Subject: [PATCH 2/2] ARM: shmobile: Fix R-Car Gen2 regulator quirk Date: Fri, 8 Feb 2019 12:14:28 +0100 Message-Id: <5347a0203709d5039a74d7c94e23519eee478094.1549622472.git.horms+renesas@verge.net.au> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190208_032452_193871_3074D321 X-CRM114-Status: GOOD ( 12.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Vasut , Simon Horman , Magnus Damm , linux-arm-kernel@lists.infradead.org, Marek Vasut MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Marek Vasut The quirk code currently detects all compatible I2C chips with a shared IRQ line on all I2C busses, adds them into a list, and registers a bus notifier. For every chip for which the bus notifier triggers, the quirk code performs I2C transfer on that I2C bus for all addresses in the list. The problem is that this may generate transfers to non-existing chips on systems with multiple I2C busses. This patch adds a check to verify that the I2C bus to which the chip with shared IRQ is attached to matches the I2C bus of the chip which triggered the bus notifier and only starts the I2C transfer if they match. Signed-off-by: Marek Vasut Tested-by: Nguyen Viet Dung Signed-off-by: Simon Horman --- arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c b/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c index 8e50daa99151..dc526ef2e9b3 100644 --- a/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c +++ b/arch/arm/mach-shmobile/regulator-quirk-rcar-gen2.c @@ -40,6 +40,7 @@ struct regulator_quirk { struct list_head list; const struct of_device_id *id; + struct device_node *np; struct of_phandle_args irq_args; struct i2c_msg i2c_msg; bool shared; /* IRQ line is shared */ @@ -101,6 +102,9 @@ static int regulator_quirk_notify(struct notifier_block *nb, if (!pos->shared) continue; + if (pos->np->parent != client->dev.parent->of_node) + continue; + dev_info(&client->dev, "clearing %s@0x%02x interrupts\n", pos->id->compatible, pos->i2c_msg.addr); @@ -165,6 +169,7 @@ static int __init rcar_gen2_regulator_quirk(void) memcpy(&quirk->i2c_msg, id->data, sizeof(quirk->i2c_msg)); quirk->id = id; + quirk->np = np; quirk->i2c_msg.addr = addr; ret = of_irq_parse_one(np, 0, argsa);