Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1269552
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs |
| Date | 2015-11-15 01:20 +0100 |
| Message-ID | <quTcZ-2Ab-3@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <quDKV-19N-11@gated-at.bofh.it> <quIhA-3Zt-7@gated-at.bofh.it> <quNhg-76F-1@gated-at.bofh.it> <quOdk-7FI-9@gated-at.bofh.it> <quQoO-Ky-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Sat, Nov 14, 2015 at 10:16:33PM +0100, Pavel Machek wrote: > HiOn Sat 2015-11-14 18:49:40, Mark Brown wrote: > > On Sat, Nov 14, 2015 at 06:59:16PM +0100, Pavel Machek wrote: > > > Well, mfd_core.c seems to call regulator_bulk_register_supply_alias() > > > with device that does not have dev_name initialized. > > OK, that'll be the problem then - we're not mapping the supply into the > > individual child device but rather system wide, probably because that > > mapping is being done too early, before we've actually created the > > device. > Take a look at mfd_add_device(). Yes, we do > regulator_bulk_register_supply_alias() before doing > platform_device_add(). Looking at this I suspect we need to re-add the code for matching regulators on the actual struct device and do that since this is going to be very error prone. > I guess Charles Keepax should be listed there? Possibly, up to them. > > So if you look at this just templates out some boilerplate regulator API > > client code which calls regulator_get() like any other client and then > > hooks that regulator into the audio power management. > Ok, so SND_SOC_DAPM_REGULATOR_SUPPLY() does not work, because I have > two regulators, right? Is there similar macro I can use? No? What would make you say that? > Do you have an example (filename, linenumber) of sound driver that > gets this right? I'm not aware of any drivers that get this wrong. > > I'm not sure how I can be any clearer that supply names are namespaced > > by client device and that as a result fiddling around with the supply > > name is not going to help anything. > Well, you are saying that pretty clearly, but sound driver I seen > assumes names are global, and /sys interface assumed the names are > global. Give me an example I can look at and I should be able to > figure it out... You are clear, but the kernel code seems to disagree > with you. Every single sound driver gets this right, none of them assume the name is global. What makes you say that they assume names are global?
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Pavel Machek <pavel@ucw.cz> - 2015-11-13 23:00 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Mark Brown <broonie@kernel.org> - 2015-11-14 00:00 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Pavel Machek <pavel@ucw.cz> - 2015-11-14 08:50 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Mark Brown <broonie@kernel.org> - 2015-11-14 13:40 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Pavel Machek <pavel@ucw.cz> - 2015-11-14 19:00 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Mark Brown <broonie@kernel.org> - 2015-11-14 20:00 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Pavel Machek <pavel@ucw.cz> - 2015-11-14 22:20 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Mark Brown <broonie@kernel.org> - 2015-11-15 01:20 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Pavel Machek <pavel@ucw.cz> - 2015-11-16 08:50 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Mark Brown <broonie@kernel.org> - 2015-11-16 12:00 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Pavel Machek <pavel@ucw.cz> - 2015-11-16 13:40 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2015-11-16 15:20 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2015-11-16 15:50 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Mark Brown <broonie@kernel.org> - 2015-11-16 18:40 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2015-11-16 15:30 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Pavel Machek <pavel@ucw.cz> - 2015-11-22 08:00 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Lee Jones <lee.jones@linaro.org> - 2015-11-23 09:20 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Pavel Machek <pavel@ucw.cz> - 2015-11-23 11:20 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Richard Fitzgerald <rf@opensource.wolfsonmicro.com> - 2015-11-23 11:30 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Mark Brown <broonie@kernel.org> - 2015-11-23 12:40 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2015-11-23 13:10 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Lee Jones <lee.jones@linaro.org> - 2015-11-23 15:40 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Pavel Machek <pavel@ucw.cz> - 2015-11-23 16:10 +0100
Re: multi-codec support for arizona-ldo1 was Re: System with multiple arizona (wm5102) codecs Charles Keepax <ckeepax@opensource.wolfsonmicro.com> - 2015-11-16 15:30 +0100
csiph-web