bus: ti-sysc: change in a normal driver
PATCH v2 1/1 bus: ti-sysc: change in a normal driver
The module defines a duplicate uclass driver for UCLASS_SIMPLE_BUS, but it is not allowed. This breaks of-platdata and makes the result non-deterministic.
The driver does not need to be an uclass driver, so lets remove it. I had turned it into an uclass driver because I thought wrongly it had to call the dm_scan_fdt_dev routine to work properly, but some tests on the board have shown otherwise.
---
Changes in v2:
- Remove UCLASS_SYSC id.
- Change ti-sysc in a normal driver instead of an uclass driver. Previous tests, where I had removed the uclass driver, failed because I added the dm_scan_fdt_dev routine to the driver bind routine (I moved it from the uclass driver post_bind routine to the normal driver bind one).
drivers/bus/ti-sysc.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/bus/ti-sysc.c +0 -6
@@ -148,12 +148,6 @@ clocks_err:return err; } -UCLASS_DRIVER (ti_sysc) = { - .id =UCLASS_SIMPLE_BUS , - .name ="ti_sysc" , - .post_bind = dm_scan_fdt_dev -}; -U_BOOT_DRIVER (ti_sysc) = { .name ="ti_sysc" , .id =UCLASS_SIMPLE_BUS ,
Signature · 1 line
2.17.1
PATCH v2 1/1 bus: ti-sysc: change in a normal driver
Quoted 22 lines · Dario Binacchi
The module defines a duplicate uclass driver for
UCLASS_SIMPLE_BUS, but it is not allowed. This breaks of-platdata and makes the result non-deterministic.The driver does not need to be an uclass driver, so lets remove it. I had turned it into an uclass driver because I thought wrongly it had to call the
dm_scan_fdt_devroutine to work properly, but some tests on the board have shown otherwise.Signed-off-by Dario Binacchi <[email protected]>---
Changes in v2:
- RemoveUCLASS_SYSCid.
- Change ti-sysc in a normal driver instead of an uclass driver. Previous tests, where I had removed the uclass driver, failed because I added thedm_scan_fdt_devroutine to the driver bind routine (I moved it from the uclass driverpost_bindroutine to the normal driver bind one).
Quoted 2 lines
drivers/bus/ti-sysc.c | 6 ------ 1 file changed, 6 deletions(-)
Thank you!
PATCH v2 1/1 bus: ti-sysc: change in a normal driver
In reply to Dario BinacchiQuoted 11 lines · Dario Binacchi
The module defines a duplicate uclass driver for
UCLASS_SIMPLE_BUS, but it is not allowed. This breaks of-platdata and makes the result non-deterministic.The driver does not need to be an uclass driver, so lets remove it. I had turned it into an uclass driver because I thought wrongly it had to call the
dm_scan_fdt_devroutine to work properly, but some tests on the board have shown otherwise.Signed-off-by Dario Binacchi <[email protected]>Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210319/326086d1/attachment.sig>
PATCH v2 1/1 bus: ti-sysc: change in a normal driver
Quoted 12 lines · Tom Rini
Quoted 9 lines · Dario Binacchi
The module defines a duplicate uclass driver for
UCLASS_SIMPLE_BUS, but it is not allowed. This breaks of-platdata and makes the result non-deterministic.The driver does not need to be an uclass driver, so lets remove it. I had turned it into an uclass driver because I thought wrongly it had to call the
dm_scan_fdt_devroutine to work properly, but some tests on the board have shown otherwise.
Quoted 4 lines
Quoted 2 lines
Signed-off-by Dario Binacchi <[email protected]>Reviewed-by Simon Glass <[email protected]>Applied to u-boot/master, thanks!
Also applied to u-boot-dm/next, thanks!
PATCH v2 1/1 bus: ti-sysc: change in a normal driver
Quoted 13 lines · Simon Glass
Quoted 12 lines · Tom Rini
Quoted 9 lines · Dario Binacchi
The module defines a duplicate uclass driver for
UCLASS_SIMPLE_BUS, but it is not allowed. This breaks of-platdata and makes the result non-deterministic.The driver does not need to be an uclass driver, so lets remove it. I had turned it into an uclass driver because I thought wrongly it had to call the
dm_scan_fdt_devroutine to work properly, but some tests on the board have shown otherwise.
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
Signed-off-by Dario Binacchi <[email protected]>Reviewed-by Simon Glass <[email protected]>Applied to u-boot/master, thanks!
Also applied to u-boot-dm/next, thanks!
Well, wait, no, why? -rc5 will get merged to -next in time I hope. Is this going to block other work in dm/next?
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210319/f89a87fb/attachment.sig>
PATCH v2 1/1 bus: ti-sysc: change in a normal driver
Hi Tom,
Quoted 18 lines · Tom Rini
Quoted 16 lines · Simon Glass
Quoted 15 lines · Tom Rini
Quoted 11 lines · Dario Binacchi
The module defines a duplicate uclass driver for
UCLASS_SIMPLE_BUS, but it is not allowed. This breaks of-platdata and makes the result non-deterministic.The driver does not need to be an uclass driver, so lets remove it. I had turned it into an uclass driver because I thought wrongly it had to call the
dm_scan_fdt_devroutine to work properly, but some tests on the board have shown otherwise.Signed-off-by Dario Binacchi <[email protected]>Reviewed-by Simon Glass <[email protected]>
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Applied to u-boot/master, thanks!
Also applied to u-boot-dm/next, thanks!
Well, wait, no, why? -rc5 will get merged to -next in time I hope. Is this going to block other work in dm/next?
Ah I'm about to send a pull request which fails without this. I can hold off if you like?
Regards,
Simon
PATCH v2 1/1 bus: ti-sysc: change in a normal driver
Quoted 23 lines · Simon Glass
Hi Tom,
Quoted 20 lines · Tom Rini
Quoted 18 lines · Simon Glass
Quoted 16 lines · Tom Rini
Quoted 11 lines · Dario Binacchi
The module defines a duplicate uclass driver for
UCLASS_SIMPLE_BUS, but it is not allowed. This breaks of-platdata and makes the result non-deterministic.The driver does not need to be an uclass driver, so lets remove it. I had turned it into an uclass driver because I thought wrongly it had to call the
dm_scan_fdt_devroutine to work properly, but some tests on the board have shown otherwise.Signed-off-by Dario Binacchi <[email protected]>Reviewed-by Simon Glass <[email protected]>Applied to u-boot/master, thanks!
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Also applied to u-boot-dm/next, thanks!
Well, wait, no, why? -rc5 will get merged to -next in time I hope. Is this going to block other work in dm/next?
Ah I'm about to send a pull request which fails without this. I can hold off if you like?
Ah, OK. git should do the right thing in the end, I hope. I'll do a quick local test to confirm once you send me the PR.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210320/e7757c66/attachment.sig>