* [PATCH v1 0/10] Fixes and API additions for firmware nodes
@ 2015-06-30 14:54 Tomeu Vizoso
[not found] ` <1435676108-20590-1-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-06-30 15:32 ` [PATCH v1 0/10] Fixes and API additions for " Rafael J. Wysocki
0 siblings, 2 replies; 6+ messages in thread
From: Tomeu Vizoso @ 2015-06-30 14:54 UTC (permalink / raw)
To: linux-kernel
Cc: Rafael J. Wysocki, Mark Brown, Tomeu Vizoso, devicetree,
Len Brown, linux-acpi, Robert Moore, Lee Jones, Wolfram Sang,
Lv Zheng, Rafael J. Wysocki, Rob Herring, linux-i2c, Samuel Ortiz,
Greg Kroah-Hartman, Grant Likely, devel
Hi,
this series makes it possible to extract device dependencies from firmware data
with fwnode, thus not depending on the particular format of that data.
The first patches are about making sure that we can reach the fwnode
handle of the firmware data associated with a given device, and the rest
add API that makes dependency extraction possible.
Thanks,
Tomeu
Tomeu Vizoso (10):
of/platform: Set fwnode field for new devices
i2c: core: Have clients point to their firmware nodes
mfd: Have child devices point to their firmware nodes
device property: add fwnode_get_parent()
device property: add fwnode_get_name()
ACPI / scan: Add acpi_dev_get_next_child()
device property: Add fwnode_get_next_child_node()
device property: add fwnode_is_compatible()
device: property: add fwnode_driver_match_device()
core: platform: use fwnode_driver_match_device()
drivers/acpi/scan.c | 5 +--
drivers/base/platform.c | 8 +---
drivers/base/property.c | 95 ++++++++++++++++++++++++++++++++++++++++++++----
drivers/i2c/i2c-core.c | 1 +
drivers/mfd/mfd-core.c | 1 +
drivers/of/platform.c | 1 +
include/acpi/acpi_bus.h | 5 +++
include/linux/acpi.h | 22 ++++++++++-
include/linux/property.h | 17 +++++++++
9 files changed, 136 insertions(+), 19 deletions(-)
--
2.4.1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v1 02/10] i2c: core: Have clients point to their firmware nodes
[not found] ` <1435676108-20590-1-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
@ 2015-06-30 14:55 ` Tomeu Vizoso
[not found] ` <1435676108-20590-3-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Tomeu Vizoso @ 2015-06-30 14:55 UTC (permalink / raw)
To: linux-kernel-u79uwXL29TY76Z2rM5mHXA
Cc: Rafael J. Wysocki, Mark Brown, Tomeu Vizoso, Wolfram Sang,
linux-i2c-u79uwXL29TY76Z2rM5mHXA
This is needed by platform-independent code that needs to do something
with devices based on the data provided by the firmware.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
---
drivers/i2c/i2c-core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 069a41f..707850a 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -1295,6 +1295,7 @@ static struct i2c_client *of_i2c_register_device(struct i2c_adapter *adap,
}
info.of_node = of_node_get(node);
+ info.fwnode = info.of_node ? &info.of_node->fwnode : NULL;
info.archdata = &dev_ad;
if (of_get_property(node, "wakeup-source", NULL))
--
2.4.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v1 0/10] Fixes and API additions for firmware nodes
2015-06-30 14:54 [PATCH v1 0/10] Fixes and API additions for firmware nodes Tomeu Vizoso
[not found] ` <1435676108-20590-1-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
@ 2015-06-30 15:32 ` Rafael J. Wysocki
1 sibling, 0 replies; 6+ messages in thread
From: Rafael J. Wysocki @ 2015-06-30 15:32 UTC (permalink / raw)
To: Tomeu Vizoso
Cc: linux-kernel, Mark Brown, devicetree, Len Brown, linux-acpi,
Robert Moore, Lee Jones, Wolfram Sang, Lv Zheng,
Rafael J. Wysocki, Rob Herring, linux-i2c, Samuel Ortiz,
Greg Kroah-Hartman, Grant Likely, devel
On Tuesday, June 30, 2015 04:54:58 PM Tomeu Vizoso wrote:
> Hi,
>
> this series makes it possible to extract device dependencies from firmware data
> with fwnode, thus not depending on the particular format of that data.
>
> The first patches are about making sure that we can reach the fwnode
> handle of the firmware data associated with a given device, and the rest
> add API that makes dependency extraction possible.
It would really help if you sent the whole series to linux-acpi. People on
that list would see the entire context then.
Thanks,
Rafael
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 02/10] i2c: core: Have clients point to their firmware nodes
[not found] ` <1435676108-20590-3-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
@ 2015-07-31 10:36 ` Wolfram Sang
2015-08-06 14:17 ` Tomeu Vizoso
0 siblings, 1 reply; 6+ messages in thread
From: Wolfram Sang @ 2015-07-31 10:36 UTC (permalink / raw)
To: Tomeu Vizoso
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA, Rafael J. Wysocki,
Mark Brown, linux-i2c-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 470 bytes --]
On Tue, Jun 30, 2015 at 04:55:00PM +0200, Tomeu Vizoso wrote:
> This is needed by platform-independent code that needs to do something
> with devices based on the data provided by the firmware.
>
> Signed-off-by: Tomeu Vizoso <tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
Dunno the status of this series, but the i2c change is trivial enough.
So in case, the rest is accepted:
Acked-by: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 02/10] i2c: core: Have clients point to their firmware nodes
2015-07-31 10:36 ` Wolfram Sang
@ 2015-08-06 14:17 ` Tomeu Vizoso
[not found] ` <CAAObsKD557c5ssAYUqa=azCs05=o5CA++-sFOBx=063Zwev2dQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Tomeu Vizoso @ 2015-08-06 14:17 UTC (permalink / raw)
To: Wolfram Sang
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Rafael J. Wysocki, Mark Brown, linux-i2c-u79uwXL29TY76Z2rM5mHXA
On 31 July 2015 at 12:36, Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> wrote:
> On Tue, Jun 30, 2015 at 04:55:00PM +0200, Tomeu Vizoso wrote:
>> This is needed by platform-independent code that needs to do something
>> with devices based on the data provided by the firmware.
>>
>> Signed-off-by: Tomeu Vizoso <tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
>
> Dunno the status of this series, but the i2c change is trivial enough.
> So in case, the rest is accepted:
>
> Acked-by: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
Currently my series is moving away from fwnode because the current
approach is very much dependent on the firmware, but I think this fix
is worth in its own because someone else will find this problem sooner
or later.
Regards,
Tomeu
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 02/10] i2c: core: Have clients point to their firmware nodes
[not found] ` <CAAObsKD557c5ssAYUqa=azCs05=o5CA++-sFOBx=063Zwev2dQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2015-08-06 21:06 ` Wolfram Sang
0 siblings, 0 replies; 6+ messages in thread
From: Wolfram Sang @ 2015-08-06 21:06 UTC (permalink / raw)
To: Tomeu Vizoso
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Rafael J. Wysocki, Mark Brown, linux-i2c-u79uwXL29TY76Z2rM5mHXA
[-- Attachment #1: Type: text/plain, Size: 1016 bytes --]
On Thu, Aug 06, 2015 at 04:17:28PM +0200, Tomeu Vizoso wrote:
> On 31 July 2015 at 12:36, Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> wrote:
> > On Tue, Jun 30, 2015 at 04:55:00PM +0200, Tomeu Vizoso wrote:
> >> This is needed by platform-independent code that needs to do something
> >> with devices based on the data provided by the firmware.
> >>
> >> Signed-off-by: Tomeu Vizoso <tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
> >
> > Dunno the status of this series, but the i2c change is trivial enough.
> > So in case, the rest is accepted:
> >
> > Acked-by: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
>
> Currently my series is moving away from fwnode because the current
> approach is very much dependent on the firmware, but I think this fix
> is worth in its own because someone else will find this problem sooner
> or later.
If you think it is a bugfix, then please resend this individually. If
not, we will just wait until someone needs it.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-08-06 21:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30 14:54 [PATCH v1 0/10] Fixes and API additions for firmware nodes Tomeu Vizoso
[not found] ` <1435676108-20590-1-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-06-30 14:55 ` [PATCH v1 02/10] i2c: core: Have clients point to their " Tomeu Vizoso
[not found] ` <1435676108-20590-3-git-send-email-tomeu.vizoso-ZGY8ohtN/8qB+jHODAdFcQ@public.gmane.org>
2015-07-31 10:36 ` Wolfram Sang
2015-08-06 14:17 ` Tomeu Vizoso
[not found] ` <CAAObsKD557c5ssAYUqa=azCs05=o5CA++-sFOBx=063Zwev2dQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-06 21:06 ` Wolfram Sang
2015-06-30 15:32 ` [PATCH v1 0/10] Fixes and API additions for " Rafael J. Wysocki
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).