Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Rafael J. Wysocki
On Wed, Feb 20, 2019 at 1:26 PM Måns Rullgård wrote: > > "Rafael J. Wysocki" writes: > > > On Wed, Feb 20, 2019 at 1:12 PM Måns Rullgård wrote: > >> > >> Johan Hovold writes: > >> > >> > On Wed, Feb 20, 2019 at 11:35:06AM +, Mans Rullgard wrote: > >> >> If the provided fwnode is an OF

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Måns Rullgård
"Rafael J. Wysocki" writes: > On Wed, Feb 20, 2019 at 1:12 PM Måns Rullgård wrote: >> >> Johan Hovold writes: >> >> > On Wed, Feb 20, 2019 at 11:35:06AM +, Mans Rullgard wrote: >> >> If the provided fwnode is an OF node, set dev.of_node as well. >> >> >> >> Some drivers are just shims that

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Rafael J. Wysocki
On Wed, Feb 20, 2019 at 1:12 PM Måns Rullgård wrote: > > Johan Hovold writes: > > > On Wed, Feb 20, 2019 at 11:35:06AM +, Mans Rullgard wrote: > >> If the provided fwnode is an OF node, set dev.of_node as well. > >> > >> Some drivers are just shims that create extra "glue" devices with the >

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Måns Rullgård
Johan Hovold writes: > On Wed, Feb 20, 2019 at 11:35:06AM +, Mans Rullgard wrote: >> If the provided fwnode is an OF node, set dev.of_node as well. >> >> Some drivers are just shims that create extra "glue" devices with the >> DT device as parent and have the real driver bind to these. In

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Måns Rullgård
Mans Rullgard writes: > If the provided fwnode is an OF node, set dev.of_node as well. > > Some drivers are just shims that create extra "glue" devices with the > DT device as parent and have the real driver bind to these. In these > cases, the glue device needs to get a reference to the

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Johan Hovold
On Wed, Feb 20, 2019 at 11:35:06AM +, Mans Rullgard wrote: > If the provided fwnode is an OF node, set dev.of_node as well. > > Some drivers are just shims that create extra "glue" devices with the > DT device as parent and have the real driver bind to these. In these > cases, the glue

[PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Mans Rullgard
If the provided fwnode is an OF node, set dev.of_node as well. Some drivers are just shims that create extra "glue" devices with the DT device as parent and have the real driver bind to these. In these cases, the glue device needs to get a reference to the original DT node in order for the main

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Rafael J. Wysocki
On Wed, Feb 20, 2019 at 12:02 PM Måns Rullgård wrote: > > "Rafael J. Wysocki" writes: > > > On Wed, Feb 20, 2019 at 11:41 AM Måns Rullgård wrote: > >> > >> "Rafael J. Wysocki" writes: > >> > >> > On Mon, Feb 18, 2019 at 12:10 PM Måns Rullgård wrote: > >> >> > >> >> "Rafael J. Wysocki"

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Måns Rullgård
"Rafael J. Wysocki" writes: > On Wed, Feb 20, 2019 at 11:41 AM Måns Rullgård wrote: >> >> "Rafael J. Wysocki" writes: >> >> > On Mon, Feb 18, 2019 at 12:10 PM Måns Rullgård wrote: >> >> >> >> "Rafael J. Wysocki" writes: >> >> >> >> > On Sat, Feb 16, 2019 at 5:50 PM Mans Rullgard wrote: >>

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Rafael J. Wysocki
On Wed, Feb 20, 2019 at 11:41 AM Måns Rullgård wrote: > > "Rafael J. Wysocki" writes: > > > On Mon, Feb 18, 2019 at 12:10 PM Måns Rullgård wrote: > >> > >> "Rafael J. Wysocki" writes: > >> > >> > On Sat, Feb 16, 2019 at 5:50 PM Mans Rullgard wrote: > >> >> > >> >> If the provided fwnode is an

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Måns Rullgård
"Rafael J. Wysocki" writes: > On Mon, Feb 18, 2019 at 12:10 PM Måns Rullgård wrote: >> >> "Rafael J. Wysocki" writes: >> >> > On Sat, Feb 16, 2019 at 5:50 PM Mans Rullgard wrote: >> >> >> >> If the provided fwnode is an OF node, set dev.of_node as well. >> >> >> >> Signed-off-by: Mans

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-20 Thread Rafael J. Wysocki
On Mon, Feb 18, 2019 at 12:10 PM Måns Rullgård wrote: > > "Rafael J. Wysocki" writes: > > > On Sat, Feb 16, 2019 at 5:50 PM Mans Rullgard wrote: > >> > >> If the provided fwnode is an OF node, set dev.of_node as well. > >> > >> Signed-off-by: Mans Rullgard > >> --- > >>

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-18 Thread Måns Rullgård
"Rafael J. Wysocki" writes: > On Sat, Feb 16, 2019 at 5:50 PM Mans Rullgard wrote: >> >> If the provided fwnode is an OF node, set dev.of_node as well. >> >> Signed-off-by: Mans Rullgard >> --- >> drivers/base/platform.c | 1 + >> 1 file changed, 1 insertion(+) >> >> diff --git

Re: [PATCH] platform: set of_node in platform_device_register_full()

2019-02-17 Thread Rafael J. Wysocki
On Sat, Feb 16, 2019 at 5:50 PM Mans Rullgard wrote: > > If the provided fwnode is an OF node, set dev.of_node as well. > > Signed-off-by: Mans Rullgard > --- > drivers/base/platform.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/base/platform.c b/drivers/base/platform.c >

[PATCH] platform: set of_node in platform_device_register_full()

2019-02-16 Thread Mans Rullgard
If the provided fwnode is an OF node, set dev.of_node as well. Signed-off-by: Mans Rullgard --- drivers/base/platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/base/platform.c b/drivers/base/platform.c index dff82a3c2caa..853a1d0e5845 100644 --- a/drivers/base/platform.c +++