]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Merge remote-tracking branch 'driver-core/driver-core-next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Apr 2021 06:33:08 +0000 (16:33 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Apr 2021 06:33:08 +0000 (16:33 +1000)
# Conflicts:
# drivers/of/property.c

1  2 
MAINTAINERS
drivers/base/dd.c
drivers/clk/clk.c
drivers/of/property.c
drivers/power/supply/axp20x_usb_power.c
drivers/power/supply/sbs-battery.c
drivers/regulator/qcom_spmi-regulator.c

diff --cc MAINTAINERS
Simple merge
index 37a5e5f8b2219e3a50d7d587a6d94c9d8da35971,2f00d1d5b414da3adec9d709c8bb56cb64613c15..ecd7cf848daff7ea3522cb18f568f2203c5a522b
@@@ -292,8 -299,10 +299,10 @@@ int driver_deferred_probe_check_state(s
  
  static void deferred_probe_timeout_work_func(struct work_struct *work)
  {
 -      struct device_private *private, *p;
 +      struct device_private *p;
  
+       fw_devlink_drivers_done();
        driver_deferred_probe_timeout = 0;
        driver_deferred_probe_trigger();
        flush_work(&deferred_probe_work);
Simple merge
index 1793303e84aca3ff156f765a5730d99af70624b4,2bb3158c9e43d1188ad0e0562f1b9b52498946ae..6c028632f425f42242c2697f630ce270b5112e35
@@@ -1243,7 -1230,8 +1248,8 @@@ static struct device_node *parse_##fnam
   * @parse_prop.prop_name: Name of property holding a phandle value
   * @parse_prop.index: For properties holding a list of phandles, this is the
   *                  index into the list
 - * @optional: The property can be an optional dependency.
 + * @optional: Describes whether a supplier is mandatory or not
+  * @node_not_dev: The consumer node containing the property is never a device.
   *
   * Returns:
   * parse_prop() return values are
@@@ -1279,18 -1268,10 +1286,19 @@@ DEFINE_SIMPLE_PROP(pinctrl5, "pinctrl-5
  DEFINE_SIMPLE_PROP(pinctrl6, "pinctrl-6", NULL)
  DEFINE_SIMPLE_PROP(pinctrl7, "pinctrl-7", NULL)
  DEFINE_SIMPLE_PROP(pinctrl8, "pinctrl-8", NULL)
+ DEFINE_SIMPLE_PROP(remote_endpoint, "remote-endpoint", NULL)
  DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
  DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells")
 -DEFINE_SUFFIX_PROP(gpios, "-gpios", "#gpio-cells")
 +
 +static struct device_node *parse_gpios(struct device_node *np,
 +                                     const char *prop_name, int index)
 +{
 +      if (!strcmp_suffix(prop_name, ",nr-gpios"))
 +              return NULL;
 +
 +      return parse_suffix_prop_cells(np, prop_name, index, "-gpios",
 +                                     "#gpio-cells");
 +}
  
  static struct device_node *parse_iommu_maps(struct device_node *np,
                                            const char *prop_name, int index)
index 4bf92831cb06f1c6d2dfbefe78e981b9bc5f496a,70ea404b2a36767ecfc313e0df5af4231f61bf81..8d7a10730e43d98e7e11291c5d27455064dabf4f
@@@ -1156,12 -1159,17 +1157,15 @@@ skip_gpio
  
                rc = sbs_get_battery_presence_and_health(
                                client, POWER_SUPPLY_PROP_PRESENT, &val);
 -              if (rc < 0 || !val.intval) {
 -                      dev_err(&client->dev, "Failed to get present status\n");
 -                      rc = -ENODEV;
 -                      goto exit_psupply;
 -              }
 +              if (rc < 0 || !val.intval)
 +                      return dev_err_probe(&client->dev, -ENODEV,
 +                                           "Failed to get present status\n");
        }
  
-       INIT_DELAYED_WORK(&chip->work, sbs_delayed_work);
+       rc = devm_delayed_work_autocancel(&client->dev, &chip->work,
+                                         sbs_delayed_work);
+       if (rc)
+               return rc;
  
        chip->power_supply = devm_power_supply_register(&client->dev, sbs_desc,
                                                   &psy_cfg);
                "%s: battery gas gauge device registered\n", client->name);
  
        return 0;
 -
 -exit_psupply:
 -      return rc;
  }
  
- static int sbs_remove(struct i2c_client *client)
- {
-       struct sbs_info *chip = i2c_get_clientdata(client);
-       cancel_delayed_work_sync(&chip->work);
-       return 0;
- }
  #if defined CONFIG_PM_SLEEP
  
  static int sbs_suspend(struct device *dev)