Message ID | 20210316144819.4130622-1-ch@denx.de |
---|---|
State | Superseded |
Headers | show |
Series | [v4] rtc: rx6110: add ACPI bindings to I2C | expand |
On Tue, Mar 16, 2021 at 03:48:18PM +0100, Claudius Heine wrote: > From: Johannes Hahn <johannes-hahn@siemens.com> > > This allows the RX6110 driver to be automatically assigned to the right > device on the I2C bus. You missed given tag, when somebody sends you one, it's usually your responsibility to pick it up. Hint: install b4 tool (likely in your distro, at least Debian, Arch Linux have it) and run it against message ID of the version in question. It will gather all tags. For example, for this case, run % b4 am 20210316144819.4130622-1-ch@denx.de It will download mailbox suitable for `git am ...` you will read on the screen. Also, when send a new version, don't attach it to the old thread. It will confuse people and maybe even tools (i.o.w. don't supply message ID to be put to In-Reply-To header). So, repeat again my tag and see one fix to be performed below. Reviewed-by: From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> > Signed-off-by: Johannes Hahn <johannes-hahn@siemens.com> > Co-developed-by: Claudius Heine <ch@denx.de> > Signed-off-by: Claudius Heine <ch@denx.de> > --- > drivers/rtc/rtc-rx6110.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/rtc/rtc-rx6110.c b/drivers/rtc/rtc-rx6110.c > index 79161d4c6ce4..2a06953c0a84 100644 > --- a/drivers/rtc/rtc-rx6110.c > +++ b/drivers/rtc/rtc-rx6110.c > @@ -447,6 +447,12 @@ static int rx6110_i2c_probe(struct i2c_client *client, > return rx6110_probe(rx6110, &client->dev); > } > > +static const struct acpi_device_id rx6110_i2c_acpi_match[] = { > + { "SECC6110" }, > + { } > +}; > +MODULE_DEVICE_TABLE(acpi, rx6110_i2c_acpi_match); > + > static const struct i2c_device_id rx6110_i2c_id[] = { > { "rx6110", 0 }, > { } > @@ -456,6 +462,7 @@ MODULE_DEVICE_TABLE(i2c, rx6110_i2c_id); > static struct i2c_driver rx6110_i2c_driver = { > .driver = { > .name = RX6110_DRIVER_NAME, > + .acpi_match_table = ACPI_PTR(rx6110_i2c_acpi_match), Since you drop ifdeffery above, you have to drop ACPI_PTR() (besides that ACPI_PTR() requires acpi.h to be included). > }, > .probe = rx6110_i2c_probe, > .id_table = rx6110_i2c_id, > -- > 2.30.1 >
Hi Claudius, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on abelloni/rtc-next] [also build test WARNING on v5.12-rc3 next-20210316] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Claudius-Heine/rtc-rx6110-add-ACPI-bindings-to-I2C/20210316-225026 base: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next config: powerpc-randconfig-r006-20210316 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 50c7504a93fdb90c26870db8c8ea7add895c7725) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install powerpc cross compiling tool for clang build # apt-get install binutils-powerpc-linux-gnu # https://github.com/0day-ci/linux/commit/ec344b93b1b5f4c2c77ce68b7bde7ec380e356a8 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Claudius-Heine/rtc-rx6110-add-ACPI-bindings-to-I2C/20210316-225026 git checkout ec344b93b1b5f4c2c77ce68b7bde7ec380e356a8 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com> All warnings (new ones prefixed by >>): >> drivers/rtc/rtc-rx6110.c:450:36: warning: unused variable 'rx6110_i2c_acpi_match' [-Wunused-const-variable] static const struct acpi_device_id rx6110_i2c_acpi_match[] = { ^ 1 warning generated. vim +/rx6110_i2c_acpi_match +450 drivers/rtc/rtc-rx6110.c 449 > 450 static const struct acpi_device_id rx6110_i2c_acpi_match[] = { 451 { "SECC6110" }, 452 { } 453 }; 454 MODULE_DEVICE_TABLE(acpi, rx6110_i2c_acpi_match); 455 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
On Wed, Mar 17, 2021 at 03:04:36AM +0800, kernel test robot wrote: > Hi Claudius, > > Thank you for the patch! Perhaps something to improve: > > [auto build test WARNING on abelloni/rtc-next] > [also build test WARNING on v5.12-rc3 next-20210316] > [If your patch is applied to the wrong git tree, kindly drop us a note. > And when submitting patch, we suggest to use '--base' as documented in > https://git-scm.com/docs/git-format-patch] > > url: https://github.com/0day-ci/linux/commits/Claudius-Heine/rtc-rx6110-add-ACPI-bindings-to-I2C/20210316-225026 > base: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next > config: powerpc-randconfig-r006-20210316 (attached as .config) > compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 50c7504a93fdb90c26870db8c8ea7add895c7725) > reproduce (this is a W=1 build): > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > # install powerpc cross compiling tool for clang build > # apt-get install binutils-powerpc-linux-gnu > # https://github.com/0day-ci/linux/commit/ec344b93b1b5f4c2c77ce68b7bde7ec380e356a8 > git remote add linux-review https://github.com/0day-ci/linux > git fetch --no-tags linux-review Claudius-Heine/rtc-rx6110-add-ACPI-bindings-to-I2C/20210316-225026 > git checkout ec344b93b1b5f4c2c77ce68b7bde7ec380e356a8 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot <lkp@intel.com> > > All warnings (new ones prefixed by >>): > > >> drivers/rtc/rtc-rx6110.c:450:36: warning: unused variable 'rx6110_i2c_acpi_match' [-Wunused-const-variable] > static const struct acpi_device_id rx6110_i2c_acpi_match[] = { > ^ > 1 warning generated. Precisely! This happens due to ACPI_PTR() presence. Either ACPI_PTR() _and_ ifdeffery or none of them should be in the code.
Hi Andy, On 2021-03-16 17:55, Andy Shevchenko wrote: > On Tue, Mar 16, 2021 at 03:48:18PM +0100, Claudius Heine wrote: >> From: Johannes Hahn <johannes-hahn@siemens.com> >> >> This allows the RX6110 driver to be automatically assigned to the right >> device on the I2C bus. > > You missed given tag, when somebody sends you one, it's usually your > responsibility to pick it up. Hint: install b4 tool (likely in your distro, at > least Debian, Arch Linux have it) and run it against message ID of the version > in question. It will gather all tags. For example, for this case, run > > % b4 am 20210316144819.4130622-1-ch@denx.de > > It will download mailbox suitable for `git am ...` you will read on the screen. > > Also, when send a new version, don't attach it to the old thread. It will > confuse people and maybe even tools (i.o.w. don't supply message ID to be put > to In-Reply-To header). Ok. > > So, repeat again my tag and see one fix to be performed below. > Reviewed-by: From: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Ok, will take care about this in v5. > >> Signed-off-by: Johannes Hahn <johannes-hahn@siemens.com> >> Co-developed-by: Claudius Heine <ch@denx.de> >> Signed-off-by: Claudius Heine <ch@denx.de> >> --- >> drivers/rtc/rtc-rx6110.c | 7 +++++++ >> 1 file changed, 7 insertions(+) >> >> diff --git a/drivers/rtc/rtc-rx6110.c b/drivers/rtc/rtc-rx6110.c >> index 79161d4c6ce4..2a06953c0a84 100644 >> --- a/drivers/rtc/rtc-rx6110.c >> +++ b/drivers/rtc/rtc-rx6110.c >> @@ -447,6 +447,12 @@ static int rx6110_i2c_probe(struct i2c_client *client, >> return rx6110_probe(rx6110, &client->dev); >> } >> >> +static const struct acpi_device_id rx6110_i2c_acpi_match[] = { >> + { "SECC6110" }, >> + { } >> +}; >> +MODULE_DEVICE_TABLE(acpi, rx6110_i2c_acpi_match); >> + >> static const struct i2c_device_id rx6110_i2c_id[] = { >> { "rx6110", 0 }, >> { } >> @@ -456,6 +462,7 @@ MODULE_DEVICE_TABLE(i2c, rx6110_i2c_id); >> static struct i2c_driver rx6110_i2c_driver = { >> .driver = { >> .name = RX6110_DRIVER_NAME, >> + .acpi_match_table = ACPI_PTR(rx6110_i2c_acpi_match), > > Since you drop ifdeffery above, you have to drop ACPI_PTR() (besides that > ACPI_PTR() requires acpi.h to be included). Ok, will do that as well. regards, Claudius
diff --git a/drivers/rtc/rtc-rx6110.c b/drivers/rtc/rtc-rx6110.c index 79161d4c6ce4..2a06953c0a84 100644 --- a/drivers/rtc/rtc-rx6110.c +++ b/drivers/rtc/rtc-rx6110.c @@ -447,6 +447,12 @@ static int rx6110_i2c_probe(struct i2c_client *client, return rx6110_probe(rx6110, &client->dev); } +static const struct acpi_device_id rx6110_i2c_acpi_match[] = { + { "SECC6110" }, + { } +}; +MODULE_DEVICE_TABLE(acpi, rx6110_i2c_acpi_match); + static const struct i2c_device_id rx6110_i2c_id[] = { { "rx6110", 0 }, { } @@ -456,6 +462,7 @@ MODULE_DEVICE_TABLE(i2c, rx6110_i2c_id); static struct i2c_driver rx6110_i2c_driver = { .driver = { .name = RX6110_DRIVER_NAME, + .acpi_match_table = ACPI_PTR(rx6110_i2c_acpi_match), }, .probe = rx6110_i2c_probe, .id_table = rx6110_i2c_id,