
On Tue, Nov 07, 2023 at 03:12:48PM +0000, Andre Przywara wrote:
On Tue, 7 Nov 2023 05:22:58 -0700 Simon Glass sjg@chromium.org wrote:
[snip]
We already have a perfectly good way of selecting between multiple devices. It is used all over U-Boot. We should not be inventing a hard-coded hack just because we are confused about whether something is a device. Just make it a device.
And this is exactly what my ARM RNDR driver was doing: using a UCLASS_RNG driver interface to expose entropy. I just don't understand why we desperately need a DT node for that? I understand that U_BOOT_DRVINFO should not be used, and this is fine.
I think part of the problem is that U_BOOT_DRVINFO probably is the right answer for more things than it might have been intended for at first. Because yes, looking at the driver right now, whatever semantic-wise was mentioned earlier in the thread is applicable, but it otherwise looks like the easy path to "one device has many functions" without us having to develop some special case bus to put things on.