* [PATCH] iio/inv_icm42600: add inv_icm42600 id_table @ 2024-08-25 6:39 Jason Liu 2024-08-26 8:22 ` Jean-Baptiste Maneyrol 0 siblings, 1 reply; 14+ messages in thread From: Jason Liu @ 2024-08-25 6:39 UTC (permalink / raw) To: jmaneyrol; +Cc: jic23, lars, linux-iio, linux-kernel, Jason Liu Add the id_table of inv_icm42600, so the device can probe correctly. Signed-off-by: Jason Liu <jasonliu10041728@gmail.com> --- drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 15 +++++++++++++++ drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c index ebb31b385881..8cc550b8cfc3 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c @@ -71,6 +71,20 @@ static int inv_icm42600_probe(struct i2c_client *client) inv_icm42600_i2c_bus_setup); } +/* + * device id table is used to identify what device can be + * supported by this driver + */ +static const struct i2c_device_id inv_icm42600_id[] = { + {"icm42600", INV_CHIP_ICM42600}, + {"icm42602", INV_CHIP_ICM42602}, + {"icm42605", INV_CHIP_ICM42605}, + {"icm42622", INV_CHIP_ICM42622}, + {"icm42631", INV_CHIP_ICM42631}, + {} +}; +MODULE_DEVICE_TABLE(i2c, inv_icm42600_id); + static const struct of_device_id inv_icm42600_of_matches[] = { { .compatible = "invensense,icm42600", @@ -104,6 +118,7 @@ static struct i2c_driver inv_icm42600_driver = { .of_match_table = inv_icm42600_of_matches, .pm = pm_ptr(&inv_icm42600_pm_ops), }, + .id_table = inv_icm42600_id, .probe = inv_icm42600_probe, }; module_i2c_driver(inv_icm42600_driver); diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c index eae5ff7a3cc1..5fe078ddc8a1 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c @@ -67,6 +67,20 @@ static int inv_icm42600_probe(struct spi_device *spi) inv_icm42600_spi_bus_setup); } +/* + * device id table is used to identify what device can be + * supported by this driver + */ +static const struct spi_device_id inv_icm42600_id[] = { + {"icm42600", INV_CHIP_ICM42600}, + {"icm42602", INV_CHIP_ICM42602}, + {"icm42605", INV_CHIP_ICM42605}, + {"icm42622", INV_CHIP_ICM42622}, + {"icm42631", INV_CHIP_ICM42631}, + {} +}; +MODULE_DEVICE_TABLE(spi, inv_icm42600_id); + static const struct of_device_id inv_icm42600_of_matches[] = { { .compatible = "invensense,icm42600", @@ -100,6 +114,7 @@ static struct spi_driver inv_icm42600_driver = { .of_match_table = inv_icm42600_of_matches, .pm = pm_ptr(&inv_icm42600_pm_ops), }, + .id_table = inv_icm42600_id, .probe = inv_icm42600_probe, }; module_spi_driver(inv_icm42600_driver); -- 2.25.1 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table 2024-08-25 6:39 [PATCH] iio/inv_icm42600: add inv_icm42600 id_table Jason Liu @ 2024-08-26 8:22 ` Jean-Baptiste Maneyrol 2024-08-26 10:20 ` Jonathan Cameron 0 siblings, 1 reply; 14+ messages in thread From: Jean-Baptiste Maneyrol @ 2024-08-26 8:22 UTC (permalink / raw) To: Jason Liu Cc: jic23@kernel.org, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Hello, I was believing that id tables weren't required anymore when using of tables. Jonathan, can you help on this subject? If we have to add id tables, then we need to add all supported chips (missing here icm42686 and icm42688). Thanks, JB ________________________________________ From: Jason Liu <jasonliu10041728@gmail.com> Sent: Sunday, August 25, 2024 08:39 To: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> Cc: jic23@kernel.org <jic23@kernel.org>; lars@metafoo.de <lars@metafoo.de>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org>; Jason Liu <jasonliu10041728@gmail.com> Subject: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table This Message Is From an Untrusted Sender You have not previously corresponded with this sender. Add the id_table of inv_icm42600, so the device can probe correctly. Signed-off-by: Jason Liu <jasonliu10041728@gmail.com> --- drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 15 +++++++++++++++ drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c index ebb31b385881..8cc550b8cfc3 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c @@ -71,6 +71,20 @@ static int inv_icm42600_probe(struct i2c_client *client) inv_icm42600_i2c_bus_setup); } +/* + * device id table is used to identify what device can be + * supported by this driver + */ +static const struct i2c_device_id inv_icm42600_id[] = { + {"icm42600", INV_CHIP_ICM42600}, + {"icm42602", INV_CHIP_ICM42602}, + {"icm42605", INV_CHIP_ICM42605}, + {"icm42622", INV_CHIP_ICM42622}, + {"icm42631", INV_CHIP_ICM42631}, + {} +}; +MODULE_DEVICE_TABLE(i2c, inv_icm42600_id); + static const struct of_device_id inv_icm42600_of_matches[] = { { .compatible = "invensense,icm42600", @@ -104,6 +118,7 @@ static struct i2c_driver inv_icm42600_driver = { .of_match_table = inv_icm42600_of_matches, .pm = pm_ptr(&inv_icm42600_pm_ops), }, + .id_table = inv_icm42600_id, .probe = inv_icm42600_probe, }; module_i2c_driver(inv_icm42600_driver); diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c index eae5ff7a3cc1..5fe078ddc8a1 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c @@ -67,6 +67,20 @@ static int inv_icm42600_probe(struct spi_device *spi) inv_icm42600_spi_bus_setup); } +/* + * device id table is used to identify what device can be + * supported by this driver + */ +static const struct spi_device_id inv_icm42600_id[] = { + {"icm42600", INV_CHIP_ICM42600}, + {"icm42602", INV_CHIP_ICM42602}, + {"icm42605", INV_CHIP_ICM42605}, + {"icm42622", INV_CHIP_ICM42622}, + {"icm42631", INV_CHIP_ICM42631}, + {} +}; +MODULE_DEVICE_TABLE(spi, inv_icm42600_id); + static const struct of_device_id inv_icm42600_of_matches[] = { { .compatible = "invensense,icm42600", @@ -100,6 +114,7 @@ static struct spi_driver inv_icm42600_driver = { .of_match_table = inv_icm42600_of_matches, .pm = pm_ptr(&inv_icm42600_pm_ops), }, + .id_table = inv_icm42600_id, .probe = inv_icm42600_probe, }; module_spi_driver(inv_icm42600_driver); -- 2.25.1 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table 2024-08-26 8:22 ` Jean-Baptiste Maneyrol @ 2024-08-26 10:20 ` Jonathan Cameron [not found] ` <CAJci1vCztZAnmHrVn=4b9hnRmMCQE=6R7uQnznPQ0FSpFHQK5w@mail.gmail.com> 0 siblings, 1 reply; 14+ messages in thread From: Jonathan Cameron @ 2024-08-26 10:20 UTC (permalink / raw) To: Jean-Baptiste Maneyrol Cc: Jason Liu, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Wolfram Sang, Mark Brown On Mon, 26 Aug 2024 08:22:11 +0000 Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> wrote: > Hello, > > I was believing that id tables weren't required anymore when using of tables. > > Jonathan, > can you help on this subject? > > If we have to add id tables, then we need to add all supported chips (missing here icm42686 and icm42688). There were some oddities around autoloading for some busses a while back but I can't find the reference. +CC Mark + Wolfram for input. Do we currently need i2c_device_id and spi_device_id tables for autoprobing on DT only platforms? A few minor comments inline. > > Thanks, > JB > > ________________________________________ > From: Jason Liu <jasonliu10041728@gmail.com> > Sent: Sunday, August 25, 2024 08:39 > To: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> > Cc: jic23@kernel.org <jic23@kernel.org>; lars@metafoo.de <lars@metafoo.de>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org>; Jason Liu <jasonliu10041728@gmail.com> > Subject: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table > > This Message Is From an Untrusted Sender > You have not previously corresponded with this sender. > > Add the id_table of inv_icm42600, so the device can probe correctly. > > Signed-off-by: Jason Liu <jasonliu10041728@gmail.com> > --- > drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 15 +++++++++++++++ > drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 15 +++++++++++++++ > 2 files changed, 30 insertions(+) > > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > index ebb31b385881..8cc550b8cfc3 100644 > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > @@ -71,6 +71,20 @@ static int inv_icm42600_probe(struct i2c_client *client) > inv_icm42600_i2c_bus_setup); > } > > +/* > + * device id table is used to identify what device can be > + * supported by this driver > + */ > +static const struct i2c_device_id inv_icm42600_id[] = { > + {"icm42600", INV_CHIP_ICM42600}, Spaces after { and before } > + {"icm42602", INV_CHIP_ICM42602}, > + {"icm42605", INV_CHIP_ICM42605}, > + {"icm42622", INV_CHIP_ICM42622}, > + {"icm42631", INV_CHIP_ICM42631}, > + {} { } I'm trying to standardize this in IIO. > +}; > +MODULE_DEVICE_TABLE(i2c, inv_icm42600_id); > + > static const struct of_device_id inv_icm42600_of_matches[] = { > { > .compatible = "invensense,icm42600", > @@ -104,6 +118,7 @@ static struct i2c_driver inv_icm42600_driver = { > .of_match_table = inv_icm42600_of_matches, > .pm = pm_ptr(&inv_icm42600_pm_ops), > }, > + .id_table = inv_icm42600_id, > .probe = inv_icm42600_probe, > }; > module_i2c_driver(inv_icm42600_driver); > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > index eae5ff7a3cc1..5fe078ddc8a1 100644 > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > @@ -67,6 +67,20 @@ static int inv_icm42600_probe(struct spi_device *spi) > inv_icm42600_spi_bus_setup); > } > > +/* > + * device id table is used to identify what device can be > + * supported by this driver > + */ > +static const struct spi_device_id inv_icm42600_id[] = { > + {"icm42600", INV_CHIP_ICM42600}, > + {"icm42602", INV_CHIP_ICM42602}, > + {"icm42605", INV_CHIP_ICM42605}, > + {"icm42622", INV_CHIP_ICM42622}, > + {"icm42631", INV_CHIP_ICM42631}, > + {} > +}; > +MODULE_DEVICE_TABLE(spi, inv_icm42600_id); > + > static const struct of_device_id inv_icm42600_of_matches[] = { > { > .compatible = "invensense,icm42600", > @@ -100,6 +114,7 @@ static struct spi_driver inv_icm42600_driver = { > .of_match_table = inv_icm42600_of_matches, > .pm = pm_ptr(&inv_icm42600_pm_ops), > }, > + .id_table = inv_icm42600_id, > .probe = inv_icm42600_probe, > }; > module_spi_driver(inv_icm42600_driver); ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <CAJci1vCztZAnmHrVn=4b9hnRmMCQE=6R7uQnznPQ0FSpFHQK5w@mail.gmail.com>]
* Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table [not found] ` <CAJci1vCztZAnmHrVn=4b9hnRmMCQE=6R7uQnznPQ0FSpFHQK5w@mail.gmail.com> @ 2024-09-01 14:23 ` Jonathan Cameron 2024-09-02 3:11 ` Jason Liu 0 siblings, 1 reply; 14+ messages in thread From: Jonathan Cameron @ 2024-09-01 14:23 UTC (permalink / raw) To: jason liu Cc: Jean-Baptiste Maneyrol, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Wolfram Sang, Mark Brown On Sun, 1 Sep 2024 13:04:59 +0800 jason liu <jasonliu10041728@gmail.com> wrote: > Hi, I would like to know your current opinion on this patch. > > Let me explain the reason for proposing this patch. > > First, through __spi_register_driver, we know that when registering an SPI > driver, if an id_table is present, it matches the id_table; otherwise, it > matches the SPI device's driver_name. > Then, in inv_icm_42600spi.c, driver name is "inv-icm42600-spi", but the > compatible is compatible = "invensense,icm42600". > > so I think, it's necessary to add an id_table in the inv_icm42600 driver. The quest Jean-Baptiste was raising was whether it would match on the of_match_id table instead if it was present. __spi_register_driver does that so I think perhaps what you are actually referring to is the comment in there. /* * For Really Good Reasons we use spi: modaliases not of: * modaliases for DT so module autoloading won't work if we * don't have a spi_device_id as well as a compatible string. */ The actually matching is done in spi_match_device. Anyhow, the comment suggests strongly that we do still need the spi_device_id table. I'm not 100% sure on the i2c equivalent, but I'm fine with adding both. Please fix up the formatting as requested below and send a v2. > > > Jonathan Cameron <jic23@kernel.org> 于2024年8月26日周一 18:27写道: > > > On Mon, 26 Aug 2024 08:22:11 +0000 > > Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> wrote: > > > > > Hello, > > > > > > I was believing that id tables weren't required anymore when using of > > tables. > > > > > > Jonathan, > > > can you help on this subject? > > > > > > If we have to add id tables, then we need to add all supported chips > > (missing here icm42686 and icm42688). > > > > There were some oddities around autoloading for some busses a while > > back but I can't find the reference. > > > > +CC Mark + Wolfram for input. > > Do we currently need i2c_device_id and spi_device_id tables for > > autoprobing on DT only platforms? > > > > A few minor comments inline. > > > > > > > > > > > > > > Thanks, > > > JB > > > > > > ________________________________________ > > > From: Jason Liu <jasonliu10041728@gmail.com> > > > Sent: Sunday, August 25, 2024 08:39 > > > To: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> > > > Cc: jic23@kernel.org <jic23@kernel.org>; lars@metafoo.de < > > lars@metafoo.de>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; > > linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org>; Jason Liu < > > jasonliu10041728@gmail.com> > > > Subject: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table > > > > > > This Message Is From an Untrusted Sender > > > You have not previously corresponded with this sender. > > > > > > Add the id_table of inv_icm42600, so the device can probe correctly. > > > > > > Signed-off-by: Jason Liu <jasonliu10041728@gmail.com> > > > --- > > > drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 15 +++++++++++++++ > > > drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 15 +++++++++++++++ > > > 2 files changed, 30 insertions(+) > > > > > > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > > b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > > > index ebb31b385881..8cc550b8cfc3 100644 > > > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > > > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > > > @@ -71,6 +71,20 @@ static int inv_icm42600_probe(struct i2c_client > > *client) > > > inv_icm42600_i2c_bus_setup); > > > } > > > > > > +/* > > > + * device id table is used to identify what device can be > > > + * supported by this driver > > > + */ > > > +static const struct i2c_device_id inv_icm42600_id[] = { > > > + {"icm42600", INV_CHIP_ICM42600}, > > Spaces after { and before } > > > + {"icm42602", INV_CHIP_ICM42602}, > > > + {"icm42605", INV_CHIP_ICM42605}, > > > + {"icm42622", INV_CHIP_ICM42622}, > > > + {"icm42631", INV_CHIP_ICM42631}, > > > + {} > > { } > > > > I'm trying to standardize this in IIO. > > > > > +}; > > > +MODULE_DEVICE_TABLE(i2c, inv_icm42600_id); > > > + > > > static const struct of_device_id inv_icm42600_of_matches[] = { > > > { > > > .compatible = "invensense,icm42600", > > > @@ -104,6 +118,7 @@ static struct i2c_driver inv_icm42600_driver = { > > > .of_match_table = inv_icm42600_of_matches, > > > .pm = pm_ptr(&inv_icm42600_pm_ops), > > > }, > > > + .id_table = inv_icm42600_id, > > > .probe = inv_icm42600_probe, > > > }; > > > module_i2c_driver(inv_icm42600_driver); > > > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > > b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > > > index eae5ff7a3cc1..5fe078ddc8a1 100644 > > > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > > > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > > > @@ -67,6 +67,20 @@ static int inv_icm42600_probe(struct spi_device *spi) > > > inv_icm42600_spi_bus_setup); > > > } > > > > > > +/* > > > + * device id table is used to identify what device can be > > > + * supported by this driver > > > + */ > > > +static const struct spi_device_id inv_icm42600_id[] = { > > > + {"icm42600", INV_CHIP_ICM42600}, > > > + {"icm42602", INV_CHIP_ICM42602}, > > > + {"icm42605", INV_CHIP_ICM42605}, > > > + {"icm42622", INV_CHIP_ICM42622}, > > > + {"icm42631", INV_CHIP_ICM42631}, > > > + {} > > > +}; > > > +MODULE_DEVICE_TABLE(spi, inv_icm42600_id); > > > + > > > static const struct of_device_id inv_icm42600_of_matches[] = { > > > { > > > .compatible = "invensense,icm42600", > > > @@ -100,6 +114,7 @@ static struct spi_driver inv_icm42600_driver = { > > > .of_match_table = inv_icm42600_of_matches, > > > .pm = pm_ptr(&inv_icm42600_pm_ops), > > > }, > > > + .id_table = inv_icm42600_id, > > > .probe = inv_icm42600_probe, > > > }; > > > module_spi_driver(inv_icm42600_driver); > > > > ^ permalink raw reply [flat|nested] 14+ messages in thread
* [PATCH] iio/inv_icm42600: add inv_icm42600 id_table 2024-09-01 14:23 ` Jonathan Cameron @ 2024-09-02 3:11 ` Jason Liu 2024-09-02 9:58 ` Jean-Baptiste Maneyrol 0 siblings, 1 reply; 14+ messages in thread From: Jason Liu @ 2024-09-02 3:11 UTC (permalink / raw) To: jmaneyrol; +Cc: lars, linux-iio, linux-kernel, Jason Liu Add the id_table of inv_icm42600, so the device can probe correctly. Signed-off-by: Jason Liu <jasonliu10041728@gmail.com> --- V1->V2: fix up the formatting as requested --- drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 15 +++++++++++++++ drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c index ebb31b385881..4e00eb130e9f 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c @@ -71,6 +71,20 @@ static int inv_icm42600_probe(struct i2c_client *client) inv_icm42600_i2c_bus_setup); } +/* + * device id table is used to identify what device can be + * supported by this driver + */ +static const struct i2c_device_id inv_icm42600_id[] = { + { "icm42600", INV_CHIP_ICM42600 }, + { "icm42602", INV_CHIP_ICM42602 }, + { "icm42605", INV_CHIP_ICM42605 }, + { "icm42622", INV_CHIP_ICM42622 }, + { "icm42631", INV_CHIP_ICM42631 }, + {} +}; +MODULE_DEVICE_TABLE(i2c, inv_icm42600_id); + static const struct of_device_id inv_icm42600_of_matches[] = { { .compatible = "invensense,icm42600", @@ -104,6 +118,7 @@ static struct i2c_driver inv_icm42600_driver = { .of_match_table = inv_icm42600_of_matches, .pm = pm_ptr(&inv_icm42600_pm_ops), }, + .id_table = inv_icm42600_id, .probe = inv_icm42600_probe, }; module_i2c_driver(inv_icm42600_driver); diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c index eae5ff7a3cc1..9efbe9b7674d 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c @@ -67,6 +67,20 @@ static int inv_icm42600_probe(struct spi_device *spi) inv_icm42600_spi_bus_setup); } +/* + * device id table is used to identify what device can be + * supported by this driver + */ +static const struct spi_device_id inv_icm42600_id[] = { + { "icm42600", INV_CHIP_ICM42600 }, + { "icm42602", INV_CHIP_ICM42602 }, + { "icm42605", INV_CHIP_ICM42605 }, + { "icm42622", INV_CHIP_ICM42622 }, + { "icm42631", INV_CHIP_ICM42631 }, + {} +}; +MODULE_DEVICE_TABLE(spi, inv_icm42600_id); + static const struct of_device_id inv_icm42600_of_matches[] = { { .compatible = "invensense,icm42600", @@ -100,6 +114,7 @@ static struct spi_driver inv_icm42600_driver = { .of_match_table = inv_icm42600_of_matches, .pm = pm_ptr(&inv_icm42600_pm_ops), }, + .id_table = inv_icm42600_id, .probe = inv_icm42600_probe, }; module_spi_driver(inv_icm42600_driver); -- 2.25.1 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table 2024-09-02 3:11 ` Jason Liu @ 2024-09-02 9:58 ` Jean-Baptiste Maneyrol 2024-09-02 11:31 ` Jason Liu 0 siblings, 1 reply; 14+ messages in thread From: Jean-Baptiste Maneyrol @ 2024-09-02 9:58 UTC (permalink / raw) To: Jason Liu Cc: lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Hello, this patch is missing chips supported by this driver: icm42686 (INV_ICM_42686) and icm42688 (INV_ICM_42688). Please add them and in the same order than of_device_id: { .compatible = "invensense,icm42600", .data = (void *)INV_CHIP_ICM42600, }, { .compatible = "invensense,icm42602", .data = (void *)INV_CHIP_ICM42602, }, { .compatible = "invensense,icm42605", .data = (void *)INV_CHIP_ICM42605, }, { .compatible = "invensense,icm42686", .data = (void *)INV_CHIP_ICM42686, }, { .compatible = "invensense,icm42622", .data = (void *)INV_CHIP_ICM42622, }, { .compatible = "invensense,icm42688", .data = (void *)INV_CHIP_ICM42688, }, { .compatible = "invensense,icm42631", .data = (void *)INV_CHIP_ICM42631, }, Thanks. Best regards, JB ________________________________________ From: Jason Liu <jasonliu10041728@gmail.com> Sent: Monday, September 2, 2024 05:11 To: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> Cc: lars@metafoo.de <lars@metafoo.de>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org>; Jason Liu <jasonliu10041728@gmail.com> Subject: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table This Message Is From an Untrusted Sender You have not previously corresponded with this sender. Add the id_table of inv_icm42600, so the device can probe correctly. Signed-off-by: Jason Liu <jasonliu10041728@gmail.com> --- V1->V2: fix up the formatting as requested --- drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 15 +++++++++++++++ drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c index ebb31b385881..4e00eb130e9f 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c @@ -71,6 +71,20 @@ static int inv_icm42600_probe(struct i2c_client *client) inv_icm42600_i2c_bus_setup); } +/* + * device id table is used to identify what device can be + * supported by this driver + */ +static const struct i2c_device_id inv_icm42600_id[] = { + { "icm42600", INV_CHIP_ICM42600 }, + { "icm42602", INV_CHIP_ICM42602 }, + { "icm42605", INV_CHIP_ICM42605 }, + { "icm42622", INV_CHIP_ICM42622 }, + { "icm42631", INV_CHIP_ICM42631 }, + {} +}; +MODULE_DEVICE_TABLE(i2c, inv_icm42600_id); + static const struct of_device_id inv_icm42600_of_matches[] = { { .compatible = "invensense,icm42600", @@ -104,6 +118,7 @@ static struct i2c_driver inv_icm42600_driver = { .of_match_table = inv_icm42600_of_matches, .pm = pm_ptr(&inv_icm42600_pm_ops), }, + .id_table = inv_icm42600_id, .probe = inv_icm42600_probe, }; module_i2c_driver(inv_icm42600_driver); diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c index eae5ff7a3cc1..9efbe9b7674d 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c @@ -67,6 +67,20 @@ static int inv_icm42600_probe(struct spi_device *spi) inv_icm42600_spi_bus_setup); } +/* + * device id table is used to identify what device can be + * supported by this driver + */ +static const struct spi_device_id inv_icm42600_id[] = { + { "icm42600", INV_CHIP_ICM42600 }, + { "icm42602", INV_CHIP_ICM42602 }, + { "icm42605", INV_CHIP_ICM42605 }, + { "icm42622", INV_CHIP_ICM42622 }, + { "icm42631", INV_CHIP_ICM42631 }, + {} +}; +MODULE_DEVICE_TABLE(spi, inv_icm42600_id); + static const struct of_device_id inv_icm42600_of_matches[] = { { .compatible = "invensense,icm42600", @@ -100,6 +114,7 @@ static struct spi_driver inv_icm42600_driver = { .of_match_table = inv_icm42600_of_matches, .pm = pm_ptr(&inv_icm42600_pm_ops), }, + .id_table = inv_icm42600_id, .probe = inv_icm42600_probe, }; module_spi_driver(inv_icm42600_driver); -- 2.25.1 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* [PATCH] iio/inv_icm42600: add inv_icm42600 id_table 2024-09-02 9:58 ` Jean-Baptiste Maneyrol @ 2024-09-02 11:31 ` Jason Liu [not found] ` <CAJci1vC9pvdqEpA8sk+uB5jJGn_DKUruXFfY6tbG9mO07YxgHQ@mail.gmail.com> 0 siblings, 1 reply; 14+ messages in thread From: Jason Liu @ 2024-09-02 11:31 UTC (permalink / raw) To: jmaneyrol; +Cc: jic23, lars, linux-iio, linux-kernel, Jason Liu Add the id_table of inv_icm42600, so the device can probe correctly. Signed-off-by: Jason Liu <jasonliu10041728@gmail.com> --- V1->V2: fix up the formatting as requested --- V2->V3: add icm42686 (INV_ICM_42686) and icm42688 (INV_ICM_42688) --- drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 17 +++++++++++++++++ drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c index ebb31b385881..9e65fef04c39 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c @@ -71,6 +71,22 @@ static int inv_icm42600_probe(struct i2c_client *client) inv_icm42600_i2c_bus_setup); } +/* + * device id table is used to identify what device can be + * supported by this driver + */ +static const struct i2c_device_id inv_icm42600_id[] = { + { "icm42600", INV_CHIP_ICM42600 }, + { "icm42602", INV_CHIP_ICM42602 }, + { "icm42605", INV_CHIP_ICM42605 }, + { "icm42686", INV_CHIP_ICM42686 }, + { "icm42622", INV_CHIP_ICM42622 }, + { "icm42688", INV_CHIP_ICM42688 }, + { "icm42631", INV_CHIP_ICM42631 }, + {} +}; +MODULE_DEVICE_TABLE(i2c, inv_icm42600_id); + static const struct of_device_id inv_icm42600_of_matches[] = { { .compatible = "invensense,icm42600", @@ -104,6 +120,7 @@ static struct i2c_driver inv_icm42600_driver = { .of_match_table = inv_icm42600_of_matches, .pm = pm_ptr(&inv_icm42600_pm_ops), }, + .id_table = inv_icm42600_id, .probe = inv_icm42600_probe, }; module_i2c_driver(inv_icm42600_driver); diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c index eae5ff7a3cc1..75441b2be174 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c @@ -67,6 +67,22 @@ static int inv_icm42600_probe(struct spi_device *spi) inv_icm42600_spi_bus_setup); } +/* + * device id table is used to identify what device can be + * supported by this driver + */ +static const struct spi_device_id inv_icm42600_id[] = { + { "icm42600", INV_CHIP_ICM42600 }, + { "icm42602", INV_CHIP_ICM42602 }, + { "icm42605", INV_CHIP_ICM42605 }, + { "icm42686", INV_CHIP_ICM42686 }, + { "icm42622", INV_CHIP_ICM42622 }, + { "icm42688", INV_CHIP_ICM42688 }, + { "icm42631", INV_CHIP_ICM42631 }, + {} +}; +MODULE_DEVICE_TABLE(spi, inv_icm42600_id); + static const struct of_device_id inv_icm42600_of_matches[] = { { .compatible = "invensense,icm42600", @@ -100,6 +116,7 @@ static struct spi_driver inv_icm42600_driver = { .of_match_table = inv_icm42600_of_matches, .pm = pm_ptr(&inv_icm42600_pm_ops), }, + .id_table = inv_icm42600_id, .probe = inv_icm42600_probe, }; module_spi_driver(inv_icm42600_driver); -- 2.25.1 ^ permalink raw reply related [flat|nested] 14+ messages in thread
[parent not found: <CAJci1vC9pvdqEpA8sk+uB5jJGn_DKUruXFfY6tbG9mO07YxgHQ@mail.gmail.com>]
* Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table [not found] ` <CAJci1vC9pvdqEpA8sk+uB5jJGn_DKUruXFfY6tbG9mO07YxgHQ@mail.gmail.com> @ 2024-09-05 9:25 ` Jean-Baptiste Maneyrol 2024-09-07 13:48 ` Jonathan Cameron [not found] ` <SI6PR01MB63197238674C8895885420D8F59E2@SI6PR01MB6319.apcprd01.prod.exchangelabs.com> 0 siblings, 2 replies; 14+ messages in thread From: Jean-Baptiste Maneyrol @ 2024-09-05 9:25 UTC (permalink / raw) To: jason liu Cc: jic23@kernel.org, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Hello, looks good for me now, thanks for the patch. Acked-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com> Thanks, JB ________________________________________ From: jason liu <jasonliu10041728@gmail.com> Sent: Wednesday, September 4, 2024 11:00 To: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> Cc: jic23@kernel.org <jic23@kernel.org>; lars@metafoo.de <lars@metafoo.de>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org> Subject: Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table This Message Is From an Untrusted Sender You have not previously corresponded with this sender. Hello, does patch v3 meet the requirements? BR. Jason Liu <jasonliu10041728@gmail.com> 于2024年9月2日周一 19:31写道: Add the id_table of inv_icm42600, so the device can probe correctly. Signed-off-by: Jason Liu <jasonliu10041728@gmail.com> --- V1->V2: fix up the formatting as requested --- V2->V3: add icm42686 (INV_ICM_42686) and icm42688 (INV_ICM_42688) --- drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 17 +++++++++++++++++ drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c index ebb31b385881..9e65fef04c39 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c @@ -71,6 +71,22 @@ static int inv_icm42600_probe(struct i2c_client *client) inv_icm42600_i2c_bus_setup); } +/* + * device id table is used to identify what device can be + * supported by this driver + */ +static const struct i2c_device_id inv_icm42600_id[] = { + { "icm42600", INV_CHIP_ICM42600 }, + { "icm42602", INV_CHIP_ICM42602 }, + { "icm42605", INV_CHIP_ICM42605 }, + { "icm42686", INV_CHIP_ICM42686 }, + { "icm42622", INV_CHIP_ICM42622 }, + { "icm42688", INV_CHIP_ICM42688 }, + { "icm42631", INV_CHIP_ICM42631 }, + {} +}; +MODULE_DEVICE_TABLE(i2c, inv_icm42600_id); + static const struct of_device_id inv_icm42600_of_matches[] = { { .compatible = "invensense,icm42600", @@ -104,6 +120,7 @@ static struct i2c_driver inv_icm42600_driver = { .of_match_table = inv_icm42600_of_matches, .pm = pm_ptr(&inv_icm42600_pm_ops), }, + .id_table = inv_icm42600_id, .probe = inv_icm42600_probe, }; module_i2c_driver(inv_icm42600_driver); diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c index eae5ff7a3cc1..75441b2be174 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c @@ -67,6 +67,22 @@ static int inv_icm42600_probe(struct spi_device *spi) inv_icm42600_spi_bus_setup); } +/* + * device id table is used to identify what device can be + * supported by this driver + */ +static const struct spi_device_id inv_icm42600_id[] = { + { "icm42600", INV_CHIP_ICM42600 }, + { "icm42602", INV_CHIP_ICM42602 }, + { "icm42605", INV_CHIP_ICM42605 }, + { "icm42686", INV_CHIP_ICM42686 }, + { "icm42622", INV_CHIP_ICM42622 }, + { "icm42688", INV_CHIP_ICM42688 }, + { "icm42631", INV_CHIP_ICM42631 }, + {} +}; +MODULE_DEVICE_TABLE(spi, inv_icm42600_id); + static const struct of_device_id inv_icm42600_of_matches[] = { { .compatible = "invensense,icm42600", @@ -100,6 +116,7 @@ static struct spi_driver inv_icm42600_driver = { .of_match_table = inv_icm42600_of_matches, .pm = pm_ptr(&inv_icm42600_pm_ops), }, + .id_table = inv_icm42600_id, .probe = inv_icm42600_probe, }; module_spi_driver(inv_icm42600_driver); -- 2.25.1 ^ permalink raw reply related [flat|nested] 14+ messages in thread
* Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table 2024-09-05 9:25 ` Jean-Baptiste Maneyrol @ 2024-09-07 13:48 ` Jonathan Cameron [not found] ` <SI6PR01MB63197238674C8895885420D8F59E2@SI6PR01MB6319.apcprd01.prod.exchangelabs.com> 1 sibling, 0 replies; 14+ messages in thread From: Jonathan Cameron @ 2024-09-07 13:48 UTC (permalink / raw) To: Jean-Baptiste Maneyrol Cc: jason liu, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org On Thu, 5 Sep 2024 09:25:33 +0000 Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> wrote: > Hello, > > looks good for me now, thanks for the patch. > > Acked-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com> > Hi Jason, I've picked this up, but the patch submission has a number of issues you should be sure to fix in future patches. 1) Patch version is not in the patch title. I initially picked up a different version that was in a later thread in my email. 2) Patch title has wrong style - look at other patches for this driver and similar. Should start with iio: imu: inv... 3) Never send a new patch in reply to a previous one. Whilst that is accepted practice in some opensource communities it scales very badly and mostly reduces the chance anyone will read your patches as they will be off the top of the screen of their most recent emails. I have never come across a kernel maintainer asking for this style and many including myself actively ask people to not do this. Each version should be a new email thread. Anyhow, stuff to watch out for next time. Applied, but given timing I'm not sure if this will be in my final pull request for this kernel cycle or not. Jonathan > Thanks, > JB > > ________________________________________ > From: jason liu <jasonliu10041728@gmail.com> > Sent: Wednesday, September 4, 2024 11:00 > To: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> > Cc: jic23@kernel.org <jic23@kernel.org>; lars@metafoo.de <lars@metafoo.de>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org> > Subject: Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table > > This Message Is From an Untrusted Sender > You have not previously corresponded with this sender. > > Hello, does patch v3 meet the requirements? > > BR. > > Jason Liu <jasonliu10041728@gmail.com> 于2024年9月2日周一 19:31写道: > Add the id_table of inv_icm42600, so the device can probe correctly. > > Signed-off-by: Jason Liu <jasonliu10041728@gmail.com> > --- > V1->V2: fix up the formatting as requested > --- > V2->V3: add icm42686 (INV_ICM_42686) and icm42688 (INV_ICM_42688) > --- > drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 17 +++++++++++++++++ > drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 17 +++++++++++++++++ > 2 files changed, 34 insertions(+) > > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > index ebb31b385881..9e65fef04c39 100644 > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > @@ -71,6 +71,22 @@ static int inv_icm42600_probe(struct i2c_client *client) > inv_icm42600_i2c_bus_setup); > } > > +/* > + * device id table is used to identify what device can be > + * supported by this driver > + */ > +static const struct i2c_device_id inv_icm42600_id[] = { > + { "icm42600", INV_CHIP_ICM42600 }, > + { "icm42602", INV_CHIP_ICM42602 }, > + { "icm42605", INV_CHIP_ICM42605 }, > + { "icm42686", INV_CHIP_ICM42686 }, > + { "icm42622", INV_CHIP_ICM42622 }, > + { "icm42688", INV_CHIP_ICM42688 }, > + { "icm42631", INV_CHIP_ICM42631 }, > + {} > +}; > +MODULE_DEVICE_TABLE(i2c, inv_icm42600_id); > + > static const struct of_device_id inv_icm42600_of_matches[] = { > { > .compatible = "invensense,icm42600", > @@ -104,6 +120,7 @@ static struct i2c_driver inv_icm42600_driver = { > .of_match_table = inv_icm42600_of_matches, > .pm = pm_ptr(&inv_icm42600_pm_ops), > }, > + .id_table = inv_icm42600_id, > .probe = inv_icm42600_probe, > }; > module_i2c_driver(inv_icm42600_driver); > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > index eae5ff7a3cc1..75441b2be174 100644 > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > @@ -67,6 +67,22 @@ static int inv_icm42600_probe(struct spi_device *spi) > inv_icm42600_spi_bus_setup); > } > > +/* > + * device id table is used to identify what device can be > + * supported by this driver > + */ > +static const struct spi_device_id inv_icm42600_id[] = { > + { "icm42600", INV_CHIP_ICM42600 }, > + { "icm42602", INV_CHIP_ICM42602 }, > + { "icm42605", INV_CHIP_ICM42605 }, > + { "icm42686", INV_CHIP_ICM42686 }, > + { "icm42622", INV_CHIP_ICM42622 }, > + { "icm42688", INV_CHIP_ICM42688 }, > + { "icm42631", INV_CHIP_ICM42631 }, > + {} > +}; > +MODULE_DEVICE_TABLE(spi, inv_icm42600_id); > + > static const struct of_device_id inv_icm42600_of_matches[] = { > { > .compatible = "invensense,icm42600", > @@ -100,6 +116,7 @@ static struct spi_driver inv_icm42600_driver = { > .of_match_table = inv_icm42600_of_matches, > .pm = pm_ptr(&inv_icm42600_pm_ops), > }, > + .id_table = inv_icm42600_id, > .probe = inv_icm42600_probe, > }; > module_spi_driver(inv_icm42600_driver); > -- > 2.25.1 ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <SI6PR01MB63197238674C8895885420D8F59E2@SI6PR01MB6319.apcprd01.prod.exchangelabs.com>]
* Re: 回复: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table [not found] ` <SI6PR01MB63197238674C8895885420D8F59E2@SI6PR01MB6319.apcprd01.prod.exchangelabs.com> @ 2024-09-08 10:51 ` Jonathan Cameron 2024-09-09 6:43 ` 回复: " jason liu 0 siblings, 1 reply; 14+ messages in thread From: Jonathan Cameron @ 2024-09-08 10:51 UTC (permalink / raw) To: jason liu Cc: Jean-Baptiste Maneyrol, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org On Fri, 6 Sep 2024 05:02:59 +0000 jason liu <jasonliu10041728@gmail.com> wrote: > Hello, > > I'm glad this patch could help. And I would like to know, how will the patch to be handled moving forward? > It is queued up on the IIO tree. Given timing it's queued for 6.13. Note that for now that is only pushed out as testing because I will be rebasing the IIO togreg branch on 6.12-rc1. One that is done it will appear in linux-next. It should go upstream and appear in char-misc/char-misc-next in about 6 weeks. After that Greg KH will send a pull request during the 6.13 merge window in about 12 weeks time and it will then hopefully get merged into Linus' tree before 6.13-rc1 I haven't treated this as a fix because it was never there, but it may make sense to request a backport to stable after it is upstream. Thanks, Jonathan > Thanks. > > ________________________________ > From: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> > Sent: Thursday, September 5, 2024 5:25 PM > To: jason liu <jasonliu10041728@gmail.com> > Cc: jic23@kernel.org <jic23@kernel.org>; lars@metafoo.de <lars@metafoo.de>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org> > Subject: Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table > > Hello, > > looks good for me now, thanks for the patch. > > Acked-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com> > > Thanks, > JB > > ________________________________________ > From: jason liu <jasonliu10041728@gmail.com> > Sent: Wednesday, September 4, 2024 11:00 > To: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> > Cc: jic23@kernel.org <jic23@kernel.org>; lars@metafoo.de <lars@metafoo.de>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org> > Subject: Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table > > This Message Is From an Untrusted Sender > You have not previously corresponded with this sender. > > Hello, does patch v3 meet the requirements? > > BR. > > Jason Liu <jasonliu10041728@gmail.com> 于2024年9月2日周一 19:31写道: > Add the id_table of inv_icm42600, so the device can probe correctly. > > Signed-off-by: Jason Liu <jasonliu10041728@gmail.com> > --- > V1->V2: fix up the formatting as requested > --- > V2->V3: add icm42686 (INV_ICM_42686) and icm42688 (INV_ICM_42688) > --- > drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 17 +++++++++++++++++ > drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 17 +++++++++++++++++ > 2 files changed, 34 insertions(+) > > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > index ebb31b385881..9e65fef04c39 100644 > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > @@ -71,6 +71,22 @@ static int inv_icm42600_probe(struct i2c_client *client) > inv_icm42600_i2c_bus_setup); > } > > +/* > + * device id table is used to identify what device can be > + * supported by this driver > + */ > +static const struct i2c_device_id inv_icm42600_id[] = { > + { "icm42600", INV_CHIP_ICM42600 }, > + { "icm42602", INV_CHIP_ICM42602 }, > + { "icm42605", INV_CHIP_ICM42605 }, > + { "icm42686", INV_CHIP_ICM42686 }, > + { "icm42622", INV_CHIP_ICM42622 }, > + { "icm42688", INV_CHIP_ICM42688 }, > + { "icm42631", INV_CHIP_ICM42631 }, > + {} > +}; > +MODULE_DEVICE_TABLE(i2c, inv_icm42600_id); > + > static const struct of_device_id inv_icm42600_of_matches[] = { > { > .compatible = "invensense,icm42600", > @@ -104,6 +120,7 @@ static struct i2c_driver inv_icm42600_driver = { > .of_match_table = inv_icm42600_of_matches, > .pm = pm_ptr(&inv_icm42600_pm_ops), > }, > + .id_table = inv_icm42600_id, > .probe = inv_icm42600_probe, > }; > module_i2c_driver(inv_icm42600_driver); > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > index eae5ff7a3cc1..75441b2be174 100644 > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > @@ -67,6 +67,22 @@ static int inv_icm42600_probe(struct spi_device *spi) > inv_icm42600_spi_bus_setup); > } > > +/* > + * device id table is used to identify what device can be > + * supported by this driver > + */ > +static const struct spi_device_id inv_icm42600_id[] = { > + { "icm42600", INV_CHIP_ICM42600 }, > + { "icm42602", INV_CHIP_ICM42602 }, > + { "icm42605", INV_CHIP_ICM42605 }, > + { "icm42686", INV_CHIP_ICM42686 }, > + { "icm42622", INV_CHIP_ICM42622 }, > + { "icm42688", INV_CHIP_ICM42688 }, > + { "icm42631", INV_CHIP_ICM42631 }, > + {} > +}; > +MODULE_DEVICE_TABLE(spi, inv_icm42600_id); > + > static const struct of_device_id inv_icm42600_of_matches[] = { > { > .compatible = "invensense,icm42600", > @@ -100,6 +116,7 @@ static struct spi_driver inv_icm42600_driver = { > .of_match_table = inv_icm42600_of_matches, > .pm = pm_ptr(&inv_icm42600_pm_ops), > }, > + .id_table = inv_icm42600_id, > .probe = inv_icm42600_probe, > }; > module_spi_driver(inv_icm42600_driver); > -- > 2.25.1 ^ permalink raw reply [flat|nested] 14+ messages in thread
* 回复: 回复: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table 2024-09-08 10:51 ` 回复: " Jonathan Cameron @ 2024-09-09 6:43 ` jason liu 2024-09-09 7:35 ` Jonathan Cameron 0 siblings, 1 reply; 14+ messages in thread From: jason liu @ 2024-09-09 6:43 UTC (permalink / raw) To: Jonathan Cameron Cc: Jean-Baptiste Maneyrol, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Hi Jonathan, > Hi Jason, > I've picked this up, but the patch submission has a number of issues > you should be sure to fix in future patches. > I am sorry for the issues, and I will keep your suggestions in mind. So, do I still need to submit a new patch to fix these issues? My understanding is that since you've picked it up, there's no need for me to resubmit. Is it right? > I haven't treated this as a fix because it was never there, but > it may make sense to request a backport to stable after it is upstream. > Sorry, I didn’t quite understand what you meant. Why did you say 'it was never there'? Do you mean that this issue doesn't exist? Thanks, Jason ________________________________________ From: Jonathan Cameron <jic23@kernel.org> Sent: Sunday, September 8, 2024 6:51 PM To: jason liu Cc: Jean-Baptiste Maneyrol; lars@metafoo.de; linux-iio@vger.kernel.org; linux-kernel@vger.kernel.org Subject: Re: 回复: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table On Fri, 6 Sep 2024 05:02:59 +0000 jason liu <jasonliu10041728@gmail.com> wrote: > Hello, > > I'm glad this patch could help. And I would like to know, how will the patch to be handled moving forward? > It is queued up on the IIO tree. Given timing it's queued for 6.13. Note that for now that is only pushed out as testing because I will be rebasing the IIO togreg branch on 6.12-rc1. One that is done it will appear in linux-next. It should go upstream and appear in char-misc/char-misc-next in about 6 weeks. After that Greg KH will send a pull request during the 6.13 merge window in about 12 weeks time and it will then hopefully get merged into Linus' tree before 6.13-rc1 I haven't treated this as a fix because it was never there, but it may make sense to request a backport to stable after it is upstream. Thanks, Jonathan > Thanks. > > ________________________________ > From: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> > Sent: Thursday, September 5, 2024 5:25 PM > To: jason liu <jasonliu10041728@gmail.com> > Cc: jic23@kernel.org <jic23@kernel.org>; lars@metafoo.de <lars@metafoo.de>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org> > Subject: Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table > > Hello, > > looks good for me now, thanks for the patch. > > Acked-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com> > > Thanks, > JB > > ________________________________________ > From: jason liu <jasonliu10041728@gmail.com> > Sent: Wednesday, September 4, 2024 11:00 > To: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> > Cc: jic23@kernel.org <jic23@kernel.org>; lars@metafoo.de <lars@metafoo.de>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org> > Subject: Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table > > This Message Is From an Untrusted Sender > You have not previously corresponded with this sender. > > Hello, does patch v3 meet the requirements? > > BR. > > Jason Liu <jasonliu10041728@gmail.com> 于2024年9月2日周一 19:31写道: > Add the id_table of inv_icm42600, so the device can probe correctly. > > Signed-off-by: Jason Liu <jasonliu10041728@gmail.com> > --- > V1->V2: fix up the formatting as requested > --- > V2->V3: add icm42686 (INV_ICM_42686) and icm42688 (INV_ICM_42688) > --- > drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 17 +++++++++++++++++ > drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 17 +++++++++++++++++ > 2 files changed, 34 insertions(+) > > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > index ebb31b385881..9e65fef04c39 100644 > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > @@ -71,6 +71,22 @@ static int inv_icm42600_probe(struct i2c_client *client) > inv_icm42600_i2c_bus_setup); > } > > +/* > + * device id table is used to identify what device can be > + * supported by this driver > + */ > +static const struct i2c_device_id inv_icm42600_id[] = { > + { "icm42600", INV_CHIP_ICM42600 }, > + { "icm42602", INV_CHIP_ICM42602 }, > + { "icm42605", INV_CHIP_ICM42605 }, > + { "icm42686", INV_CHIP_ICM42686 }, > + { "icm42622", INV_CHIP_ICM42622 }, > + { "icm42688", INV_CHIP_ICM42688 }, > + { "icm42631", INV_CHIP_ICM42631 }, > + {} > +}; > +MODULE_DEVICE_TABLE(i2c, inv_icm42600_id); > + > static const struct of_device_id inv_icm42600_of_matches[] = { > { > .compatible = "invensense,icm42600", > @@ -104,6 +120,7 @@ static struct i2c_driver inv_icm42600_driver = { > .of_match_table = inv_icm42600_of_matches, > .pm = pm_ptr(&inv_icm42600_pm_ops), > }, > + .id_table = inv_icm42600_id, > .probe = inv_icm42600_probe, > }; > module_i2c_driver(inv_icm42600_driver); > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > index eae5ff7a3cc1..75441b2be174 100644 > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > @@ -67,6 +67,22 @@ static int inv_icm42600_probe(struct spi_device *spi) > inv_icm42600_spi_bus_setup); > } > > +/* > + * device id table is used to identify what device can be > + * supported by this driver > + */ > +static const struct spi_device_id inv_icm42600_id[] = { > + { "icm42600", INV_CHIP_ICM42600 }, > + { "icm42602", INV_CHIP_ICM42602 }, > + { "icm42605", INV_CHIP_ICM42605 }, > + { "icm42686", INV_CHIP_ICM42686 }, > + { "icm42622", INV_CHIP_ICM42622 }, > + { "icm42688", INV_CHIP_ICM42688 }, > + { "icm42631", INV_CHIP_ICM42631 }, > + {} > +}; > +MODULE_DEVICE_TABLE(spi, inv_icm42600_id); > + > static const struct of_device_id inv_icm42600_of_matches[] = { > { > .compatible = "invensense,icm42600", > @@ -100,6 +116,7 @@ static struct spi_driver inv_icm42600_driver = { > .of_match_table = inv_icm42600_of_matches, > .pm = pm_ptr(&inv_icm42600_pm_ops), > }, > + .id_table = inv_icm42600_id, > .probe = inv_icm42600_probe, > }; > module_spi_driver(inv_icm42600_driver); > -- > 2.25.1 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: 回复: 回复: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table 2024-09-09 6:43 ` 回复: " jason liu @ 2024-09-09 7:35 ` Jonathan Cameron 2024-09-09 7:39 ` 回复: " jason liu 0 siblings, 1 reply; 14+ messages in thread From: Jonathan Cameron @ 2024-09-09 7:35 UTC (permalink / raw) To: jason liu Cc: Jean-Baptiste Maneyrol, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org On Mon, 9 Sep 2024 06:43:47 +0000 jason liu <jasonliu10041728@gmail.com> wrote: > Hi Jonathan, > > > Hi Jason, > > > I've picked this up, but the patch submission has a number of issues > > you should be sure to fix in future patches. > > > I am sorry for the issues, and I will keep your suggestions in mind. > So, do I still need to submit a new patch to fix these issues? No need,. > My understanding is that since you've picked it up, there's no need for me to resubmit. > Is it right? Yes that's right. > > > I haven't treated this as a fix because it was never there, but > > it may make sense to request a backport to stable after it is upstream. > > > Sorry, I didn’t quite understand what you meant. > Why did you say 'it was never there'? Do you mean that this issue doesn't exist? The autoprobing never worked, hence this is an improvement not a regression. As such I've not rushed it in as a fix, but instead it can take a slower path upstream. Jonathan > > Thanks, > > Jason > > ________________________________________ > From: Jonathan Cameron <jic23@kernel.org> > Sent: Sunday, September 8, 2024 6:51 PM > To: jason liu > Cc: Jean-Baptiste Maneyrol; lars@metafoo.de; linux-iio@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: 回复: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table > > On Fri, 6 Sep 2024 05:02:59 +0000 > jason liu <jasonliu10041728@gmail.com> wrote: > > > Hello, > > > > I'm glad this patch could help. And I would like to know, how will the patch to be handled moving forward? > > > It is queued up on the IIO tree. Given timing it's queued for 6.13. > Note that for now that is only pushed out as testing because I will > be rebasing the IIO togreg branch on 6.12-rc1. > One that is done it will appear in linux-next. > > It should go upstream and appear in char-misc/char-misc-next > in about 6 weeks. After that Greg KH will send a pull request during > the 6.13 merge window in about 12 weeks time and it will then hopefully > get merged into Linus' tree before 6.13-rc1 > > I haven't treated this as a fix because it was never there, but > it may make sense to request a backport to stable after it is upstream. > > Thanks, > > Jonathan > > > Thanks. > > > > ________________________________ > > From: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> > > Sent: Thursday, September 5, 2024 5:25 PM > > To: jason liu <jasonliu10041728@gmail.com> > > Cc: jic23@kernel.org <jic23@kernel.org>; lars@metafoo.de <lars@metafoo.de>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org> > > Subject: Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table > > > > Hello, > > > > looks good for me now, thanks for the patch. > > > > Acked-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com> > > > > Thanks, > > JB > > > > ________________________________________ > > From: jason liu <jasonliu10041728@gmail.com> > > Sent: Wednesday, September 4, 2024 11:00 > > To: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> > > Cc: jic23@kernel.org <jic23@kernel.org>; lars@metafoo.de <lars@metafoo.de>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org> > > Subject: Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table > > > > This Message Is From an Untrusted Sender > > You have not previously corresponded with this sender. > > > > Hello, does patch v3 meet the requirements? > > > > BR. > > > > Jason Liu <jasonliu10041728@gmail.com> 于2024年9月2日周一 19:31写道: > > Add the id_table of inv_icm42600, so the device can probe correctly. > > > > Signed-off-by: Jason Liu <jasonliu10041728@gmail.com> > > --- > > V1->V2: fix up the formatting as requested > > --- > > V2->V3: add icm42686 (INV_ICM_42686) and icm42688 (INV_ICM_42688) > > --- > > drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 17 +++++++++++++++++ > > drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 17 +++++++++++++++++ > > 2 files changed, 34 insertions(+) > > > > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > > index ebb31b385881..9e65fef04c39 100644 > > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > > @@ -71,6 +71,22 @@ static int inv_icm42600_probe(struct i2c_client *client) > > inv_icm42600_i2c_bus_setup); > > } > > > > +/* > > + * device id table is used to identify what device can be > > + * supported by this driver > > + */ > > +static const struct i2c_device_id inv_icm42600_id[] = { > > + { "icm42600", INV_CHIP_ICM42600 }, > > + { "icm42602", INV_CHIP_ICM42602 }, > > + { "icm42605", INV_CHIP_ICM42605 }, > > + { "icm42686", INV_CHIP_ICM42686 }, > > + { "icm42622", INV_CHIP_ICM42622 }, > > + { "icm42688", INV_CHIP_ICM42688 }, > > + { "icm42631", INV_CHIP_ICM42631 }, > > + {} > > +}; > > +MODULE_DEVICE_TABLE(i2c, inv_icm42600_id); > > + > > static const struct of_device_id inv_icm42600_of_matches[] = { > > { > > .compatible = "invensense,icm42600", > > @@ -104,6 +120,7 @@ static struct i2c_driver inv_icm42600_driver = { > > .of_match_table = inv_icm42600_of_matches, > > .pm = pm_ptr(&inv_icm42600_pm_ops), > > }, > > + .id_table = inv_icm42600_id, > > .probe = inv_icm42600_probe, > > }; > > module_i2c_driver(inv_icm42600_driver); > > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > > index eae5ff7a3cc1..75441b2be174 100644 > > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > > @@ -67,6 +67,22 @@ static int inv_icm42600_probe(struct spi_device *spi) > > inv_icm42600_spi_bus_setup); > > } > > > > +/* > > + * device id table is used to identify what device can be > > + * supported by this driver > > + */ > > +static const struct spi_device_id inv_icm42600_id[] = { > > + { "icm42600", INV_CHIP_ICM42600 }, > > + { "icm42602", INV_CHIP_ICM42602 }, > > + { "icm42605", INV_CHIP_ICM42605 }, > > + { "icm42686", INV_CHIP_ICM42686 }, > > + { "icm42622", INV_CHIP_ICM42622 }, > > + { "icm42688", INV_CHIP_ICM42688 }, > > + { "icm42631", INV_CHIP_ICM42631 }, > > + {} > > +}; > > +MODULE_DEVICE_TABLE(spi, inv_icm42600_id); > > + > > static const struct of_device_id inv_icm42600_of_matches[] = { > > { > > .compatible = "invensense,icm42600", > > @@ -100,6 +116,7 @@ static struct spi_driver inv_icm42600_driver = { > > .of_match_table = inv_icm42600_of_matches, > > .pm = pm_ptr(&inv_icm42600_pm_ops), > > }, > > + .id_table = inv_icm42600_id, > > .probe = inv_icm42600_probe, > > }; > > module_spi_driver(inv_icm42600_driver); > > -- > > 2.25.1 > ^ permalink raw reply [flat|nested] 14+ messages in thread
* 回复: 回复: 回复: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table 2024-09-09 7:35 ` Jonathan Cameron @ 2024-09-09 7:39 ` jason liu 0 siblings, 0 replies; 14+ messages in thread From: jason liu @ 2024-09-09 7:39 UTC (permalink / raw) To: Jonathan Cameron Cc: Jean-Baptiste Maneyrol, lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org > The autoprobing never worked, hence this is an improvement not a regression. > As such I've not rushed it in as a fix, but instead it can take a slower > path upstream. Alright, I understand. Thank you for your explanation. I will definitely do better the next time I submit a patch. Thank you for your correction. Thanks, Jason ________________________________________ From: Jonathan Cameron <jic23@kernel.org> Sent: Monday, September 9, 2024 3:35 PM To: jason liu Cc: Jean-Baptiste Maneyrol; lars@metafoo.de; linux-iio@vger.kernel.org; linux-kernel@vger.kernel.org Subject: Re: 回复: 回复: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table On Mon, 9 Sep 2024 06:43:47 +0000 jason liu <jasonliu10041728@gmail.com> wrote: > Hi Jonathan, > > > Hi Jason, > > > I've picked this up, but the patch submission has a number of issues > > you should be sure to fix in future patches. > > > I am sorry for the issues, and I will keep your suggestions in mind. > So, do I still need to submit a new patch to fix these issues? No need,. > My understanding is that since you've picked it up, there's no need for me to resubmit. > Is it right? Yes that's right. > > > I haven't treated this as a fix because it was never there, but > > it may make sense to request a backport to stable after it is upstream. > > > Sorry, I didn’t quite understand what you meant. > Why did you say 'it was never there'? Do you mean that this issue doesn't exist? The autoprobing never worked, hence this is an improvement not a regression. As such I've not rushed it in as a fix, but instead it can take a slower path upstream. Jonathan > > Thanks, > > Jason > > ________________________________________ > From: Jonathan Cameron <jic23@kernel.org> > Sent: Sunday, September 8, 2024 6:51 PM > To: jason liu > Cc: Jean-Baptiste Maneyrol; lars@metafoo.de; linux-iio@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: 回复: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table > > On Fri, 6 Sep 2024 05:02:59 +0000 > jason liu <jasonliu10041728@gmail.com> wrote: > > > Hello, > > > > I'm glad this patch could help. And I would like to know, how will the patch to be handled moving forward? > > > It is queued up on the IIO tree. Given timing it's queued for 6.13. > Note that for now that is only pushed out as testing because I will > be rebasing the IIO togreg branch on 6.12-rc1. > One that is done it will appear in linux-next. > > It should go upstream and appear in char-misc/char-misc-next > in about 6 weeks. After that Greg KH will send a pull request during > the 6.13 merge window in about 12 weeks time and it will then hopefully > get merged into Linus' tree before 6.13-rc1 > > I haven't treated this as a fix because it was never there, but > it may make sense to request a backport to stable after it is upstream. > > Thanks, > > Jonathan > > > Thanks. > > > > ________________________________ > > From: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> > > Sent: Thursday, September 5, 2024 5:25 PM > > To: jason liu <jasonliu10041728@gmail.com> > > Cc: jic23@kernel.org <jic23@kernel.org>; lars@metafoo.de <lars@metafoo.de>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org> > > Subject: Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table > > > > Hello, > > > > looks good for me now, thanks for the patch. > > > > Acked-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com> > > > > Thanks, > > JB > > > > ________________________________________ > > From: jason liu <jasonliu10041728@gmail.com> > > Sent: Wednesday, September 4, 2024 11:00 > > To: Jean-Baptiste Maneyrol <Jean-Baptiste.Maneyrol@tdk.com> > > Cc: jic23@kernel.org <jic23@kernel.org>; lars@metafoo.de <lars@metafoo.de>; linux-iio@vger.kernel.org <linux-iio@vger.kernel.org>; linux-kernel@vger.kernel.org <linux-kernel@vger.kernel.org> > > Subject: Re: [PATCH] iio/inv_icm42600: add inv_icm42600 id_table > > > > This Message Is From an Untrusted Sender > > You have not previously corresponded with this sender. > > > > Hello, does patch v3 meet the requirements? > > > > BR. > > > > Jason Liu <jasonliu10041728@gmail.com> 于2024年9月2日周一 19:31写道: > > Add the id_table of inv_icm42600, so the device can probe correctly. > > > > Signed-off-by: Jason Liu <jasonliu10041728@gmail.com> > > --- > > V1->V2: fix up the formatting as requested > > --- > > V2->V3: add icm42686 (INV_ICM_42686) and icm42688 (INV_ICM_42688) > > --- > > drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 17 +++++++++++++++++ > > drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 17 +++++++++++++++++ > > 2 files changed, 34 insertions(+) > > > > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > > index ebb31b385881..9e65fef04c39 100644 > > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c > > @@ -71,6 +71,22 @@ static int inv_icm42600_probe(struct i2c_client *client) > > inv_icm42600_i2c_bus_setup); > > } > > > > +/* > > + * device id table is used to identify what device can be > > + * supported by this driver > > + */ > > +static const struct i2c_device_id inv_icm42600_id[] = { > > + { "icm42600", INV_CHIP_ICM42600 }, > > + { "icm42602", INV_CHIP_ICM42602 }, > > + { "icm42605", INV_CHIP_ICM42605 }, > > + { "icm42686", INV_CHIP_ICM42686 }, > > + { "icm42622", INV_CHIP_ICM42622 }, > > + { "icm42688", INV_CHIP_ICM42688 }, > > + { "icm42631", INV_CHIP_ICM42631 }, > > + {} > > +}; > > +MODULE_DEVICE_TABLE(i2c, inv_icm42600_id); > > + > > static const struct of_device_id inv_icm42600_of_matches[] = { > > { > > .compatible = "invensense,icm42600", > > @@ -104,6 +120,7 @@ static struct i2c_driver inv_icm42600_driver = { > > .of_match_table = inv_icm42600_of_matches, > > .pm = pm_ptr(&inv_icm42600_pm_ops), > > }, > > + .id_table = inv_icm42600_id, > > .probe = inv_icm42600_probe, > > }; > > module_i2c_driver(inv_icm42600_driver); > > diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > > index eae5ff7a3cc1..75441b2be174 100644 > > --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > > +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c > > @@ -67,6 +67,22 @@ static int inv_icm42600_probe(struct spi_device *spi) > > inv_icm42600_spi_bus_setup); > > } > > > > +/* > > + * device id table is used to identify what device can be > > + * supported by this driver > > + */ > > +static const struct spi_device_id inv_icm42600_id[] = { > > + { "icm42600", INV_CHIP_ICM42600 }, > > + { "icm42602", INV_CHIP_ICM42602 }, > > + { "icm42605", INV_CHIP_ICM42605 }, > > + { "icm42686", INV_CHIP_ICM42686 }, > > + { "icm42622", INV_CHIP_ICM42622 }, > > + { "icm42688", INV_CHIP_ICM42688 }, > > + { "icm42631", INV_CHIP_ICM42631 }, > > + {} > > +}; > > +MODULE_DEVICE_TABLE(spi, inv_icm42600_id); > > + > > static const struct of_device_id inv_icm42600_of_matches[] = { > > { > > .compatible = "invensense,icm42600", > > @@ -100,6 +116,7 @@ static struct spi_driver inv_icm42600_driver = { > > .of_match_table = inv_icm42600_of_matches, > > .pm = pm_ptr(&inv_icm42600_pm_ops), > > }, > > + .id_table = inv_icm42600_id, > > .probe = inv_icm42600_probe, > > }; > > module_spi_driver(inv_icm42600_driver); > > -- > > 2.25.1 > ^ permalink raw reply [flat|nested] 14+ messages in thread
[parent not found: <jic23@kernel.org>]
* [PATCH] iio/inv_icm42600: add inv_icm42600 id_table [not found] <jic23@kernel.org> @ 2024-09-02 2:58 ` Jason Liu 0 siblings, 0 replies; 14+ messages in thread From: Jason Liu @ 2024-09-02 2:58 UTC (permalink / raw) To: jmaneyrol; +Cc: lars, linux-iio, linux-kernel, Jason Liu Add the id_table of inv_icm42600, so the device can probe correctly. Signed-off-by: Jason Liu <jasonliu10041728@gmail.com> --- V1->V2: fix up the formatting as requested --- drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c | 15 +++++++++++++++ drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c | 15 +++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c index ebb31b385881..4e00eb130e9f 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_i2c.c @@ -71,6 +71,20 @@ static int inv_icm42600_probe(struct i2c_client *client) inv_icm42600_i2c_bus_setup); } +/* + * device id table is used to identify what device can be + * supported by this driver + */ +static const struct i2c_device_id inv_icm42600_id[] = { + { "icm42600", INV_CHIP_ICM42600 }, + { "icm42602", INV_CHIP_ICM42602 }, + { "icm42605", INV_CHIP_ICM42605 }, + { "icm42622", INV_CHIP_ICM42622 }, + { "icm42631", INV_CHIP_ICM42631 }, + {} +}; +MODULE_DEVICE_TABLE(i2c, inv_icm42600_id); + static const struct of_device_id inv_icm42600_of_matches[] = { { .compatible = "invensense,icm42600", @@ -104,6 +118,7 @@ static struct i2c_driver inv_icm42600_driver = { .of_match_table = inv_icm42600_of_matches, .pm = pm_ptr(&inv_icm42600_pm_ops), }, + .id_table = inv_icm42600_id, .probe = inv_icm42600_probe, }; module_i2c_driver(inv_icm42600_driver); diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c index eae5ff7a3cc1..9efbe9b7674d 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_spi.c @@ -67,6 +67,20 @@ static int inv_icm42600_probe(struct spi_device *spi) inv_icm42600_spi_bus_setup); } +/* + * device id table is used to identify what device can be + * supported by this driver + */ +static const struct spi_device_id inv_icm42600_id[] = { + { "icm42600", INV_CHIP_ICM42600 }, + { "icm42602", INV_CHIP_ICM42602 }, + { "icm42605", INV_CHIP_ICM42605 }, + { "icm42622", INV_CHIP_ICM42622 }, + { "icm42631", INV_CHIP_ICM42631 }, + {} +}; +MODULE_DEVICE_TABLE(spi, inv_icm42600_id); + static const struct of_device_id inv_icm42600_of_matches[] = { { .compatible = "invensense,icm42600", @@ -100,6 +114,7 @@ static struct spi_driver inv_icm42600_driver = { .of_match_table = inv_icm42600_of_matches, .pm = pm_ptr(&inv_icm42600_pm_ops), }, + .id_table = inv_icm42600_id, .probe = inv_icm42600_probe, }; module_spi_driver(inv_icm42600_driver); -- 2.25.1 ^ permalink raw reply related [flat|nested] 14+ messages in thread
end of thread, other threads:[~2024-09-09 7:39 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-25 6:39 [PATCH] iio/inv_icm42600: add inv_icm42600 id_table Jason Liu
2024-08-26 8:22 ` Jean-Baptiste Maneyrol
2024-08-26 10:20 ` Jonathan Cameron
[not found] ` <CAJci1vCztZAnmHrVn=4b9hnRmMCQE=6R7uQnznPQ0FSpFHQK5w@mail.gmail.com>
2024-09-01 14:23 ` Jonathan Cameron
2024-09-02 3:11 ` Jason Liu
2024-09-02 9:58 ` Jean-Baptiste Maneyrol
2024-09-02 11:31 ` Jason Liu
[not found] ` <CAJci1vC9pvdqEpA8sk+uB5jJGn_DKUruXFfY6tbG9mO07YxgHQ@mail.gmail.com>
2024-09-05 9:25 ` Jean-Baptiste Maneyrol
2024-09-07 13:48 ` Jonathan Cameron
[not found] ` <SI6PR01MB63197238674C8895885420D8F59E2@SI6PR01MB6319.apcprd01.prod.exchangelabs.com>
2024-09-08 10:51 ` 回复: " Jonathan Cameron
2024-09-09 6:43 ` 回复: " jason liu
2024-09-09 7:35 ` Jonathan Cameron
2024-09-09 7:39 ` 回复: " jason liu
[not found] <jic23@kernel.org>
2024-09-02 2:58 ` Jason Liu
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox