* [PATCH RFC 0/2] Extend device_get_match_data() to struct bus_type
@ 2023-07-23 8:37 Biju Das
2023-07-23 8:37 ` [PATCH RFC 1/2] drivers: fwnode: " Biju Das
0 siblings, 1 reply; 14+ messages in thread
From: Biju Das @ 2023-07-23 8:37 UTC (permalink / raw)
To: Andy Shevchenko, Daniel Scally, Heikki Krogerus, Sakari Ailus,
Greg Kroah-Hartman, Rafael J. Wysocki
Cc: Biju Das, linux-acpi, linux-i2c, Wolfram Sang, Dmitry Torokhov,
Geert Uytterhoeven, linux-renesas-soc
This patch series extend device_get_match_data() to struct bus_type,
so that buses like I2C can get matched data.
Biju Das (2):
drivers: fwnode: Extend device_get_match_data() to struct bus_type
i2c: Add i2c_device_get_match_data() callback
drivers/base/property.c | 8 +++++++-
drivers/i2c/i2c-core-base.c | 38 +++++++++++++++++++++++++++++--------
include/linux/device/bus.h | 3 +++
3 files changed, 40 insertions(+), 9 deletions(-)
--
2.25.1
^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH RFC 1/2] drivers: fwnode: Extend device_get_match_data() to struct bus_type
2023-07-23 8:37 [PATCH RFC 0/2] Extend device_get_match_data() to struct bus_type Biju Das
@ 2023-07-23 8:37 ` Biju Das
2023-07-24 11:06 ` Andy Shevchenko
0 siblings, 1 reply; 14+ messages in thread
From: Biju Das @ 2023-07-23 8:37 UTC (permalink / raw)
To: Andy Shevchenko, Daniel Scally, Heikki Krogerus, Sakari Ailus,
Greg Kroah-Hartman, Rafael J. Wysocki
Cc: Biju Das, linux-acpi, linux-i2c, Wolfram Sang, Dmitry Torokhov,
Geert Uytterhoeven, linux-renesas-soc
Extend device_get_match_data() to buses (for eg: I2C) by adding a
callback device_get_match_data() to struct bus_type() and call this method
as a fallback for generic fwnode based device_get_match_data().
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
---
drivers/base/property.c | 8 +++++++-
include/linux/device/bus.h | 3 +++
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/base/property.c b/drivers/base/property.c
index 8c40abed7852..cc0bf7bb6f3a 100644
--- a/drivers/base/property.c
+++ b/drivers/base/property.c
@@ -1277,7 +1277,13 @@ EXPORT_SYMBOL(fwnode_graph_parse_endpoint);
const void *device_get_match_data(const struct device *dev)
{
- return fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data, dev);
+ const void *data;
+
+ data = fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data, dev);
+ if (!data && dev->bus && dev->bus->get_match_data)
+ data = dev->bus->get_match_data(dev);
+
+ return data;
}
EXPORT_SYMBOL_GPL(device_get_match_data);
diff --git a/include/linux/device/bus.h b/include/linux/device/bus.h
index ae10c4322754..2e15b0ae5384 100644
--- a/include/linux/device/bus.h
+++ b/include/linux/device/bus.h
@@ -60,6 +60,7 @@ struct fwnode_handle;
* this bus.
* @dma_cleanup: Called to cleanup DMA configuration on a device on
* this bus.
+ * @get_match_data: Called to get match data on a device on this bus.
* @pm: Power management operations of this bus, callback the specific
* device driver's pm-ops.
* @iommu_ops: IOMMU specific operations for this bus, used to attach IOMMU
@@ -102,6 +103,8 @@ struct bus_type {
int (*dma_configure)(struct device *dev);
void (*dma_cleanup)(struct device *dev);
+ const void *(*get_match_data)(const struct device *dev);
+
const struct dev_pm_ops *pm;
const struct iommu_ops *iommu_ops;
--
2.25.1
^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH RFC 1/2] drivers: fwnode: Extend device_get_match_data() to struct bus_type
2023-07-23 8:37 ` [PATCH RFC 1/2] drivers: fwnode: " Biju Das
@ 2023-07-24 11:06 ` Andy Shevchenko
2023-07-24 11:07 ` Andy Shevchenko
2023-07-24 12:02 ` Biju Das
0 siblings, 2 replies; 14+ messages in thread
From: Andy Shevchenko @ 2023-07-24 11:06 UTC (permalink / raw)
To: Biju Das
Cc: Daniel Scally, Heikki Krogerus, Sakari Ailus, Greg Kroah-Hartman,
Rafael J. Wysocki, linux-acpi, linux-i2c, Wolfram Sang,
Dmitry Torokhov, Geert Uytterhoeven, linux-renesas-soc
On Sun, Jul 23, 2023 at 09:37:20AM +0100, Biju Das wrote:
Thank you for your contribution!
My comments below.
> Extend device_get_match_data() to buses (for eg: I2C) by adding a
> callback device_get_match_data() to struct bus_type() and call this method
> as a fallback for generic fwnode based device_get_match_data().
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
You can't just throw one's SoB tag without clear understanding what's going on
here (either wrong authorship or missing Co-developed-by or...?).
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
...
> const void *device_get_match_data(const struct device *dev)
> {
> - return fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data, dev);
> + const void *data;
> +
> + data = fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data, dev);
> + if (!data && dev->bus && dev->bus->get_match_data)
> + data = dev->bus->get_match_data(dev);
> +
> + return data;
Much better looking is
data = fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data, dev);
if (data)
return data;
if (dev->bus && dev->bus->get_match_data)
return dev->bus->get_match_data(dev);
return NULL;
> }
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH RFC 1/2] drivers: fwnode: Extend device_get_match_data() to struct bus_type
2023-07-24 11:06 ` Andy Shevchenko
@ 2023-07-24 11:07 ` Andy Shevchenko
2023-07-24 11:46 ` Biju Das
2023-07-24 12:02 ` Biju Das
1 sibling, 1 reply; 14+ messages in thread
From: Andy Shevchenko @ 2023-07-24 11:07 UTC (permalink / raw)
To: Biju Das
Cc: Daniel Scally, Heikki Krogerus, Sakari Ailus, Greg Kroah-Hartman,
Rafael J. Wysocki, linux-acpi, linux-i2c, Wolfram Sang,
Dmitry Torokhov, Geert Uytterhoeven, linux-renesas-soc
On Mon, Jul 24, 2023 at 02:06:07PM +0300, Andy Shevchenko wrote:
> On Sun, Jul 23, 2023 at 09:37:20AM +0100, Biju Das wrote:
>
> Thank you for your contribution!
> My comments below.
>
> > Extend device_get_match_data() to buses (for eg: I2C) by adding a
> > callback device_get_match_data() to struct bus_type() and call this method
> > as a fallback for generic fwnode based device_get_match_data().
>
> > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
>
> You can't just throw one's SoB tag without clear understanding what's going on
> here (either wrong authorship or missing Co-developed-by or...?).
>
> > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
...
> > const void *device_get_match_data(const struct device *dev)
Btw, this needs a documentation update to explain how it works now.
> > {
> > - return fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data, dev);
> > + const void *data;
> > +
> > + data = fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data, dev);
> > + if (!data && dev->bus && dev->bus->get_match_data)
> > + data = dev->bus->get_match_data(dev);
> > +
> > + return data;
>
> Much better looking is
>
> data = fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data, dev);
> if (data)
> return data;
>
> if (dev->bus && dev->bus->get_match_data)
> return dev->bus->get_match_data(dev);
>
> return NULL;
>
> > }
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH RFC 1/2] drivers: fwnode: Extend device_get_match_data() to struct bus_type
2023-07-24 11:07 ` Andy Shevchenko
@ 2023-07-24 11:46 ` Biju Das
2023-07-24 12:57 ` Andy Shevchenko
0 siblings, 1 reply; 14+ messages in thread
From: Biju Das @ 2023-07-24 11:46 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Daniel Scally, Heikki Krogerus, Sakari Ailus, Greg Kroah-Hartman,
Rafael J. Wysocki, linux-acpi@vger.kernel.org,
linux-i2c@vger.kernel.org, Wolfram Sang, Dmitry Torokhov,
Geert Uytterhoeven, linux-renesas-soc@vger.kernel.org
Hi Andy,
Thanks for the feedback.
> Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> device_get_match_data() to struct bus_type
>
> On Mon, Jul 24, 2023 at 02:06:07PM +0300, Andy Shevchenko wrote:
> > On Sun, Jul 23, 2023 at 09:37:20AM +0100, Biju Das wrote:
> >
> > Thank you for your contribution!
> > My comments below.
> >
> > > Extend device_get_match_data() to buses (for eg: I2C) by adding a
> > > callback device_get_match_data() to struct bus_type() and call this
> > > method as a fallback for generic fwnode based
> device_get_match_data().
> >
> > > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> >
> > You can't just throw one's SoB tag without clear understanding what's
> > going on here (either wrong authorship or missing Co-developed-by
> or...?).
> >
> > > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
>
> ...
>
> > > const void *device_get_match_data(const struct device *dev)
>
> Btw, this needs a documentation update to explain how it works now.
Can you please point me to the location where I need to update?
Cheers,
Biju
>
> > > {
> > > - return fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data,
> dev);
> > > + const void *data;
> > > +
> > > + data = fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data,
> dev);
> > > + if (!data && dev->bus && dev->bus->get_match_data)
> > > + data = dev->bus->get_match_data(dev);
> > > +
> > > + return data;
> >
> > Much better looking is
> >
> > data = fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data,
> dev);
> > if (data)
> > return data;
> >
> > if (dev->bus && dev->bus->get_match_data)
> > return dev->bus->get_match_data(dev);
> >
> > return NULL;
> >
> > > }
>
> --
> With Best Regards,
> Andy Shevchenko
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH RFC 1/2] drivers: fwnode: Extend device_get_match_data() to struct bus_type
2023-07-24 11:06 ` Andy Shevchenko
2023-07-24 11:07 ` Andy Shevchenko
@ 2023-07-24 12:02 ` Biju Das
2023-07-24 13:00 ` Andy Shevchenko
1 sibling, 1 reply; 14+ messages in thread
From: Biju Das @ 2023-07-24 12:02 UTC (permalink / raw)
To: Andy Shevchenko, Dmitry Torokhov
Cc: Daniel Scally, Heikki Krogerus, Sakari Ailus, Greg Kroah-Hartman,
Rafael J. Wysocki, linux-acpi@vger.kernel.org,
linux-i2c@vger.kernel.org, Wolfram Sang, Dmitry Torokhov,
Geert Uytterhoeven, linux-renesas-soc@vger.kernel.org
Hi Andy Shevchenko,
Thanks for the feedback.
> Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> device_get_match_data() to struct bus_type
>
> On Sun, Jul 23, 2023 at 09:37:20AM +0100, Biju Das wrote:
>
> Thank you for your contribution!
> My comments below.
>
> > Extend device_get_match_data() to buses (for eg: I2C) by adding a
> > callback device_get_match_data() to struct bus_type() and call this
> > method as a fallback for generic fwnode based device_get_match_data().
>
> > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
>
> You can't just throw one's SoB tag without clear understanding what's
> going on here (either wrong authorship or missing Co-developed-by
> or...?).
Dmitry feels instead of having separate bus based match_data() like i2c_get_match_data[2] and spi_get_device_match_data[3], it is
better to have a generic approach like a single API device_get_match_data()
for getting match_data for OF/ACPI/I2C/SPI tables.
So, he came with a proposal and shared some code here[1].
Since,I have send this patch, I put my signed -off.
If this patch is accepted, then we can get rid of bus based match_data.
[1] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20230717131756.240645-2-biju.das.jz@bp.renesas.com/#25436207
[2] https://elixir.bootlin.com/linux/v6.5-rc3/source/drivers/i2c/i2c-core-base.c#L117
[3] https://elixir.bootlin.com/linux/v6.5-rc3/source/drivers/spi/spi.c#L364
Cheers,
Biju
>
> > Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
>
> ...
>
> > const void *device_get_match_data(const struct device *dev) {
> > - return fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data,
> dev);
> > + const void *data;
> > +
> > + data = fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data,
> dev);
> > + if (!data && dev->bus && dev->bus->get_match_data)
> > + data = dev->bus->get_match_data(dev);
> > +
> > + return data;
>
> Much better looking is
>
> data = fwnode_call_ptr_op(dev_fwnode(dev), device_get_match_data,
> dev);
> if (data)
> return data;
OK.
Cheers,
Biju
>
> if (dev->bus && dev->bus->get_match_data)
> return dev->bus->get_match_data(dev);
>
> return NULL;
>
> > }
>
> --
> With Best Regards,
> Andy Shevchenko
>
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH RFC 1/2] drivers: fwnode: Extend device_get_match_data() to struct bus_type
2023-07-24 11:46 ` Biju Das
@ 2023-07-24 12:57 ` Andy Shevchenko
2023-07-24 13:35 ` Biju Das
0 siblings, 1 reply; 14+ messages in thread
From: Andy Shevchenko @ 2023-07-24 12:57 UTC (permalink / raw)
To: Biju Das
Cc: Daniel Scally, Heikki Krogerus, Sakari Ailus, Greg Kroah-Hartman,
Rafael J. Wysocki, linux-acpi@vger.kernel.org,
linux-i2c@vger.kernel.org, Wolfram Sang, Dmitry Torokhov,
Geert Uytterhoeven, linux-renesas-soc@vger.kernel.org
On Mon, Jul 24, 2023 at 11:46:44AM +0000, Biju Das wrote:
> > Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> > device_get_match_data() to struct bus_type
> > On Mon, Jul 24, 2023 at 02:06:07PM +0300, Andy Shevchenko wrote:
> > > On Sun, Jul 23, 2023 at 09:37:20AM +0100, Biju Das wrote:
...
> > > > const void *device_get_match_data(const struct device *dev)
(1)
> > Btw, this needs a documentation update to explain how it works now.
>
> Can you please point me to the location where I need to update?
Sure. It's just on top of the (1). It looks like no documentation
yet existed, so you need to create one.
Not sure if fwnode.h has to be updated. At least it doesn't contradict
with the added code, while not describing all details.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH RFC 1/2] drivers: fwnode: Extend device_get_match_data() to struct bus_type
2023-07-24 12:02 ` Biju Das
@ 2023-07-24 13:00 ` Andy Shevchenko
2023-07-24 13:19 ` Biju Das
0 siblings, 1 reply; 14+ messages in thread
From: Andy Shevchenko @ 2023-07-24 13:00 UTC (permalink / raw)
To: Biju Das
Cc: Dmitry Torokhov, Daniel Scally, Heikki Krogerus, Sakari Ailus,
Greg Kroah-Hartman, Rafael J. Wysocki, linux-acpi@vger.kernel.org,
linux-i2c@vger.kernel.org, Wolfram Sang, Geert Uytterhoeven,
linux-renesas-soc@vger.kernel.org
On Mon, Jul 24, 2023 at 12:02:27PM +0000, Biju Das wrote:
> > Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> > device_get_match_data() to struct bus_type
> > On Sun, Jul 23, 2023 at 09:37:20AM +0100, Biju Das wrote:
...
> > > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> >
> > You can't just throw one's SoB tag without clear understanding what's
> > going on here (either wrong authorship or missing Co-developed-by
> > or...?).
>
> Dmitry feels instead of having separate bus based match_data() like
> i2c_get_match_data[2] and spi_get_device_match_data[3], it is better to have
> a generic approach like a single API device_get_match_data() for getting
> match_data for OF/ACPI/I2C/SPI tables.
>
> So, he came with a proposal and shared some code here[1].
Yes, I'm pretty much following the discussion.
> Since,I have send this patch, I put my signed -off.
I'm not talking about this. There is no evidence that Dmitry gives you
any approval to use or clear SoB tag. Again, you may not do like this.
> If this patch is accepted, then we can get rid of bus based match_data.
This is unrelated to what I talking about.
> [1] https://patchwork.kernel.org/project/linux-renesas-soc/patch/20230717131756.240645-2-biju.das.jz@bp.renesas.com/#25436207
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH RFC 1/2] drivers: fwnode: Extend device_get_match_data() to struct bus_type
2023-07-24 13:00 ` Andy Shevchenko
@ 2023-07-24 13:19 ` Biju Das
2023-07-24 13:50 ` Andy Shevchenko
0 siblings, 1 reply; 14+ messages in thread
From: Biju Das @ 2023-07-24 13:19 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Dmitry Torokhov, Daniel Scally, Heikki Krogerus, Sakari Ailus,
Greg Kroah-Hartman, Rafael J. Wysocki, linux-acpi@vger.kernel.org,
linux-i2c@vger.kernel.org, Wolfram Sang, Geert Uytterhoeven,
linux-renesas-soc@vger.kernel.org
Hi Andy,
Thanks for the feedback.
> Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> device_get_match_data() to struct bus_type
>
> On Mon, Jul 24, 2023 at 12:02:27PM +0000, Biju Das wrote:
> > > Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> > > device_get_match_data() to struct bus_type On Sun, Jul 23, 2023 at
> > > 09:37:20AM +0100, Biju Das wrote:
>
> ...
>
> > > > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> > >
> > > You can't just throw one's SoB tag without clear understanding
> > > what's going on here (either wrong authorship or missing
> > > Co-developed-by or...?).
> >
> > Dmitry feels instead of having separate bus based match_data() like
> > i2c_get_match_data[2] and spi_get_device_match_data[3], it is better
> > to have a generic approach like a single API device_get_match_data()
> > for getting match_data for OF/ACPI/I2C/SPI tables.
> >
> > So, he came with a proposal and shared some code here[1].
>
> Yes, I'm pretty much following the discussion.
>
> > Since,I have send this patch, I put my signed -off.
>
> I'm not talking about this. There is no evidence that Dmitry gives you
> any approval to use or clear SoB tag. Again, you may not do like this.
Here Dmitry is acknowledging, he is ok with the patch I posted.
https://patchwork.kernel.org/project/linux-renesas-soc/patch/20230717131756.240645-2-biju.das.jz@bp.renesas.com/#25437032
Cheers,
Biju
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH RFC 1/2] drivers: fwnode: Extend device_get_match_data() to struct bus_type
2023-07-24 12:57 ` Andy Shevchenko
@ 2023-07-24 13:35 ` Biju Das
0 siblings, 0 replies; 14+ messages in thread
From: Biju Das @ 2023-07-24 13:35 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Daniel Scally, Heikki Krogerus, Sakari Ailus, Greg Kroah-Hartman,
Rafael J. Wysocki, linux-acpi@vger.kernel.org,
linux-i2c@vger.kernel.org, Wolfram Sang, Dmitry Torokhov,
Geert Uytterhoeven, linux-renesas-soc@vger.kernel.org
Hi Andy Shevchenko,
Thanks for the feedback.
> Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> device_get_match_data() to struct bus_type
>
> On Mon, Jul 24, 2023 at 11:46:44AM +0000, Biju Das wrote:
> > > Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> > > device_get_match_data() to struct bus_type On Mon, Jul 24, 2023 at
> > > 02:06:07PM +0300, Andy Shevchenko wrote:
> > > > On Sun, Jul 23, 2023 at 09:37:20AM +0100, Biju Das wrote:
>
> ...
>
> > > > > const void *device_get_match_data(const struct device *dev)
>
> (1)
>
> > > Btw, this needs a documentation update to explain how it works now.
> >
> > Can you please point me to the location where I need to update?
>
> Sure. It's just on top of the (1). It looks like no documentation yet
> existed, so you need to create one.
>
> Not sure if fwnode.h has to be updated. At least it doesn't contradict
> with the added code, while not describing all details.
OK, will do.
Cheers,
Biju
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH RFC 1/2] drivers: fwnode: Extend device_get_match_data() to struct bus_type
2023-07-24 13:19 ` Biju Das
@ 2023-07-24 13:50 ` Andy Shevchenko
2023-07-24 13:58 ` Biju Das
0 siblings, 1 reply; 14+ messages in thread
From: Andy Shevchenko @ 2023-07-24 13:50 UTC (permalink / raw)
To: Biju Das
Cc: Dmitry Torokhov, Daniel Scally, Heikki Krogerus, Sakari Ailus,
Greg Kroah-Hartman, Rafael J. Wysocki, linux-acpi@vger.kernel.org,
linux-i2c@vger.kernel.org, Wolfram Sang, Geert Uytterhoeven,
linux-renesas-soc@vger.kernel.org
On Mon, Jul 24, 2023 at 01:19:02PM +0000, Biju Das wrote:
> > Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> > device_get_match_data() to struct bus_type
> > On Mon, Jul 24, 2023 at 12:02:27PM +0000, Biju Das wrote:
> > > > Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> > > > device_get_match_data() to struct bus_type On Sun, Jul 23, 2023 at
> > > > 09:37:20AM +0100, Biju Das wrote:
...
> > > > > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> > > >
> > > > You can't just throw one's SoB tag without clear understanding
> > > > what's going on here (either wrong authorship or missing
> > > > Co-developed-by or...?).
> > >
> > > Dmitry feels instead of having separate bus based match_data() like
> > > i2c_get_match_data[2] and spi_get_device_match_data[3], it is better
> > > to have a generic approach like a single API device_get_match_data()
> > > for getting match_data for OF/ACPI/I2C/SPI tables.
> > >
> > > So, he came with a proposal and shared some code here[1].
> >
> > Yes, I'm pretty much following the discussion.
> >
> > > Since,I have send this patch, I put my signed -off.
> >
> > I'm not talking about this. There is no evidence that Dmitry gives you
> > any approval to use or clear SoB tag. Again, you may not do like this.
>
> Here Dmitry is acknowledging, he is ok with the patch I posted.
>
> https://patchwork.kernel.org/project/linux-renesas-soc/patch/20230717131756.240645-2-biju.das.jz@bp.renesas.com/#25437032
No, you just misinterpreted his message.
See https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin
for the explanation. The SoB has to be explicitly given. Dmitry had _not_
put it like this.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH RFC 1/2] drivers: fwnode: Extend device_get_match_data() to struct bus_type
2023-07-24 13:50 ` Andy Shevchenko
@ 2023-07-24 13:58 ` Biju Das
2023-07-24 16:38 ` Dmitry Torokhov
0 siblings, 1 reply; 14+ messages in thread
From: Biju Das @ 2023-07-24 13:58 UTC (permalink / raw)
To: Andy Shevchenko, Dmitry Torokhov
Cc: Dmitry Torokhov, Daniel Scally, Heikki Krogerus, Sakari Ailus,
Greg Kroah-Hartman, Rafael J. Wysocki, linux-acpi@vger.kernel.org,
linux-i2c@vger.kernel.org, Wolfram Sang, Geert Uytterhoeven,
linux-renesas-soc@vger.kernel.org
Hi Andy,
Thanks for the feedback.
> Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> device_get_match_data() to struct bus_type
>
> On Mon, Jul 24, 2023 at 01:19:02PM +0000, Biju Das wrote:
> > > Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> > > device_get_match_data() to struct bus_type On Mon, Jul 24, 2023 at
> > > 12:02:27PM +0000, Biju Das wrote:
> > > > > Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> > > > > device_get_match_data() to struct bus_type On Sun, Jul 23, 2023
> > > > > at 09:37:20AM +0100, Biju Das wrote:
>
> ...
>
> > > > > > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> > > > >
> > > > > You can't just throw one's SoB tag without clear understanding
> > > > > what's going on here (either wrong authorship or missing
> > > > > Co-developed-by or...?).
> > > >
> > > > Dmitry feels instead of having separate bus based match_data()
> > > > like i2c_get_match_data[2] and spi_get_device_match_data[3], it is
> > > > better to have a generic approach like a single API
> > > > device_get_match_data() for getting match_data for OF/ACPI/I2C/SPI
> tables.
> > > >
> > > > So, he came with a proposal and shared some code here[1].
> > >
> > > Yes, I'm pretty much following the discussion.
> > >
> > > > Since,I have send this patch, I put my signed -off.
> > >
> > > I'm not talking about this. There is no evidence that Dmitry gives
> > > you any approval to use or clear SoB tag. Again, you may not do like
> this.
> >
> > Here Dmitry is acknowledging, he is ok with the patch I posted.
> >
>
> No, you just misinterpreted his message.
>
Dmitry,
As you are the author of code, either you post a patch or provide your SoB as per the guideline mentioned here to avoid confusion.
https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin
Cheers,
Biju
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [PATCH RFC 1/2] drivers: fwnode: Extend device_get_match_data() to struct bus_type
2023-07-24 13:58 ` Biju Das
@ 2023-07-24 16:38 ` Dmitry Torokhov
2023-07-26 5:33 ` Biju Das
0 siblings, 1 reply; 14+ messages in thread
From: Dmitry Torokhov @ 2023-07-24 16:38 UTC (permalink / raw)
To: Biju Das
Cc: Andy Shevchenko, Daniel Scally, Heikki Krogerus, Sakari Ailus,
Greg Kroah-Hartman, Rafael J. Wysocki, linux-acpi@vger.kernel.org,
linux-i2c@vger.kernel.org, Wolfram Sang, Geert Uytterhoeven,
linux-renesas-soc@vger.kernel.org
On Mon, Jul 24, 2023 at 01:58:55PM +0000, Biju Das wrote:
> Hi Andy,
>
> Thanks for the feedback.
>
> > Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> > device_get_match_data() to struct bus_type
> >
> > On Mon, Jul 24, 2023 at 01:19:02PM +0000, Biju Das wrote:
> > > > Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> > > > device_get_match_data() to struct bus_type On Mon, Jul 24, 2023 at
> > > > 12:02:27PM +0000, Biju Das wrote:
> > > > > > Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> > > > > > device_get_match_data() to struct bus_type On Sun, Jul 23, 2023
> > > > > > at 09:37:20AM +0100, Biju Das wrote:
> >
> > ...
> >
> > > > > > > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> > > > > >
> > > > > > You can't just throw one's SoB tag without clear understanding
> > > > > > what's going on here (either wrong authorship or missing
> > > > > > Co-developed-by or...?).
> > > > >
> > > > > Dmitry feels instead of having separate bus based match_data()
> > > > > like i2c_get_match_data[2] and spi_get_device_match_data[3], it is
> > > > > better to have a generic approach like a single API
> > > > > device_get_match_data() for getting match_data for OF/ACPI/I2C/SPI
> > tables.
> > > > >
> > > > > So, he came with a proposal and shared some code here[1].
> > > >
> > > > Yes, I'm pretty much following the discussion.
> > > >
> > > > > Since,I have send this patch, I put my signed -off.
> > > >
> > > > I'm not talking about this. There is no evidence that Dmitry gives
> > > > you any approval to use or clear SoB tag. Again, you may not do like
> > this.
> > >
> > > Here Dmitry is acknowledging, he is ok with the patch I posted.
> > >
> >
> > No, you just misinterpreted his message.
> >
>
> Dmitry,
>
> As you are the author of code, either you post a patch or provide your SoB as per the guideline mentioned here to avoid confusion.
>
> https://www.kernel.org/doc/html/latest/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin
It was not really proper patch, consider it as an email with parts
written in unified diff, as sometimes it is easier than to explain in
words, and I do not want to take much credit for it.
If you wish you can put "Suggested-by" for me, or just drop my name off
the patch description altogether.
Thanks.
--
Dmitry
^ permalink raw reply [flat|nested] 14+ messages in thread
* RE: [PATCH RFC 1/2] drivers: fwnode: Extend device_get_match_data() to struct bus_type
2023-07-24 16:38 ` Dmitry Torokhov
@ 2023-07-26 5:33 ` Biju Das
0 siblings, 0 replies; 14+ messages in thread
From: Biju Das @ 2023-07-26 5:33 UTC (permalink / raw)
To: Dmitry Torokhov
Cc: Andy Shevchenko, Daniel Scally, Heikki Krogerus, Sakari Ailus,
Greg Kroah-Hartman, Rafael J. Wysocki, linux-acpi@vger.kernel.org,
linux-i2c@vger.kernel.org, Wolfram Sang, Geert Uytterhoeven,
linux-renesas-soc@vger.kernel.org
> Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> device_get_match_data() to struct bus_type
>
> On Mon, Jul 24, 2023 at 01:58:55PM +0000, Biju Das wrote:
> > Hi Andy,
> >
> > Thanks for the feedback.
> >
> > > Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> > > device_get_match_data() to struct bus_type
> > >
> > > On Mon, Jul 24, 2023 at 01:19:02PM +0000, Biju Das wrote:
> > > > > Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> > > > > device_get_match_data() to struct bus_type On Mon, Jul 24, 2023
> > > > > at 12:02:27PM +0000, Biju Das wrote:
> > > > > > > Subject: Re: [PATCH RFC 1/2] drivers: fwnode: Extend
> > > > > > > device_get_match_data() to struct bus_type On Sun, Jul 23,
> > > > > > > 2023 at 09:37:20AM +0100, Biju Das wrote:
> > >
> > > ...
> > >
> > > > > > > > Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> > > > > > >
> > > > > > > You can't just throw one's SoB tag without clear
> > > > > > > understanding what's going on here (either wrong authorship
> > > > > > > or missing Co-developed-by or...?).
> > > > > >
> > > > > > Dmitry feels instead of having separate bus based match_data()
> > > > > > like i2c_get_match_data[2] and spi_get_device_match_data[3],
> > > > > > it is better to have a generic approach like a single API
> > > > > > device_get_match_data() for getting match_data for
> > > > > > OF/ACPI/I2C/SPI
> > > tables.
> > > > > >
> > > > > > So, he came with a proposal and shared some code here[1].
> > > > >
> > > > > Yes, I'm pretty much following the discussion.
> > > > >
> > > > > > Since,I have send this patch, I put my signed -off.
> > > > >
> > > > > I'm not talking about this. There is no evidence that Dmitry
> > > > > gives you any approval to use or clear SoB tag. Again, you may
> > > > > not do like
> > > this.
> > > >
> > > > Here Dmitry is acknowledging, he is ok with the patch I posted.
> > > >
> > >
> > > No, you just misinterpreted his message.
> > >
> >
> > Dmitry,
> >
> > As you are the author of code, either you post a patch or provide your
> SoB as per the guideline mentioned here to avoid confusion.
> >
> >
> It was not really proper patch, consider it as an email with parts
> written in unified diff, as sometimes it is easier than to explain in
> words, and I do not want to take much credit for it.
>
> If you wish you can put "Suggested-by" for me, or just drop my name off
> the patch description altogether.
Sure, will add Suggested-by tag.
Cheers,
Biju
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2023-07-26 5:33 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-23 8:37 [PATCH RFC 0/2] Extend device_get_match_data() to struct bus_type Biju Das
2023-07-23 8:37 ` [PATCH RFC 1/2] drivers: fwnode: " Biju Das
2023-07-24 11:06 ` Andy Shevchenko
2023-07-24 11:07 ` Andy Shevchenko
2023-07-24 11:46 ` Biju Das
2023-07-24 12:57 ` Andy Shevchenko
2023-07-24 13:35 ` Biju Das
2023-07-24 12:02 ` Biju Das
2023-07-24 13:00 ` Andy Shevchenko
2023-07-24 13:19 ` Biju Das
2023-07-24 13:50 ` Andy Shevchenko
2023-07-24 13:58 ` Biju Das
2023-07-24 16:38 ` Dmitry Torokhov
2023-07-26 5:33 ` Biju Das
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox