Re: [PATCH v2 0/5] Refactor Qualcomm RPM regulator to single platform_device
From: Bjorn Andersson
Date: Mon Apr 06 2015 - 13:11:27 EST
On Mon, Apr 6, 2015 at 9:51 AM, Mark Brown <broonie@xxxxxxxxxx> wrote:
> On Thu, Apr 02, 2015 at 03:57:16PM -0700, Stephen Boyd wrote:
>> On 04/02/15 15:26, Mark Brown wrote:
>> > Guenther sent a patch fixing that a while back.
>> This one?
>> regulator: Ensure unique regulator debugfs directory names
>> Ok. Seems to be only in next. I'm not sure it will work though because
>> in this case the parent device is the same for both regulators on
>> different PMICs that the RPM is controlling. I could be wrong though
>> because I haven't tested it.
> I'd say that if the driver is doing this then the driver is buggy - the
> user should be able to distinguish between two regulators appearing for
> the same device. Either the RPM should create dummy devices for the two
> PMICs or something should insert the PMIC name into the regulator name
> somewhere along the line (perhaps in the static data).
Sorry, I spoke before I had coffee...
The RPM will instantiate one regulator device per pmic and parent will
hence differ between the various regulator instances.
So with Guenter's patch this does indeed work.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/