Message ID | 20231106110654.31090-1-johan+linaro@kernel.org (mailing list archive) |
---|---|
Headers | show |
Series | Revert "usb: phy: add usb phy notify port status API" | expand |
On Mon, Nov 06, 2023 at 12:06:51PM +0100, Johan Hovold wrote: > The recently added Realtek PHY drivers depend on the new port status > notification mechanism which was built on the deprecated USB PHY > implementation and devicetree binding. > > Specifically, using these PHYs would require describing the very same > PHY using both the generic "phy" property and the deprecated "usb-phy" > property which is clearly wrong. > > We should not be building new functionality on top of the legacy USB PHY > implementation even if it is currently stuck in some kind of > transitional limbo. > > Revert the new Realtek PHY drivers for now so that the port status > notification interface can be reverted and replaced before we dig > ourselves into an even deeper hole with this PHY mess. > > Note that there are no upstream users of these PHYs and the drivers were > only included in 6.6 so there should still be time to undo this. No users of these phy drivers yet? Why were they added? > Preferably these should go in through Greg's tree for 6.7-rc1. I'll be glad to take this if I can get an ack for it. thanks, greg k-h
On 06-11-23, 12:15, Greg Kroah-Hartman wrote: > On Mon, Nov 06, 2023 at 12:06:51PM +0100, Johan Hovold wrote: > > The recently added Realtek PHY drivers depend on the new port status > > notification mechanism which was built on the deprecated USB PHY > > implementation and devicetree binding. > > > > Specifically, using these PHYs would require describing the very same > > PHY using both the generic "phy" property and the deprecated "usb-phy" > > property which is clearly wrong. > > > > We should not be building new functionality on top of the legacy USB PHY > > implementation even if it is currently stuck in some kind of > > transitional limbo. > > > > Revert the new Realtek PHY drivers for now so that the port status > > notification interface can be reverted and replaced before we dig > > ourselves into an even deeper hole with this PHY mess. > > > > Note that there are no upstream users of these PHYs and the drivers were > > only included in 6.6 so there should still be time to undo this. > > No users of these phy drivers yet? Why were they added? Not sure why, they didnt go thru phy ss! > > > Preferably these should go in through Greg's tree for 6.7-rc1. > > I'll be glad to take this if I can get an ack for it. Pls do drop this: Acked-by: Vinod Koul <vkoul@kernel.org>
On Mon, Nov 06, 2023 at 12:15:59PM +0100, Greg Kroah-Hartman wrote: > On Mon, Nov 06, 2023 at 12:06:51PM +0100, Johan Hovold wrote: > > The recently added Realtek PHY drivers depend on the new port status > > notification mechanism which was built on the deprecated USB PHY > > implementation and devicetree binding. > > > > Specifically, using these PHYs would require describing the very same > > PHY using both the generic "phy" property and the deprecated "usb-phy" > > property which is clearly wrong. > > > > We should not be building new functionality on top of the legacy USB PHY > > implementation even if it is currently stuck in some kind of > > transitional limbo. > > > > Revert the new Realtek PHY drivers for now so that the port status > > notification interface can be reverted and replaced before we dig > > ourselves into an even deeper hole with this PHY mess. > > > > Note that there are no upstream users of these PHYs and the drivers were > > only included in 6.6 so there should still be time to undo this. > > No users of these phy drivers yet? Why were they added? The devicetree bindings were also merged in 6.6 (and are left in place), but there are no devicetrees that actually use these new bindings in mainline yet. > > Preferably these should go in through Greg's tree for 6.7-rc1. > > I'll be glad to take this if I can get an ack for it. They went in through your tree, but note that you may now get a conflict with 7e909370a5cd ("phy: realtek: Replace of_device.h with explicit includes") in the phy tree. Johan
On Mon, Nov 06, 2023 at 04:54:45PM +0530, Vinod Koul wrote: > On 06-11-23, 12:15, Greg Kroah-Hartman wrote: > > On Mon, Nov 06, 2023 at 12:06:51PM +0100, Johan Hovold wrote: > > > The recently added Realtek PHY drivers depend on the new port status > > > notification mechanism which was built on the deprecated USB PHY > > > implementation and devicetree binding. > > > > > > Specifically, using these PHYs would require describing the very same > > > PHY using both the generic "phy" property and the deprecated "usb-phy" > > > property which is clearly wrong. > > > > > > We should not be building new functionality on top of the legacy USB PHY > > > implementation even if it is currently stuck in some kind of > > > transitional limbo. > > > > > > Revert the new Realtek PHY drivers for now so that the port status > > > notification interface can be reverted and replaced before we dig > > > ourselves into an even deeper hole with this PHY mess. > > > > > > Note that there are no upstream users of these PHYs and the drivers were > > > only included in 6.6 so there should still be time to undo this. > > > > No users of these phy drivers yet? Why were they added? > > Not sure why, they didnt go thru phy ss! > > > > > > Preferably these should go in through Greg's tree for 6.7-rc1. > > > > I'll be glad to take this if I can get an ack for it. > > Pls do drop this: > > Acked-by: Vinod Koul <vkoul@kernel.org> Thanks, now applied. greg k-h
On Mon, Nov 06, 2023 at 12:25:34PM +0100, Johan Hovold wrote: > On Mon, Nov 06, 2023 at 12:15:59PM +0100, Greg Kroah-Hartman wrote: > > On Mon, Nov 06, 2023 at 12:06:51PM +0100, Johan Hovold wrote: > > > The recently added Realtek PHY drivers depend on the new port status > > > notification mechanism which was built on the deprecated USB PHY > > > implementation and devicetree binding. > > > > > > Specifically, using these PHYs would require describing the very same > > > PHY using both the generic "phy" property and the deprecated "usb-phy" > > > property which is clearly wrong. > > > > > > We should not be building new functionality on top of the legacy USB PHY > > > implementation even if it is currently stuck in some kind of > > > transitional limbo. > > > > > > Revert the new Realtek PHY drivers for now so that the port status > > > notification interface can be reverted and replaced before we dig > > > ourselves into an even deeper hole with this PHY mess. > > > > > > Note that there are no upstream users of these PHYs and the drivers were > > > only included in 6.6 so there should still be time to undo this. > > > > No users of these phy drivers yet? Why were they added? > > The devicetree bindings were also merged in 6.6 (and are left in place), > but there are no devicetrees that actually use these new bindings in > mainline yet. > > > > Preferably these should go in through Greg's tree for 6.7-rc1. > > > > I'll be glad to take this if I can get an ack for it. > > They went in through your tree, but note that you may now get a conflict > with > > 7e909370a5cd ("phy: realtek: Replace of_device.h with explicit includes") > > in the phy tree. I fixed it up by hand, should be good now, thanks. greg k-h
Hi Johan and Vinod, I modified the Realtek phy to solve this issue and only use the generic PHY. And submitted these patches today as follows https://lore.kernel.org/linux-usb/20231107063518.27824-1-stanley_chang@realtek.com/ https://lore.kernel.org/linux-usb/20231107063518.27824-2-stanley_chang@realtek.com/ https://lore.kernel.org/linux-usb/20231107063518.27824-3-stanley_chang@realtek.com/ https://lore.kernel.org/linux-usb/20231107063518.27824-4-stanley_chang@realtek.com/ I don't think this patch is needed to revert a08799cf17c2 ("usb:phy: New usb phy notification port status API"). Thanks, Stanley > On 06-11-23, 12:15, Greg Kroah-Hartman wrote: > > On Mon, Nov 06, 2023 at 12:06:51PM +0100, Johan Hovold wrote: > > > The recently added Realtek PHY drivers depend on the new port status > > > notification mechanism which was built on the deprecated USB PHY > > > implementation and devicetree binding. > > > > > > Specifically, using these PHYs would require describing the very > > > same PHY using both the generic "phy" property and the deprecated > "usb-phy" > > > property which is clearly wrong. > > > > > > We should not be building new functionality on top of the legacy USB > > > PHY implementation even if it is currently stuck in some kind of > > > transitional limbo. > > > > > > Revert the new Realtek PHY drivers for now so that the port status > > > notification interface can be reverted and replaced before we dig > > > ourselves into an even deeper hole with this PHY mess. > > > > > > Note that there are no upstream users of these PHYs and the drivers > > > were only included in 6.6 so there should still be time to undo this. > > > > No users of these phy drivers yet? Why were they added? > > Not sure why, they didnt go thru phy ss! > > > > > > Preferably these should go in through Greg's tree for 6.7-rc1. > > > > I'll be glad to take this if I can get an ack for it. > > Pls do drop this: > > Acked-by: Vinod Koul <vkoul@kernel.org> > > -- > ~Vinod
On Tue, Nov 07, 2023 at 06:44:26AM +0000, Stanley Chang[昌育德] wrote: > Hi Johan and Vinod, > > I modified the Realtek phy to solve this issue and only use the generic PHY. > And submitted these patches today as follows > https://lore.kernel.org/linux-usb/20231107063518.27824-1-stanley_chang@realtek.com/ > https://lore.kernel.org/linux-usb/20231107063518.27824-2-stanley_chang@realtek.com/ > https://lore.kernel.org/linux-usb/20231107063518.27824-3-stanley_chang@realtek.com/ > https://lore.kernel.org/linux-usb/20231107063518.27824-4-stanley_chang@realtek.com/ > > I don't think this patch is needed to revert a08799cf17c2 ("usb:phy: New usb phy notification port status API"). I had already applied those reverts yesterday, but forgot to push them out (sorry about that, now fixed.) Let's start over here and you can rebase your new series on the 6.7-rc1. thanks, greg k-h
Hi Greg, > On Tue, Nov 07, 2023 at 06:44:26AM +0000, Stanley Chang[昌育德] wrote: > > Hi Johan and Vinod, > > > > I modified the Realtek phy to solve this issue and only use the generic PHY. > > And submitted these patches today as follows > > https://lore.kernel.org/linux-usb/20231107063518.27824-1-stanley_chang > > @realtek.com/ > > https://lore.kernel.org/linux-usb/20231107063518.27824-2-stanley_chang > > @realtek.com/ > > https://lore.kernel.org/linux-usb/20231107063518.27824-3-stanley_chang > > @realtek.com/ > > https://lore.kernel.org/linux-usb/20231107063518.27824-4-stanley_chang > > @realtek.com/ > > > > I don't think this patch is needed to revert a08799cf17c2 ("usb:phy: New usb > phy notification port status API"). > > I had already applied those reverts yesterday, but forgot to push them out > (sorry about that, now fixed.) Let's start over here and you can rebase your > new series on the 6.7-rc1. Okay, I will resubmit later. Thanks, Stanley > thanks, > > greg k-h