fix for lantiq (danube) usb

John Crispin john at phrozen.org
Fri Jul 3 16:10:24 EDT 2020


On 03.07.20 22:05, Luca Olivetti wrote:
> El 3/7/20 a les 21:31, Luca Olivetti ha escrit:
>
>> I suppose it's the call to devm_regulator_get_optional, which should 
>> lead to regulator/core.c
>>
>> static struct regulator_dev *regulator_dev_lookup(struct device *dev,
>>                                                    const char *supply)
>> {
>>          struct regulator_dev *r = NULL;
>>          struct device_node *node;
>>          struct regulator_map *map;
>>          const char *devname = NULL;
>>
>>          regulator_supply_alias(&dev, &supply);
>>
>>          /* first do a dt based lookup */
>>          if (dev && dev->of_node) {
>>                  node = of_get_regulator(dev, supply);
>>                  if (node) {
>>                          r = of_find_regulator_by_node(node);
>>                          if (r)
>>                                  return r;
>>
>>                          /*
>>                           * We have a node, but there is no device.
>>                           * assume it has not registered yet.
>>                           */
>
> I added a printk here and it's exactly as I supposed.
> Now what?
>
>
>>                          return ERR_PTR(-EPROBE_DEFER);
>>                  }
>>          }
>>
>
> Bye
chicken and egg ? is your dts correct ? go on. inspire us with you 
skills ...



More information about the openwrt-devel mailing list