usb: host: ehci-vf: Fix portnr initialization
Subsystems (2)
PATCH 1/1 usb: host: ehci-vf: Fix portnr initialization
As of 29f7d05a347ab7a42577c67fdfb787ef91537302 dev->seq will be set after device_ofdata_to_platdata(), therefore dev->seq must be read later during probe
--- drivers/usb/host/ehci-vf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/host/ehci-vf.c +2 -2
@@ -222,8 +222,6 @@ static int vf_usb_of_to_plat(struct udevice *dev)int node =dev_of_offset (dev);const char *mode; - priv->portnr =dev_seq (dev); - priv->ehci =dev_read_addr_ptr (dev); mode =fdt_getprop (dt_blob, node,"dr_mode" ,NULL );if (mode) {
@@ -317,6 +315,8 @@ static int ehci_usb_probe(struct udevice *dev)struct ehci_hcor *hcor;int ret; + priv->portnr =dev_seq (dev); + ret =ehci_vf_common_init (ehci, priv->portnr);if (ret)return ret;
Signature · 1 line
2.25.1
PATCH 1/1 usb: host: ehci-vf: Fix portnr initialization
Hi Dominik,
Quoted 33 lines · Dominik Wild
As of
29f7d05a347ab7a42577c67fdfb787ef91537302dev->seqwill be set afterdevice_ofdata_to_platdata(), thereforedev->seqmust be read later during probeSigned-off-by Dominik Wild <[email protected]>--- drivers/usb/host/ehci-vf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/usb/host/ehci-vf.c +2
-3@@ -222,8 +222,6 @@ static int vf_usb_of_to_plat(struct udevice *dev)int node =dev_of_offset (dev);const char *mode; - priv->portnr =dev_seq (dev); - priv->ehci =dev_read_addr_ptr (dev); mode =fdt_getprop (dt_blob, node,"dr_mode" ,NULL );if (mode) {@@ -317,6 +315,8 @@ static int ehci_usb_probe(struct udevice *dev)struct ehci_hcor *hcor;int ret; + priv->portnr =dev_seq (dev); + ret =ehci_vf_common_init (ehci, priv->portnr);if (ret)return ret; --
Quoted 2 lines
2.25.1
I am a bit surprised at this...the sequence number should normally be set during the bind step. Is this missing from USB binding? I can't recall how it works right now.
Regards,
Simon
A message that is not in the archive (sent off-list or not yet received): CALSffXSB+9ZbkEdM-8e6RCOhggezBJE4DoG7S8Ar5aXLgrE+Ww@mail.gmail.com
PATCH 1/1 usb: host: ehci-vf: Fix portnr initialization
+U-Boot Mailing List
Quoted 4 lines · Dominik Wild
Hi Simon
Okay, I had another look and figured that you worked on sequence numbers in December. The thing is that I started the bisect from v2021.01 and up to this version the sequence number was always -1. But I can now confirm that the ehci-vf driver is working again from v2021.4-rc1.
OK thanks for checking this. So it means that it is broken in v2021.01. Now I am wondering what actually fixed it?
Regards,
Simon
Quoted 47 lines
Am Do., 4. M?rz 2021 um 04:47 Uhr schrieb Simon Glass <[email protected]>:
Quoted 46 lines
Hi Dominik,
Quoted 33 lines · Dominik Wild
As of
29f7d05a347ab7a42577c67fdfb787ef91537302dev->seqwill be set afterdevice_ofdata_to_platdata(), thereforedev->seqmust be read later during probeSigned-off-by Dominik Wild <[email protected]>--- drivers/usb/host/ehci-vf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/usb/host/ehci-vf.c +2
-3@@ -222,8 +222,6 @@ static int vf_usb_of_to_plat(struct udevice *dev)int node =dev_of_offset (dev);const char *mode; - priv->portnr =dev_seq (dev); - priv->ehci =dev_read_addr_ptr (dev); mode =fdt_getprop (dt_blob, node,"dr_mode" ,NULL );if (mode) {@@ -317,6 +315,8 @@ static int ehci_usb_probe(struct udevice *dev)struct ehci_hcor *hcor;int ret; + priv->portnr =dev_seq (dev); + ret =ehci_vf_common_init (ehci, priv->portnr);if (ret)return ret; --Quoted 2 lines
2.25.1
I am a bit surprised at this...the sequence number should normally be set during the bind step. Is this missing from USB binding? I can't recall how it works right now.
Regards,
Simon