From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.46 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796406837; b=yTAiX9Vd2Yxk/A2cE9AsCXgPDTPvl0Z9X0xr/idyHD4EmfbbvdN7Dl45uPiv5jxnrEvE BX1m+6vWPzvGlCIBUTVkO31W/dDBsc+Kxvo4Cpan29Y9xLsjdhk+6pxGnffBBnzuzg349 kTmENwyILk6tPSIWodO1rmtByoMlqDf/e7dmxtZgDuFRlRW2JITciOS5dmFK/xG/sHveN ba/WuVWa7+lZo6sq1GmChg6jNC7/vHMdBzNzgZbbBz3b+F+H1fJcXr86Ll6BAm2YpgBVC Ioo6ylhaAarsLCOgsiQkLi5EzsWksIziMtWYvP/ZwuYQgHVKYqsCCk07LqALeR7mOwQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796406837; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Message-ID:Subject: From:To:Cc:Date:In-Reply-To:References:Content-Type: Content-Transfer-Encoding:User-Agent:MIME-Version; bh=aG1bBH+QKp6Yft9pvHtYgfX1/6XieMn5mXbEzio0Jk0=; b=UL2ZmQVU4ZmETzqQ7rEXxRKmWtIOpztYdtqavltguxMrJxTohooaxEr/J1E6Ot/N2GH3 8eq7xknSO7qZapWDAg4pGd8RHeh6ExVEtUmpuMRARcAVtxdPLf3OQQS7rGAaxRZshdd1d TO99d+D7SEa6ppXJ7RScSesjRsu7u2SIdO1M1srzNXY7XKPLJtX/OHchsLWiVCVTmVdwR wPDh7ibivcdUgB3RthYbUrUq9A5NhA9p36nOoMcdBdUYMEbTyWnKoIX0Zp37AgxY/NJv1 nUNU4/mVVx6UkwHf8UbwB1+uP9/bWkD85ngDemqFFGXt8xvx82Hap5aE+DCQ36rBQCw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=EKew5o1c; arc=none smtp.remote-ip=209.85.128.46 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75893606A32C for ; Fri, 4 Dec 2026 17:53:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 75893606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=EKew5o1c Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4b79502c27aso11264505e9.1 for ; Fri, 04 Dec 2026 09:53:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796406836; x=1797011636; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:from:to :cc:subject:date:message-id:reply-to:content-type; bh=aG1bBH+QKp6Yft9pvHtYgfX1/6XieMn5mXbEzio0Jk0=; b=EKew5o1c4ycVs6uvbN68d9XVJzqXDecwGKMHSQqMsKTQJwshy7Npvwpc/BxlfXZnNT DwFIAvv0iRsN0LUa9iFdLM6XPsa5lMqfuBhBnXAOTAjpgJNboUugwNUBbf40H3le6zxh aW3EoBkx1UNEzSccISB/O7RFUEffOjeIG0qzAMvsQkOPjVHJj52MQPqCijLz0WKVi/FH qW7MZFNHzBGo6r7GeqhUg/DzUMDrYV5hGGbtkAMNv4lyv6bA2n+iEn5HTsXcmcsoltXt Qm92zREM6qwpzmkcmW0tPLX6E84+n0FmX1cWaYZSnJEBBup5gWFW2SXcz388TPbh72vI UvAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796406836; x=1797011636; h=mime-version:user-agent:content-transfer-encoding:content-type :references:in-reply-to:date:cc:to:from:subject:message-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=aG1bBH+QKp6Yft9pvHtYgfX1/6XieMn5mXbEzio0Jk0=; b=v8WoH7wV0uMZT82nQ4GtrG7YvRX3eEFoeLuoyHgCCVR1WMeXtjBmm1BIWIR4o1RK+K nu/wmpBizpHKTIj0IumOF9YOrGfVhnm8iNVCzu3/meFxmRQhLHCt5yxUr1rrPJcRLRwl 09iQhbRZ/pCNIX/DUBwj6Uno4IWfXimuGFr6szW4KWSwq0LH1Ca25kOscjhqxZtRUXHb qDnaFffnVzhfCekDlsBP3gVZ7ggModAUCJ/ll3WcVMh15fTbBblo2vUfK63fdkf7uHuR L8445yeZUpQw3Vg4a6LN6Q872UdktKx6gjYAqSP1QEUOCfzwz9vpZ2v2uZ2ZTI35mGP4 eoGA== X-Gm-Message-State: APuU4Z9bkeBD8Kk1pgV8C83yMPU26mNPZTW0VpYwDxDAaV8wNm1x19IZ uBeGZwUhP1FjS+ZUDKKNSJ/ltVYOjuWd1JLpWZMqBj2Ctmlo8IQyP8Od X-Gm-Gg: AZFdTZdaepPtWAOQzxKOdWYGRHDbSx9V681z5XHpy/QgaP32LaQm3wP8/Um2DYsYpHl jHCgPdht3zYhmco7DR/Wb/t4didCSv3p2ZM5bne8xTaa8Nd7ES5RznABEYkTuWaTeyopX8jh/4r GUkyPKGqgPsoK13sw1Vsh+DaHhnZJVTwGvf8kS+S3afFx37aRZVyTicb3nsNZptrk5p6VePhEaC cOsmoMUOEQq1i+j4bFAv7WqpTWkF8D175TWdIGT4Mj5LuvFzwklX5MesYJh9gTGVGmevAUyVULR 211N/M57KcSemccqbapmM6mLKhRXa4TIkItzyV2rxlyUgLs2ze6ym62AARVFvqQA/WKoI6vNzo2 040bqX9CxkgDRSVMrQQpojUEhyT1weU0rEhAPFrFZnJecdnEfMQDsM/o06JoJfs65ByFV7WiKoP GNjJwRcFp8Q+L2G2xNmzr2bKsB4kKvdR7A7Az6k6PpJEPD4PrIQFwXm++PGQBKxg3d8FkD0o4qu ja5YTht3aEv6b1s51xLx7BOkTOLTolw0x8Jup8x9nA3qRPSBqXk9OkklLDI8ei3AkvBQdtBCX+q vWgj6puZOq+++hTldTcj4dj0ubTtYqkAd4ZUKLvu0UlJBCV/ddWKWUb8+NZTBtoN7YT8TGUsr1D 0Ue9YSRuTRlXjoc1UFfhuLhodJLuC X-Received: by 2002:a05:600c:8b5c:b0:4bb:e306:b046 with SMTP id 5b1f17b1804b1-4bbeb8eb2abmr52877375e9.27.1796406835797; Fri, 04 Dec 2026 09:53:55 -0800 (PST) Received: from [192.168.0.10] (catv-78-139-0-46.catv.fixed.one.hu. [78.139.0.46]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbe00a2f98sm183643395e9.9.2026.12.04.09.53.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 09:53:55 -0800 (PST) Message-ID: <0543ee97f468f9f427b77cd33cddfbf7a9425fdc.camel@gmail.com> Subject: Re: [PATCH v3 3/5] phy: exynos5-usbdrd: support Exynos7885 USB PHY From: David Virag To: Paul Menzel , Vinod Koul , Krzysztof Kozlowski , Peter Griffin , Alim Akhtar , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Umer Uddin , Krzysztof Kozlowski , Neil Armstrong , Manivannan Sadhasivam , linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org Date: Fri, 04 Dec 2026 18:53:54 +0100 In-Reply-To: <16634e7d-3bf0-41de-b16e-dea539803a3d@molgen.mpg.de> References: <20261125145458.2594179-1-virag.david003@gmail.com> <20261125145458.2594179-4-virag.david003@gmail.com> <16634e7d-3bf0-41de-b16e-dea539803a3d@molgen.mpg.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.62.1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Dear Paul, On Thu, 2026-12-03 at 12:58 +0100, Paul Menzel wrote: > Dear David, >=20 >=20 > Thank you for your patch. >=20 > Am 25.11.26 um 15:54 schrieb David Virag: > > The Exynos7885 SoC has an Exynos USB PHY that theoretically > > supports > > USB3 SuperSpeed, but all known devices using it only have USB2 and > > the > > vendor driver has USB3 function stubbed out, so we'll only support > > USB2. > >=20 > > Apart from this mysterius USB3 capability, it's the closest to > > Exynos850 >=20 > mysteri*o*us Woops, will fix. > [...] > > +static const struct exynos5_usbdrd_phy_drvdata > > exynos7885_usbdrd_phy =3D { > > +=09.phy_cfg=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D phy_cfg_exynos850, > > +=09.phy_ops=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D &exynos850_usbdrd_phy_ops, >=20 > `.n_phy_cfg` is missing. Since commit ba6618a1e7c0 ("phy:=20 > exynos5-usbdrd: Use dynamic phy_cfg size to prevent OOB access"), in=20 > Linus=E2=80=99 tree since v7.4-rc5, the driver creates `n_phy_cfg` PHYs, = so > with=20 > this entry it creates none, and `exynos5_usbdrd_phy_xlate()` warns > and=20 > returns -ENODEV for index 0. The series applies to such a tree > without a=20 > conflict, so the base used for the Tested-by probably predates that > commit. >=20 > On a Samsung Galaxy Tab A 10.1 (2019, Wi-Fi) (SM-T510, Exynos 7904),=20 > next-20261202 with this series and USB enabled like on gta3xllte, > dwc3=20 > probes without a PHY (trace below). Adding >=20 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 .n_phy_cfg=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D ARRA= Y_SIZE(phy_cfg_exynos850), >=20 > fixes it: the WARN is gone, and a configfs ACM gadget enumerates on > the=20 > host at high speed (an interactive shell over ttyACM0 works). >=20 Ah, right, that goes through the linux-phy tree (vkoul), and the usb part goes through linux-usb (gregkh) if I understand correctly (and dts through Krzysztof's tree). Oh well, I'll have to figure this out. Maybe I'll have to split this into 3 patchsets, one for the DWC3 binding, one for the PHY stuff, one for the dts (which might have to wait a cycle). Maintainers: Please let me know if this is the approach I should take or something else. Thanks for pointing this out! >=20 > [...] > With the change above feel free to add: >=20 > =C2=A0=C2=A0=C2=A0=C2=A0 Tested-by: Paul Menzel >=20 >=20 > Kind regards, >=20 > Paul >=20 Thanks Best regards, David