From nobody Wed Dec 24 18:06:48 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 4484C1B277 for ; Wed, 24 Jan 2024 11:26:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706095591; cv=none; b=aHkc2yJZKRzCPSO0W9IAypKwbOEM7OeH1LqdPNmevnH65sQf7CGuAG7aLfheQ1OyaM09qs98/pRWcxlaIRUqRlP4XpwsIc5UAB9mfJOCx/Ofmgu3jfe3p59DIruU3NUPNe1HYPMT1Q3UDWZh74Qr3UIs7Ru/V0i0b4MCrnnvOXQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706095591; c=relaxed/simple; bh=Q1sHbIivfI+zsL7lmcpRgEA34+6RBDIe5bColoq7y0o=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=ZBVCYttWFzM/5gawdlvqQx6JcG/FGMawEqNoXfYIxagyPqrfU9haGxIZtAN3mBrvIrVkmopBlZ3fECX+T0YJdhpwgeWDSjc4BjzCtDSEZnharGSD6wew1AKK0FOBCldMqiYamidQUVXUEbSCyOKOwHBwaExCuhjf2OzXgR9r2Oc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from dude05.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::54]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1rSbOe-0003Xk-P4; Wed, 24 Jan 2024 12:26:20 +0100 From: Philipp Zabel Date: Wed, 24 Jan 2024 12:26:20 +0100 Subject: [PATCH] usb: dwc3-of-simple: Stop using of_reset_control_array_get() directly Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240124-dwc3-of-simple-reset-control-array-fix-v1-1-808182cc3f0e@pengutronix.de> X-B4-Tracking: v=1; b=H4sIANvzsGUC/x2NQQrCMBBFr1Jm7UAbs6heRVyE5FcHalJmilVK7 +7g8n14/+1kUIHRtdtJ8RaTVh2GU0f5meoDLMWZQh9iP4TIZctnbhObvJYZrDCsnFtdtc2cVNO XJ/kwIi5jcGsshfxsUfj8D93ux/EDDMqhbngAAAA= To: Thinh Nguyen , Greg Kroah-Hartman , Martin Blumenstingl , Neil Armstrong , Felipe Balbi Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Philipp Zabel X-Mailer: b4 0.13-dev-f0463 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::54 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Use of_reset_control_array_get_optional_exclusive() instead, it is implemented as: static inline struct reset_control * of_reset_control_array_get_optional_exclusive(struct device_node *node) { return of_reset_control_array_get(node, false, true, true); } This makes the code easier to understand and removes the last remaining direct use of of_reset_control_array_get(). No functional changes. Fixes: f4cc91ddd856 ("usb: dwc3: of-simple: remove Amlogic GXL and AXG comp= atibles") Signed-off-by: Philipp Zabel --- drivers/usb/dwc3/dwc3-of-simple.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-s= imple.c index d1539fc9eabd..9cf9ee1b637b 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -52,8 +52,7 @@ static int dwc3_of_simple_probe(struct platform_device *p= dev) if (of_device_is_compatible(np, "rockchip,rk3399-dwc3")) simple->need_reset =3D true; =20 - simple->resets =3D of_reset_control_array_get(np, false, true, - true); + simple->resets =3D of_reset_control_array_get_optional_exclusive(np); if (IS_ERR(simple->resets)) { ret =3D PTR_ERR(simple->resets); dev_err(dev, "failed to get device resets, err=3D%d\n", ret); --- base-commit: 6613476e225e090cc9aad49be7fa504e290dd33d change-id: 20240124-dwc3-of-simple-reset-control-array-fix-e4e9822028dd Best regards, --=20 Philipp Zabel