From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5643F12C476; Tue, 30 Apr 2024 10:56:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714474619; cv=none; b=OVTLSY3G25fJsVd3BxVO1Hw6yAox0DWiIkfbhbea3AoGkpTl3EDkuLypq3XnL1N6tFSLiDN82lpLwDUQJTCHgbagL0VpMW76GUxn4u2BLp2yiWv4QoELOVrSFWosTePGY6n2DWRCGRzzkAw+0cg7Dd/aj6YVFt7/rj4MDYiqNoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714474619; c=relaxed/simple; bh=mFgdl9O4zt1mKFB+CUoc6grKNsx38EX1ReKLM0EULgk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eoLCnY8FPxFwhRSBTJWGIg0f/FeucnzlhifrVHTDIo2o1/40/uhFQaqc0VgYv12GzMkpBhW+mrah7Gj0c3FA2rawZG8xorML+x++HAnI/XQeFPggjmpRd0y8U17SpLZB0iZ/FUnTAAJFqOq+dJsb87+mFdhaZi/V/dzs09KsGts= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RHDf3piH; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="RHDf3piH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 737D0C2BBFC; Tue, 30 Apr 2024 10:56:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714474618; bh=mFgdl9O4zt1mKFB+CUoc6grKNsx38EX1ReKLM0EULgk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RHDf3piHfdvVPrt0vydS4BvqhiHyEwWjB4k8MSoaObUhDauugRBKUsLzbMFWJNn2J bcO6RQwbparKhU1YgosodnZ8Z7qOvxu3NgCAh5yoyzOWoLE7RSCcVAo85SWl67eqO+ v9sg8wth8Cxnin6EENFAZPWo9sayWEzTScl4EpVc= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Varadarajan Narayanan , Gabor Juhos , Dmitry Baryshkov , Vinod Koul , Sasha Levin Subject: [PATCH 6.8 210/228] phy: qcom: m31: match requested regulator name with dt schema Date: Tue, 30 Apr 2024 12:39:48 +0200 Message-ID: <20240430103109.865311483@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240430103103.806426847@linuxfoundation.org> References: <20240430103103.806426847@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.8-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gabor Juhos [ Upstream commit 47b3e2f3914ae5e8d9025d65ae5cffcbb54bc9c3 ] According to the 'qcom,ipq5332-usb-hsphy.yaml' schema, the 5V supply regulator must be defined via the 'vdd-supply' property. The driver however requests for the 'vdda-phy' regulator which results in the following message when the driver is probed on a IPQ5018 based board with a device tree matching to the schema: qcom-m31usb-phy 5b000.phy: supply vdda-phy not found, using dummy regulator qcom-m31usb-phy 5b000.phy: Registered M31 USB phy This means that the regulator specified in the device tree never gets enabled. Change the driver to use the 'vdd' name for the regulator as per defined in the schema in order to ensure that the corresponding regulator gets enabled. Fixes: 08e49af50701 ("phy: qcom: Introduce M31 USB PHY driver") Reviewed-by: Varadarajan Narayanan Signed-off-by: Gabor Juhos Reviewed-by: Dmitry Baryshkov Link: https://lore.kernel.org/r/20240406-phy-qcom-m31-regulator-fix-v2-1-c8e9795bc071@gmail.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/phy/qualcomm/phy-qcom-m31.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/qualcomm/phy-qcom-m31.c b/drivers/phy/qualcomm/phy-qcom-m31.c index 03fb0d4b75d74..20d4c020a83c1 100644 --- a/drivers/phy/qualcomm/phy-qcom-m31.c +++ b/drivers/phy/qualcomm/phy-qcom-m31.c @@ -297,7 +297,7 @@ static int m31usb_phy_probe(struct platform_device *pdev) return dev_err_probe(dev, PTR_ERR(qphy->phy), "failed to create phy\n"); - qphy->vreg = devm_regulator_get(dev, "vdda-phy"); + qphy->vreg = devm_regulator_get(dev, "vdd"); if (IS_ERR(qphy->vreg)) return dev_err_probe(dev, PTR_ERR(qphy->vreg), "failed to get vreg\n"); -- 2.43.0