Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1275766
| From | "Andrew F. Davis" <afd@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 3/4] regulator: tps65086: Add regulator driver for the TPS65086 PMIC |
| Date | 2015-11-23 20:20 +0100 |
| Message-ID | <qy4OC-65O-7@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <qxgyt-5TQ-7@gated-at.bofh.it> <qxngC-1ZX-1@gated-at.bofh.it> <qxCIF-4gI-3@gated-at.bofh.it> <qy3pw-51A-15@gated-at.bofh.it> <qy4EW-62g-17@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 11/23/2015 01:00 PM, Mark Brown wrote: > On Mon, Nov 23, 2015 at 11:40:55AM -0600, Andrew F. Davis wrote: > >> But which of_node? > >> regulator_config->of_node >> regulator_config->dev->of_node > >> The second is the only one I see getting used, the first is only >> used when drivers provide their own init_data and automatic init >> data getting fails. > > The configuration of_node is there to override the device one if there > were some reason to do it. This should only happen in a situation where > we weren't able to use the core parsing, with modern drivers it > indicates a problematic binding so the code deliberately doesn't handle > it. Anything with a problematic binding will have generated the > init_data in driver code anyway. If we come up with a reason to extend > the interface we can do that but for now there is no need. > Right, so this is the kind of description that would be nice with the declaration. >> The same issue is present in GPIO (gpiolib.c:612), where the of_node > > Line number references are complately unhelpful if you don't say what > you're looking at (for me that's a call to irq_find_mapping() which I'm > guessing isn't what you were talking about). > My bad, that is for v4.4-rc1 line 694. The lines are: > of_node = gpiochip->dev->of_node; > #ifdef CONFIG_OF_GPIO > /* > * If the gpiochip has an assigned OF node this takes precedence > * FIXME: get rid of this and use gpiochip->dev->of_node everywhere > */ > if (gpiochip->of_node) > of_node = gpiochip->of_node; > #endif So, if we have a config->of_node it is used over config->dev->of_node. >> in the config takes precedence over the one in config->dev, the >> opposite is true for regulators, this is very confusing and should be >> standardized. > > No, they both do the same thing. > I don't see that, config->dev->of_node is checked for the init data in regulator_of_get_init_data, then config->of_node is then ignored if that succeeds. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v4 0/4] Add support for the TI TPS65086 PMIC "Andrew F. Davis" <afd@ti.com> - 2015-11-20 00:10 +0100
[PATCH v4 3/4] regulator: tps65086: Add regulator driver for the TPS65086 PMIC "Andrew F. Davis" <afd@ti.com> - 2015-11-20 00:10 +0100
Re: [PATCH v4 3/4] regulator: tps65086: Add regulator driver for the TPS65086 PMIC Mark Brown <broonie@kernel.org> - 2015-11-21 14:40 +0100
Re: [PATCH v4 3/4] regulator: tps65086: Add regulator driver for the TPS65086 PMIC "Andrew F. Davis" <afd@ti.com> - 2015-11-21 21:50 +0100
Re: [PATCH v4 3/4] regulator: tps65086: Add regulator driver for the TPS65086 PMIC Mark Brown <broonie@kernel.org> - 2015-11-22 14:20 +0100
Re: [PATCH v4 3/4] regulator: tps65086: Add regulator driver for the TPS65086 PMIC "Andrew F. Davis" <afd@ti.com> - 2015-11-23 18:50 +0100
Re: [PATCH v4 3/4] regulator: tps65086: Add regulator driver for the TPS65086 PMIC Mark Brown <broonie@kernel.org> - 2015-11-23 20:10 +0100
Re: [PATCH v4 3/4] regulator: tps65086: Add regulator driver for the TPS65086 PMIC "Andrew F. Davis" <afd@ti.com> - 2015-11-23 20:20 +0100
Re: [PATCH v4 3/4] regulator: tps65086: Add regulator driver for the TPS65086 PMIC Mark Brown <broonie@kernel.org> - 2015-11-24 13:20 +0100
[PATCH v4 4/4] gpio: tps65086: Add GPO driver for the TPS65086 PMIC "Andrew F. Davis" <afd@ti.com> - 2015-11-20 00:10 +0100
Re: [PATCH v4 4/4] gpio: tps65086: Add GPO driver for the TPS65086 PMIC Linus Walleij <linus.walleij@linaro.org> - 2015-11-30 10:00 +0100
[PATCH v4 2/4] mfd: tps65086: Add driver for the TPS65086 PMIC "Andrew F. Davis" <afd@ti.com> - 2015-11-20 00:10 +0100
Re: [PATCH v4 2/4] mfd: tps65086: Add driver for the TPS65086 PMIC Lee Jones <lee.jones@linaro.org> - 2015-11-23 17:30 +0100
[PATCH v4 1/4] Documentation: tps65086: Add DT bindings for the TPS65086 PMIC "Andrew F. Davis" <afd@ti.com> - 2015-11-20 00:10 +0100
Re: [PATCH v4 1/4] Documentation: tps65086: Add DT bindings for the TPS65086 PMIC Rob Herring <robh@kernel.org> - 2015-11-20 17:40 +0100
Re: [PATCH v4 1/4] Documentation: tps65086: Add DT bindings for the TPS65086 PMIC Lee Jones <lee.jones@linaro.org> - 2015-11-23 17:10 +0100
csiph-web