All of lore.kernel.org
 help / color / mirror / Atom feed
* bug in DT docs vs mcp251x.c driver
@ 2017-02-21 18:08 Janusz Użycki
  2017-02-21 18:46 ` Marc Kleine-Budde
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Janusz Użycki @ 2017-02-21 18:08 UTC (permalink / raw)
  To: Alexander Shiyan
  Cc: Oliver Hartkopp, linux-can, Marc Kleine-Budde,
	Wolfgang Grandegger, devicetree, l.dalek elpromaelectronics.com

Hi,

We've noticed the inconsistency in DT which still exist in kernel v4.10:

devm_regulator_get(&spi->dev, "vdd") in drivers/net/can/mcp251x.c

vs vdd-supply: Regulator that powers the CAN controller. in
bindings/net/can/microchip,mcp251x.txt
Eg. https://patchwork.ozlabs.org/patch/304371/ best regards Janusz 
Użycki ELPROMA


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bug in DT docs vs mcp251x.c driver
  2017-02-21 18:08 bug in DT docs vs mcp251x.c driver Janusz Użycki
@ 2017-02-21 18:46 ` Marc Kleine-Budde
       [not found] ` <1d36bb5b-b46a-8e9a-672b-907cac5c5ab4-cjVIcFy54eMe9JSWTWOYM+658FiBabzs@public.gmane.org>
  2017-02-22  5:53 ` Alexander Shiyan
  2 siblings, 0 replies; 6+ messages in thread
From: Marc Kleine-Budde @ 2017-02-21 18:46 UTC (permalink / raw)
  To: Janusz Użycki, Alexander Shiyan
  Cc: Oliver Hartkopp, linux-can, Wolfgang Grandegger, devicetree,
	l.dalek elpromaelectronics.com


