Re: [PATCH v1 2/2] devinfo: print only devices with errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 16, 2021 at 09:59:03AM +0200, Sascha Hauer wrote:
> Hi Oleksij,
> 
> On Sun, Jun 06, 2021 at 02:24:00PM +0200, Oleksij Rempel wrote:
> > Make use of device state flags and print only devices with errors.
> > The result will look like this:
> > barebox@RIoTboard i.MX6S:/ devinfo -e
> > `-- 2188000.ethernet@xxxxxxxxxx <-- (error!)
> >    `-- miibus0
> >       `-- mdio0-phy04
> >          `-- 0x00000000-0x0000003f (  64 Bytes): /dev/mdio0-phy04
> >    `-- eth0
> 
> What advantages brings that over doing a dmesg and looking at the
> output?

It makes it possible to add additional handlers. For example, change
heartbeat pattern if some errors was detected. Or add board specific
selftest to check if listed devices was initialized without errors.

Regards,
Oleksij
-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux