From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7A0D4606A32C for ; Fri, 4 Dec 2026 17:00:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=p/QdXT+i; dkim=fail reason="signature verification failed" (1024-bit key) header.d=collabora.com header.i=@collabora.com header.a=rsa-sha256 header.s=zohomail header.b=jsRYrkmh DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=1HIN5t4k3SnyfxJdIbX1s8z4UeQ7iwepvkQ1dp8voxY=; b=p/QdXT+i/mJckDtwCpeCXsoph+ RaZda3C7uM+bWsg7A6QR5DMLLGdDSBDg9qFtZcWrduTPXVfYnQR8PXuWgWIUBRlgLu6lpaesNvB5U xGQu1Ko9Tq9TSbDIWJmpuFZRtzmyiGrwx3ZuqhkaMAVU4gMv52YOqSjK/Q1KuMV62ns9ZFUgtBCO0 yBmUqkN/3oPdBs17Azsz82Lobw+xg/9J+98n2Dr0/la1T8LCY+XEUB2a8NAy446Lou1K4hMWWXv6x vCiVpvDEOHmcC13nE/zw/33Zo1i9sE0Frslvbmy/xxGLSIDfSAFU7fcUlngUKwrxluus7MpZsVnJA wB+h0NnA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZWdg-0000000105B-2YQB; Fri, 04 Dec 2026 17:00:04 +0000 Received: from sender6-op-o11.zoho.com ([165.173.180.11]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZWdI-00000000zwQ-3YLI; Fri, 04 Dec 2026 17:00:02 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1796403559; cv=none; d=zohomail.com; s=zohoarc; b=FZ3LlZL8WQTxF5slO522j0X0Bx83cl+1hlCt7BCvNXi9s3zPBewtzs9LahpibUwu7z6c2D7CQc3M7AQaS8i9eAl6RlZpRAILLnOvpUP991RSC195rkFJhZxHLykkQt2k5e0C/H0evDoTQqXPtMwYb96P1Yn7VdWQ6KoCSodvhco= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1796403559; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=WrEQLqsYB4wuOgotF5B5vE5FJ5sRscyaY6b8jrVAswI=; b=VCMEoXTjydMiJ2nH8UV3vr0AkH9nblF4e/ZMnd3Pl5IaJo7ZYl75NWOyMsynzLdgEnySJmL9lXavpW7W7A459rdN5cUcka/yo5RtyXoSyQbyqPVbY1dh/Q0hzdaZR7iBSrhpPcUsyARsLYX2WJo51t+85NL8Ie7RjCtyT+qa/cg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=sebastian.reichel@collabora.com; dmarc=pass header.from= DKIM-Signature: a=rsa-sha256; b=jsRYrkmh9OkcUlIV8omzK8r6VqhV1nCytGuXZsBGSyHPfAok8RGbUqOjJYA+b5k/p0tb+x9qrnczkqsmQDSV0p2uAKDUAbfqkm7sqov59eweXES/bwDcU9aPHKpJo5rOXnXkogXoQxx+kquqaSUzTjiqjJ2IJWD22G03wDKoafU=; c=relaxed/relaxed; s=zohomail; d=collabora.com; v=1; bh=WrEQLqsYB4wuOgotF5B5vE5FJ5sRscyaY6b8jrVAswI=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; Received: by smtp.zohomail.com with SMTPS id 1796403556961796.5645903062077; Fri, 4 Dec 2026 08:59:16 -0800 (PST) Received: by venus (Postfix, from userid 1000) id 66E8518205D; Fri, 04 Dec 2026 17:59:12 +0100 (CET) Date: Fri, 4 Dec 2026 17:59:12 +0100 From: Sebastian Reichel To: Greg Kroah-Hartman Cc: Thinh Nguyen , Heiko Stuebner , Vinod Koul , Neil Armstrong , Manivannan Sadhasivam , Manivannan Sadhasivam , Krishna Kurapati , Chaoyi Chen , Igor Paunovic , Alexey Charkov , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-phy@lists.infradead.org, kernel@collabora.com Subject: Re: [PATCH v19 5/6] usb: dwc3: core: only access GUSB3PIPECTL under lock Message-ID: References: <20261114-b4-rockchip-dwc3-rockchip-glue-v19-0-b79fb5f4b42a@collabora.com> <20261114-b4-rockchip-dwc3-rockchip-glue-v19-5-b79fb5f4b42a@collabora.com> <2026120340-designing-playroom-0d07@gregkh> X-Archived-By: MIME-Version: 1.0 In-Reply-To: <2026120340-designing-playroom-0d07@gregkh> X-Zoho-Virus-Status: 1 X-Zoho-AV-Stamp: zmail-av-0.2.28.1.5.5/296.394.11 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261204_085945_035258_FD0C1278 X-CRM114-Status: GOOD ( 22.76 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============3546234483969513767==" Sender: "Linux-rockchip" X-Spam-Status: No, score=-14.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 --===============3546234483969513767== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bazzrm5meahfrfhd" Content-Disposition: inline --bazzrm5meahfrfhd Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: [PATCH v19 5/6] usb: dwc3: core: only access GUSB3PIPECTL under lock MIME-Version: 1.0 Hello Greg, On Thu, Dec 03, 2026 at 05:48:53PM +0100, Greg Kroah-Hartman wrote: > On Sat, Nov 14, 2026 at 02:02:04AM +0100, Sebastian Reichel wrote: > > Update dwc3_enable_susphy() to take dwc->lock while updating > > GUSB3PIPECTL to protect the read-modify-write cycle from other users > > accessing the same register, which is soon introduced. > >=20 > > Note: technically there is already dwc3_ss_phy_setup() as a second user, > > but it runs and finishes before any call to dwc3_enable_susphy() should > > happen. > >=20 > > Signed-off-by: Sebastian Reichel > > --- > > drivers/usb/dwc3/core.c | 19 +++++++++++++++---- > > drivers/usb/dwc3/glue.h | 2 +- > > 2 files changed, 16 insertions(+), 5 deletions(-) > >=20 > > diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c > > index daf5aec07fbf..0cb1b33a7c98 100644 > > --- a/drivers/usb/dwc3/core.c > > +++ b/drivers/usb/dwc3/core.c > > @@ -108,11 +108,13 @@ static int dwc3_get_dr_mode(struct dwc3 *dwc) > > return 0; > > } > > =20 > > -void dwc3_enable_susphy(struct dwc3 *dwc, bool enable) > > +static void __dwc3_enable_susphy(struct dwc3 *dwc, bool enable) > > { > > u32 reg; > > int i; > > =20 > > + lockdep_assert_held(&dwc->lock); >=20 > Can't you also use __must_hold()? That sure works and looks quite sensible to me. As this is the only feedback for the v19, would it be okay to send that as follow-up? The merge window comes close and I would love to see this series landing in v7.5. It ensures USB-C keeps working on recent Rockchip SoCs when the cable is hotplugged in opposite direction (which is broken with upstream since USB support got introduced for the platform) and unblocks further fixes on the PHY side as well as USB-C DP AltMode DRM series at the same time. Greetings, -- Sebastian --bazzrm5meahfrfhd Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmsS8VwACgkQ2O7X88g7 +prwHRAAhbzS/N9LEG+erP7QOYJb/+MobNxLM0THr2f0/TQGAKkzfqmHMNBYpL3S 2RA+lcWBC38ztQHcqkIZZ1tvdkXTk6P5CiQjZOiQYMskF64MT7Yy6biVGJ2/Zqrz eR+fcaipaJ0lapfUs9pgL6rSgmZpzGqQxyhUigHA+PxMvoJ3ktYYHCzhathQQEyO 9pCFGjN9F11CJNJwCtBGoOy6AIcFOXKHCSq6rS0WFHmf2maZAA3CmfadHYEKSVJy XBdK73FvLx4jPFo3kVWBavxxbzaX4fq+zj6ktpq2Rrt81UHYbKNkluPxkeY1/wnS rHjBllUxtlETj0hDs9I2XfgFsd0hQBoC1BfhKHJWd7VzKiHbrd8lHPcPelsDyAy7 rZu6Tqdt8O6p5QarX/a41woMZsBRBJb3Xkv4SXeWSgsbiaF9awt4ScbmAS/6bzp0 mk0S5n6L3mbRexb52tC/n9Bmkg+7aE2FBjRXhV7BcT3ACaMOQL7Cx8H6970GgAn1 GMsH3zGsoY3Q8LXlG+4xRHSXkhpCHv636Kne6BGFPmqYxV9Ml5hSpaiUQgMGDII5 pt+hSSykFQOIlhIWbewgFNck3zcyd8LYNtah0wpg7kYgf0KvRmZ6+xbbsQGPOOi7 SAWjRkuVUENUbR8kHzKaaNciAf1a6RMadZHXENitvg6i9IoxxBw= =RSU4 -----END PGP SIGNATURE----- --bazzrm5meahfrfhd-- --===============3546234483969513767== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Linux-rockchip mailing list Linux-rockchip@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-rockchip --===============3546234483969513767==--