From: Eugen Hristev Date: Tue, 18 Sep 2018 07:35:28 +0000 (+0300) Subject: w1: identify devices with w1-eeprom uclass X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=543b98c85719ff0e5e80e9e18fbcc4dc50a2136b;p=u-boot.git w1: identify devices with w1-eeprom uclass When a new device is discovered, this may be a w1 eeprom device. Attempt to find the proper node and driver from the w1-eeprom subsystem. Signed-off-by: Eugen Hristev --- diff --git a/drivers/w1/w1-uclass.c b/drivers/w1/w1-uclass.c index 44759fea44..aecf7fec77 100644 --- a/drivers/w1/w1-uclass.c +++ b/drivers/w1/w1-uclass.c @@ -13,6 +13,7 @@ #include #include #include +#include #include @@ -98,6 +99,9 @@ static int w1_enumerate(struct udevice *bus) debug("%s: Detected new device 0x%llx (family 0x%x)\n", bus->name, rn, (u8)(rn & 0xff)); + + /* attempt to register as w1-eeprom device */ + w1_eeprom_register_new_device(rn); } }