[-- Attachment #1.1: Type: text/plain, Size: 716 bytes --]

On 02/21/2017 07:08 PM, Janusz Użycki wrote:
> Hi,
> 
> We've noticed the inconsistency in DT which still exist in kernel v4.10:
> 
> devm_regulator_get(&spi->dev, "vdd") in drivers/net/can/mcp251x.c
> 
> vs vdd-supply: Regulator that powers the CAN controller. in
> bindings/net/can/microchip,mcp251x.txt
> Eg. https://patchwork.ozlabs.org/patch/304371/ best regards Janusz 

Can you create a patch to fix the issue?

Marc

-- 
Pengutronix e.K.                  | Marc Kleine-Budde           |
Industrial Linux Solutions        | Phone: +49-231-2826-924     |
Vertretung West/Dortmund          | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686  | http://www.pengutronix.de   |


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bug in DT docs vs mcp251x.c driver
       [not found] ` <1d36bb5b-b46a-8e9a-672b-907cac5c5ab4-cjVIcFy54eMe9JSWTWOYM+658FiBabzs@public.gmane.org>
@ 2017-02-21 18:47   ` Fabio Estevam
  2017-02-22  7:58     ` Janusz Użycki
  0 siblings, 1 reply; 6+ messages in thread
From: Fabio Estevam @ 2017-02-21 18:47 UTC (permalink / raw)
  To: Janusz Użycki
  Cc: Alexander Shiyan, Oliver Hartkopp,
	linux-can-u79uwXL29TY76Z2rM5mHXA, Marc Kleine-Budde,
	Wolfgang Grandegger, devicetree-u79uwXL29TY76Z2rM5mHXA,
	l.dalek elpromaelectronics.com

Hi Janusz,

On Tue, Feb 21, 2017 at 3:08 PM, Janusz Użycki
<j.uzycki-cjVIcFy54eMe9JSWTWOYM+658FiBabzs@public.gmane.org> wrote:
> Hi,
>
> We've noticed the inconsistency in DT which still exist in kernel v4.10:
>
> devm_regulator_get(&spi->dev, "vdd") in drivers/net/can/mcp251x.c
>
> vs vdd-supply: Regulator that powers the CAN controller. in
> bindings/net/can/microchip,mcp251x.txt

This is correct.

When the regulator is retrieved as devm_regulator_get(dev, "xyz") then
it searches for a xyz-supply in the dts.
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bug in DT docs vs mcp251x.c driver
  2017-02-21 18:08 bug in DT docs vs mcp251x.c driver Janusz Użycki
  2017-02-21 18:46 ` Marc Kleine-Budde
       [not found] ` <1d36bb5b-b46a-8e9a-672b-907cac5c5ab4-cjVIcFy54eMe9JSWTWOYM+658FiBabzs@public.gmane.org>
@ 2017-02-22  5:53 ` Alexander Shiyan
       [not found]   ` <1487742799.631389473-OruIP1U3PUxsdVUOrk1QfQ@public.gmane.org>
  2 siblings, 1 reply; 6+ messages in thread
From: Alexander Shiyan @ 2017-02-22  5:53 UTC (permalink / raw)
  To: Janusz Użycki
  Cc: Oliver Hartkopp, linux-can, Marc Kleine-Budde,
	Wolfgang Grandegger, devicetree, l.dalek elpromaelectronics.com

>Вторник, 21 февраля 2017, 21:08 +03:00 от Janusz Użycki <j.uzycki@elpromaelectronics.com>:

>We've noticed the inconsistency in DT which still exist in kernel v4.10:
>
>devm_regulator_get(&spi->dev, "vdd") in drivers/net/can/mcp251x.c
>
>vs vdd-supply: Regulator that powers the CAN controller. in
>bindings/net/can/microchip,mcp251x.txt

I do not see the bug here, could you clarify?

---

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bug in DT docs vs mcp251x.c driver
  2017-02-21 18:47   ` Fabio Estevam
@ 2017-02-22  7:58     ` Janusz Użycki
  0 siblings, 0 replies; 6+ messages in thread
From: Janusz Użycki @ 2017-02-22  7:58 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Alexander Shiyan, Oliver Hartkopp, linux-can, Marc Kleine-Budde,
	Wolfgang Grandegger, devicetree, l.dalek elpromaelectronics.com

Hi Fabio.

You are right. Thanks.
According to the source code printf adds the "-supply" indeed.
I've not verified the code as I got a report for 3.14 that the driver
does not work with vdd-supply in DT, works with vdd property
and the supply was verified electrically.
Now I have to investigate the problem better.

best regards

Janusz


W dniu 2017-02-21 o 19:47, Fabio Estevam pisze:
> Hi Janusz,
>
> On Tue, Feb 21, 2017 at 3:08 PM, Janusz Użycki
> <j.uzycki@elpromaelectronics.com> wrote:
>> Hi,
>>
>> We've noticed the inconsistency in DT which still exist in kernel v4.10:
>>
>> devm_regulator_get(&spi->dev, "vdd") in drivers/net/can/mcp251x.c
>>
>> vs vdd-supply: Regulator that powers the CAN controller. in
>> bindings/net/can/microchip,mcp251x.txt
> This is correct.
>
> When the regulator is retrieved as devm_regulator_get(dev, "xyz") then
> it searches for a xyz-supply in the dts.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bug in DT docs vs mcp251x.c driver
       [not found]   ` <1487742799.631389473-OruIP1U3PUxsdVUOrk1QfQ@public.gmane.org>
@ 2017-02-22  8:00     ` Janusz Użycki
  0 siblings, 0 replies; 6+ messages in thread
From: Janusz Użycki @ 2017-02-22  8:00 UTC (permalink / raw)
  To: Alexander Shiyan
  Cc: Oliver Hartkopp, linux-can-u79uwXL29TY76Z2rM5mHXA,
	Marc Kleine-Budde, Wolfgang Grandegger,
	devicetree-u79uwXL29TY76Z2rM5mHXA,
	l.dalek elpromaelectronics.com

Hi Alexander.

You are right.
According to the source code printf adds the "-supply" indeed.
I've not verified the code as I got a report for 3.14 that the driver
does not work with vdd-supply in DT, works with vdd property
and the supply was verified electrically.
Now I have to investigate the problem better.

best regards

Janusz


W dniu 2017-02-22 o 06:53, Alexander Shiyan pisze:
>> Вторник, 21 февраля 2017, 21:08 +03:00 от Janusz Użycki <j.uzycki-cjVIcFy54eMe9JSWTWOYM+658FiBabzs@public.gmane.org>:
>> We've noticed the inconsistency in DT which still exist in kernel v4.10:
>>
>> devm_regulator_get(&spi->dev, "vdd") in drivers/net/can/mcp251x.c
>>
>> vs vdd-supply: Regulator that powers the CAN controller. in
>> bindings/net/can/microchip,mcp251x.txt
> I do not see the bug here, could you clarify?
>
> ---

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-02-22  8:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-21 18:08 bug in DT docs vs mcp251x.c driver Janusz Użycki
2017-02-21 18:46 ` Marc Kleine-Budde
     [not found] ` <1d36bb5b-b46a-8e9a-672b-907cac5c5ab4-cjVIcFy54eMe9JSWTWOYM+658FiBabzs@public.gmane.org>
2017-02-21 18:47   ` Fabio Estevam
2017-02-22  7:58     ` Janusz Użycki
2017-02-22  5:53 ` Alexander Shiyan
     [not found]   ` <1487742799.631389473-OruIP1U3PUxsdVUOrk1QfQ@public.gmane.org>
2017-02-22  8:00     ` Janusz Użycki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.