From patchwork Wed Apr 10 08:44:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 13623883 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 19B4ECD1296 for ; Wed, 10 Apr 2024 08:44:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :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=xxEXiQBMvl6LGHGGXm7hXR/AlNEFjQFurBcXhEr1CIc=; b=gj1e1LD4nFC+WQ zKe0Nr/1SDauBmZLzxSw8cmq9Y5T9XZ3ar2xkY+dPat3RfETisoRW+MRhWtEthsU4zxOs/g/0J3es 4o9DiO/k0IISvmeU9BDObCSBVUjLAIRttWfJqCDrubfusJ0MnKr6b+CuvGNTXam206oLh5Qo3PJbS zPmKZ+w13uF58MrjbteKbvUY5BXTB1DciiBWTPSQ0MY4lKrYWrdEozrBuj3wznCpbfC873U0UbTwp GOgrurKj+rn9oMpaAkOUMiA3+sHnN/6vfC2lWgllqJgPa5vjpwGjhRDOvwpISkbyTkIqNPFkA+C8g IPQc7AuKe6vqH9E4WxgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruTYz-00000005w8o-0YIL; Wed, 10 Apr 2024 08:44:13 +0000 Received: from madrid.collaboradmins.com ([2a00:1098:ed:100::25]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ruTYv-00000005w7F-3p3v; Wed, 10 Apr 2024 08:44:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1712738648; bh=MClo/LdCJCeuzDJxjlhI62aOolIJ3BFr09Hb39twgwo=; h=From:To:Cc:Subject:Date:From; b=y9g4G46mTs/zGx3EyUZZPgX3TZYtvYZBaPbDIQgb1F0KlHb9tZwXImJtUIsYErAXx Emg42bXD24FrR/Ks2iX200XzRHNB7jIh+2oPEcyhJRWIyL5jGhebt+VE6BheblvUbJ AU3X6Q9NCZYhxrQKJnypJwILngVyp+Cm2sps+rph0EDRXC75qVpVVM28oiDLpN740J tz7Ij5R1GFd73NwJ/8L+WAdt5zWsr6+TUYcvgjVqoCIawe/3mkb74mSbsYHxWB36y8 TpNnix/RCO8YI9ZROCOT/yn8M8CD3+5rblsMATaioa2/yLQVmNotM4mJy4jRf/o/56 OmJIX6j42eepA== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id D8B973781453; Wed, 10 Apr 2024 08:44:07 +0000 (UTC) From: AngeloGioacchino Del Regno To: sre@kernel.org Cc: matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, mazziesaccount@gmail.com, gene_chen@richtek.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH] power: supply: mt6360_charger: Fix of_match for usb-otg-vbus regulator Date: Wed, 10 Apr 2024 10:44:05 +0200 Message-ID: <20240410084405.1389378-1-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240410_014410_106667_B9B14048 X-CRM114-Status: GOOD ( 12.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The of_match shall correspond to the name of the regulator subnode, or the deprecated `regulator-compatible` property must be used: failing to do so, the regulator won't probe (and the driver will as well not probe). Since the devicetree binding for this driver is actually correct and wants DTs to use the "usb-otg-vbus-regulator" subnode name, fix this driver by aligning the `of_match` string to what the DT binding wants. Fixes: 0402e8ebb8b8 ("power: supply: mt6360_charger: add MT6360 charger support") Signed-off-by: AngeloGioacchino Del Regno Reviewed-by: Chen-Yu Tsai --- drivers/power/supply/mt6360_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/supply/mt6360_charger.c b/drivers/power/supply/mt6360_charger.c index 1305cba61edd..aca123783efc 100644 --- a/drivers/power/supply/mt6360_charger.c +++ b/drivers/power/supply/mt6360_charger.c @@ -588,7 +588,7 @@ static const struct regulator_ops mt6360_chg_otg_ops = { }; static const struct regulator_desc mt6360_otg_rdesc = { - .of_match = "usb-otg-vbus", + .of_match = "usb-otg-vbus-regulator", .name = "usb-otg-vbus", .ops = &mt6360_chg_otg_ops, .owner = THIS_MODULE,