All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH 5/8] gpio: max7360: Add MAX7360 gpio support
@ 2024-12-22 22:12 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2024-12-22 22:12 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp, Dan Carpenter

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20241219-mdb-max7360-support-v1-5-8e8317584121@bootlin.com>
References: <20241219-mdb-max7360-support-v1-5-8e8317584121@bootlin.com>
TO: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>
TO: Lee Jones <lee@kernel.org>
TO: Rob Herring <robh@kernel.org>
TO: Krzysztof Kozlowski <krzk@kernel.org>
TO: Conor Dooley <conor+dt@kernel.org>
TO: Kamel Bouhara <kamel.bouhara@bootlin.com>
TO: Linus Walleij <linus.walleij@linaro.org>
TO: Bartosz Golaszewski <brgl@bgdev.pl>
TO: Dmitry Torokhov <dmitry.torokhov@gmail.com>
TO: "Uwe Kleine-König" <ukleinek@kernel.org>
CC: devicetree@vger.kernel.org
CC: linux-kernel@vger.kernel.org
CC: linux-gpio@vger.kernel.org
CC: linux-input@vger.kernel.org
CC: linux-pwm@vger.kernel.org
CC: "Grégory Clement" <gregory.clement@bootlin.com>
CC: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
CC: "Mathieu Dubois-Briand" <mathieu.dubois-briand@bootlin.com>

Hi Mathieu,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8]

url:    https://github.com/intel-lab-lkp/linux/commits/Mathieu-Dubois-Briand/dt-bindings-Add-MAX7360-MFD-device/20241220-002541
base:   78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8
patch link:    https://lore.kernel.org/r/20241219-mdb-max7360-support-v1-5-8e8317584121%40bootlin.com
patch subject: [PATCH 5/8] gpio: max7360: Add MAX7360 gpio support
:::::: branch date: 3 days ago
:::::: commit date: 3 days ago
config: loongarch-randconfig-r071-20241222 (https://download.01.org/0day-ci/archive/20241223/202412230526.xbsyoRYK-lkp@intel.com/config)
compiler: loongarch64-linux-gcc (GCC) 14.2.0

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202412230526.xbsyoRYK-lkp@intel.com/

smatch warnings:
drivers/gpio/gpio-max7360.c:56 max7360_gpio_set_value() error: uninitialized symbol 'val'.
drivers/gpio/gpio-max7360.c:388 max7360_gpio_probe() warn: inconsistent indenting

vim +/val +56 drivers/gpio/gpio-max7360.c

19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  37  
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  38  static void max7360_gpio_set_value(struct gpio_chip *gc,
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  39  				   unsigned int pin, int state)
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  40  {
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  41  	struct max7360_gpio *max7360_gpio = gpiochip_get_data(gc);
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  42  	unsigned int val;
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  43  	int ret;
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  44  
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  45  	if (max7360_gpio->gpio_function == MAX7360_GPIO_COL) {
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  46  		int off = MAX7360_MAX_GPIO - (gc->ngpio - pin);
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  47  
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  48  		ret = regmap_write_bits(max7360_gpio->regmap, MAX7360_REG_PORTS,
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  49  					BIT(off), state ? BIT(off) : 0);
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  50  	} else {
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  51  		ret = regmap_write(max7360_gpio->regmap,
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  52  				   MAX7360_REG_PWMBASE + pin, state ? 0xFF : 0);
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  53  	}
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  54  
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  55  	if (ret)
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19 @56  		dev_err(max7360_gpio->dev,
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  57  			"failed to set value %d on gpio-%d", val, pin);
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  58  }
19f89f1d3446db Mathieu Dubois-Briand 2024-12-19  59  

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [PATCH 0/8] Add support for MAX7360 multifunction device
@ 2024-12-19 16:21 Mathieu Dubois-Briand
  2024-12-19 16:21 ` [PATCH 5/8] gpio: max7360: Add MAX7360 gpio support Mathieu Dubois-Briand
  0 siblings, 1 reply; 4+ messages in thread
From: Mathieu Dubois-Briand @ 2024-12-19 16:21 UTC (permalink / raw)
  To: Lee Jones, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Kamel Bouhara, Linus Walleij, Bartosz Golaszewski,
	Dmitry Torokhov, Uwe Kleine-König
  Cc: devicetree, linux-kernel, linux-gpio, linux-input, linux-pwm,
	Grégory Clement, Thomas Petazzoni, Mathieu Dubois-Briand

This series implements a set of drivers allowing to support the Maxim
Integrated MAX7360 device.

The MAX7360 is an I2C key-switch and led controller, with following
functionalities:
- Keypad controller for a key matrix of up to 8 rows and 8 columns.
- Rotary encoder support, for a single rotary encoder.
- Up to 8 PWM outputs.
- Up to 8 GPIOs with support for interrupts and 6 GPOs.

Chipset pins are shared between all functionalities, so all cannot be
used at the same time.

Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
---
Kamel Bouhara (2):
      mfd: Add max7360 support
      pwm: max7360: Add MAX7360 PWM support

Mathieu Dubois-Briand (6):
      dt-bindings: Add MAX7360 MFD device
      dt-bindings: Add MAX7360 subdevices
      gpio: max7360: Add MAX7360 gpio support
      input: keyboard: Add support for MAX7360 keypad
      input: misc: Add support for MAX7360 rotary
      MAINTAINERS: Add entry on MAX7360 driver

 .../devicetree/bindings/gpio/max7360-gpio.yaml     |  96 +++++
 .../devicetree/bindings/input/max7360-keypad.yaml  |  67 +++
 .../devicetree/bindings/input/max7360-rotary.yaml  |  52 +++
 Documentation/devicetree/bindings/mfd/max7360.yaml |  56 +++
 .../devicetree/bindings/pwm/max7360-pwm.yaml       |  35 ++
 MAINTAINERS                                        |  12 +
 drivers/gpio/Kconfig                               |  11 +
 drivers/gpio/Makefile                              |   1 +
 drivers/gpio/gpio-max7360.c                        | 453 +++++++++++++++++++++
 drivers/input/keyboard/Kconfig                     |  12 +
 drivers/input/keyboard/Makefile                    |   1 +
 drivers/input/keyboard/max7360-keypad.c            | 297 ++++++++++++++
 drivers/input/misc/Kconfig                         |  11 +
 drivers/input/misc/Makefile                        |   1 +
 drivers/input/misc/max7360-rotary.c                | 194 +++++++++
 drivers/mfd/Kconfig                                |  12 +
 drivers/mfd/Makefile                               |   1 +
 drivers/mfd/max7360.c                              | 302 ++++++++++++++
 drivers/pwm/Kconfig                                |  11 +
 drivers/pwm/Makefile                               |   1 +
 drivers/pwm/pwm-max7360.c                          | 173 ++++++++
 include/linux/mfd/max7360.h                        | 103 +++++
 22 files changed, 1902 insertions(+)
---
base-commit: 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8
change-id: 20241219-mdb-max7360-support-223a8ce45ba3

Best regards,
-- 
Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-12-22 22:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-22 22:12 [PATCH 5/8] gpio: max7360: Add MAX7360 gpio support kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2024-12-19 16:21 [PATCH 0/8] Add support for MAX7360 multifunction device Mathieu Dubois-Briand
2024-12-19 16:21 ` [PATCH 5/8] gpio: max7360: Add MAX7360 gpio support Mathieu Dubois-Briand
2024-12-20 15:54   ` kernel test robot
2024-12-20 16:39   ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.