usb: sunxi: ohci: make ohci_t the first member in private data
Subsystems (3)
PATCH 1/1 usb: sunxi: ohci: make ohci_t the first member in private data
ohci-hcd casts priv_data pointer to (ohci_t *), thus it must be the first member in private data struct.
Fixes 831cc98b1 ("usb: sunxi: Simplify ccm reg base code")
--- drivers/usb/host/ohci-sunxi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/host/ohci-sunxi.c +1 -1
@@ -33,9 +33,9 @@ struct ohci_sunxi_cfg { };struct ohci_sunxi_priv { +ohci_t ohci;struct sunxi_ccm_reg *ccm;u32 *reset0_cfg; -ohci_t ohci;int ahb_gate_mask;/* Mask of ahb_gate0 clk gate bits for this hcd */ int usb_gate_mask;/* Mask of usb_clk_cfg clk gate bits for this hcd */ struct phy phy;
Signature · 1 line
2.17.1
PATCH 1/1 usb: sunxi: ohci: make ohci_t the first member in private data
Quoted 6 lines · Vasily Khoruzhick
ohci-hcd casts
priv_datapointer to (ohci_t*), thus it must be the first member in private data struct.Fixes
831cc98b1("usb: sunxi: Simplify ccm reg base code")Signed-off-by Vasily Khoruzhick <[email protected]>
Sigh, I really wonder how (or if at all!) the original series was tested. And then I get flak for scrutinizing patches, right ...
Thanks for the fix, applied.
Quoted 20 lines
--- drivers/usb/host/ohci-sunxi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/usb/host/ohci-sunxi.c +1
-1@@ -33,9 +33,9 @@ struct ohci_sunxi_cfg { };struct ohci_sunxi_priv { +ohci_t ohci;struct sunxi_ccm_reg *ccm;u32 *reset0_cfg; -ohci_t ohci;int ahb_gate_mask;/* Mask of ahb_gate0 clk gate bits for this hcd */ int usb_gate_mask;/* Mask of usb_clk_cfg clk gate bits for this hcd */ struct phy phy;
Signature · 2 lines
Best regards, Marek Vasut
PATCH 1/1 usb: sunxi: ohci: make ohci_t the first member in private data
Quoted 10 lines · Marek Vasut
Quoted 6 lines · Vasily Khoruzhick
ohci-hcd casts
priv_datapointer to (ohci_t*), thus it must be the first member in private data struct.Fixes
831cc98b1("usb: sunxi: Simplify ccm reg base code")Signed-off-by Vasily Khoruzhick <[email protected]>Sigh, I really wonder how (or if at all!) the original series was tested. And then I get flak for scrutinizing patches, right ...
APAIK, I did basic sanity with possible tests.
But one thing for sure is, you should have to wait for sometime to apply this patch. Applying fast (that to during weekend) making reviewers or maintainers not giving enough room to work.
Jagan.
PATCH 1/1 usb: sunxi: ohci: make ohci_t the first member in private data
Quoted 5 lines · Jagan Teki
Quoted 4 lines · Marek Vasut
Quoted 3 lines · Vasily Khoruzhick
ohci-hcd casts
priv_datapointer to (ohci_t*), thus it must be the first member in private data struct.
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Fixes
831cc98b1("usb: sunxi: Simplify ccm reg base code")Signed-off-by Vasily Khoruzhick <[email protected]>Sigh, I really wonder how (or if at all!) the original series was tested. And then I get flak for scrutinizing patches, right ...
APAIK, I did basic sanity with possible tests.
From what I see in the other thread, the USB never worked with the series. If the controller returns 0s as EHCI version, something is obviously broken and I don't even understand how that could be an acceptable positive test result. The USB HCD version register can NOT EVER contain zeroes as per the specification. I am really unhappy here.
Quoted 3 lines
But one thing for sure is, you should have to wait for sometime to apply this patch. Applying fast (that to during weekend) making reviewers or maintainers not giving enough room to work.
Putting my USB maintainer hat on, I am quite sure I can evaluate such a simple yet critical bugfix, if only by spending those two minutes to look at the code in ohci_register() .
And since you complain about the rate patches get in again, let me remind you how much flak I got for taking my time reviewing your series and not applying it right away. Now I am getting flak for applying stuff too quickly instead. You know, maybe if you spend more time testing the patches you send thoroughly instead of lecturing people on the MLs, we wouldn't be having this conversation.
Signature · 2 lines
Best regards, Marek Vasut
PATCH 1/1 usb: sunxi: ohci: make ohci_t the first member in private data
Quoted 13 lines · Marek Vasut
Quoted 12 lines · Jagan Teki
Quoted 10 lines · Marek Vasut
Quoted 6 lines · Vasily Khoruzhick
ohci-hcd casts
priv_datapointer to (ohci_t*), thus it must be the first member in private data struct.Fixes
831cc98b1("usb: sunxi: Simplify ccm reg base code")Signed-off-by Vasily Khoruzhick <[email protected]>Sigh, I really wonder how (or if at all!) the original series was tested. And then I get flak for scrutinizing patches, right ...
Quoted 7 lines
Quoted 3 lines
APAIK, I did basic sanity with possible tests.
From what I see in the other thread, the USB never worked with the
series. If the controller returns 0s as EHCI version, something is obviously broken and I don't even understand how that could be an acceptable positive test result. The USB HCD version register can NOT EVER contain zeroes as per the specification. I am really unhappy here.
This is untrue, the controller returns 0's only when single node enabled not with both ehci0 and echi1 atleast on BPI-M64. and we do enable both controller on dts even with other boards too. having single node enablement is not a proper test or not with my dts atleast.
Quoted 9 lines
Quoted 4 lines
But one thing for sure is, you should have to wait for sometime to apply this patch. Applying fast (that to during weekend) making reviewers or maintainers not giving enough room to work.
Putting my USB maintainer hat on, I am quite sure I can evaluate such a simple yet critical bugfix, if only by spending those two minutes to look at the code in
ohci_register().
Quoted 6 lines
And since you complain about the rate patches get in again, let me remind you how much flak I got for taking my time reviewing your series and not applying it right away. Now I am getting flak for applying stuff too quickly instead. You know, maybe if you spend more time testing the patches you send thoroughly instead of lecturing people on the MLs, we wouldn't be having this conversation.
Again we do testing based on our usage scenario's and we're done with that and good to go. And giving room for 3 releases time and sending till v10 expecting other boards or usage scenario's can be verified by other people in the ML. for your words on 'lecturing people on the MLs' we are here to work like other developers in ML not to give lecture like in training organizations, better be clear before framing your words.
Jagan.
Signature · 4 lines
Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India.
PATCH 1/1 usb: sunxi: ohci: make ohci_t the first member in private data
Quoted 11 lines · Jagan Teki
Quoted 5 lines
Quoted 1 line
From what I see in the other thread, the USB never worked with the
series. If the controller returns 0s as EHCI version, something is obviously broken and I don't even understand how that could be an acceptable positive test result. The USB HCD version register can NOT EVER contain zeroes as per the specification. I am really unhappy here.
This is untrue, the controller returns 0's only when single node enabled not with both ehci0 and echi1 atleast on BPI-M64. and we do enable both controller on dts even with other boards too. having single node enablement is not a proper test or not with my dts atleast.
Clock for EHCI0 or OHCI0 was never enabled on your series, so reading USB HCD version for EHCI0/OHCI0 always returned 0 and you should have seen 0.0 as version for EHCI0 and OHCI0.
With both nodes enabled you had only EHCI1/OHCI1 functional.
PATCH 1/1 usb: sunxi: ohci: make ohci_t the first member in private data
In reply to Jagan TekiQuoted 9 lines · Jagan Teki
Quoted 8 lines · Marek Vasut
Quoted 6 lines · Vasily Khoruzhick
ohci-hcd casts
priv_datapointer to (ohci_t*), thus it must be the first member in private data struct.Fixes
831cc98b1("usb: sunxi: Simplify ccm reg base code")Signed-off-by Vasily Khoruzhick <[email protected]>
Quoted 8 lines
Quoted 2 lines
Sigh, I really wonder how (or if at all!) the original series was tested. And then I get flak for scrutinizing patches, right ...
APAIK, I did basic sanity with possible tests.
But one thing for sure is, you should have to wait for sometime to apply this patch. Applying fast (that to during weekend) making reviewers or maintainers not giving enough room to work.
It is a custodian's job to pick up what they see as obviously correct and/or important fixes ASAP. While things are working in your test cases, there are clearly other hardware combinations that are not working and that this corrects.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180618/4164b6c5/attachment.sig>