linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fw_devlink on will break all snps,dw-apb-gpio users
@ 2020-10-14 11:12 Jisheng Zhang
  2020-10-14 17:29 ` Saravana Kannan
  0 siblings, 1 reply; 10+ messages in thread
From: Jisheng Zhang @ 2020-10-14 11:12 UTC (permalink / raw)
  To: Saravana Kannan, Greg Kroah-Hartman, Rafael J. Wysocki,
	linux-kernel, Rob Herring, Frank Rowand, devicetree,
	linux-arm-kernel

Hi,

If set fw_devlink as on, any consumers of dw apb gpio won't probe.

The related dts looks like:

gpio0: gpio@2400 {
       compatible = "snps,dw-apb-gpio";
       #address-cells = <1>;
       #size-cells = <0>;

       porta: gpio-port@0 {
              compatible = "snps,dw-apb-gpio-port";
              gpio-controller;
              #gpio-cells = <2>;
              ngpios = <32>;
              reg = <0>;
       };
};

device_foo {
	status = "okay"
	...;
	reset-gpio = <&porta, 0, GPIO_ACTIVE_HIGH>;
};

If I change the reset-gpio property to use another kind of gpio phandle,
e.g gpio expander, then device_foo can be probed successfully.

The gpio expander dt node looks like:

	expander3: gpio@44 {
                compatible = "fcs,fxl6408";
                pinctrl-names = "default";
                pinctrl-0 = <&expander3_pmux>;
                reg = <0x44>;
                gpio-controller;
                #gpio-cells = <2>;
                interrupt-parent = <&portb>;
                interrupts = <23 IRQ_TYPE_NONE>;
                interrupt-controller;
                #interrupt-cells = <2>;
        };

The common pattern looks like the devlink can't cope with suppliers from
child dt node.

Any suggestions?

Thanks in advance,
Jisheng

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

end of thread, other threads:[~2020-10-17  5:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14 11:12 fw_devlink on will break all snps,dw-apb-gpio users Jisheng Zhang
2020-10-14 17:29 ` Saravana Kannan
2020-10-15  4:02   ` Jisheng Zhang
2020-10-15  5:04     ` Saravana Kannan
2020-10-15  8:14       ` Jisheng Zhang
2020-10-15  8:48         ` Saravana Kannan
2020-10-15  9:52           ` Jisheng Zhang
2020-10-15 14:08             ` Robin Murphy
2020-10-16  3:39               ` Jisheng Zhang
2020-10-17  0:44                 ` Saravana Kannan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).