Skip to contentSkip to conversation

Reprobe devices at run time

U-Boot Michal Simek 3 participants 4 messages Jun 20, 2018 – Jun 21, 2018

lore
Share & tools
lore
#0 lore raw

Hi Simon and other,

do we have a way to remove device and probe it again via u-boot prompt? I was grepping u-boot and I didn't find any command for that. I see functionality in the code and several tests but nothing what it is available via command.

Thanks,
Michal

#1 lore raw

Hi Michal,

Quoted 6 lines · Michal Simek

Hi Simon and other,

do we have a way to remove device and probe it again via u-boot prompt? I was grepping u-boot and I didn't find any command for that. I see functionality in the code and several tests but nothing what it is available via command.

No we do not. But see the recent patch to allow bind/unbind from the command line. That might point the way.

Regards,
Simon

#2 lore raw

Hi Simon,

Quoted 5 lines · Simon Glass

Hi Michal,

Quoted 2 lines · Michal Simek

Hi Simon and other,

Quoted 7 lines
Quoted 4 lines

do we have a way to remove device and probe it again via u-boot prompt? I was grepping u-boot and I didn't find any command for that. I see functionality in the code and several tests but nothing what it is available via command.

No we do not. But see the recent patch to allow bind/unbind from the command line. That might point the way.

Thanks for pointer. I have commented that series and let's have discussion there.

Thanks,
Michal

#3 lore raw
Quoted 14 lines · Michal Simek

Hi Simon,

Quoted 11 lines · Simon Glass

Hi Michal,

Quoted 6 lines · Michal Simek

Hi Simon and other,

do we have a way to remove device and probe it again via u-boot prompt? I was grepping u-boot and I didn't find any command for that. I see functionality in the code and several tests but nothing what it is available via command.

No we do not. But see the recent patch to allow bind/unbind from the command line. That might point the way.

I agree with Simon.
I'll send an updated version soon which does remove the device before unbinding.
Unbind/rebinding would work in this case to re-trigger a probe. Alternatively one could add probe/remove commands with kind of the same UI as bind/unbind (minus the driver name).

JJ

Quoted 10 lines

Thanks for pointer. I have commented that series and let's have discussion there.

Thanks,
Michal

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot