linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/5] HID: mcp2221: iio support and device resource management
@ 2022-09-27  2:50 Matt Ranostay
  2022-09-27  2:50 ` [PATCH v5 1/5] i2c: muxes: ltc4306: fix future recursive dependencies Matt Ranostay
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Matt Ranostay @ 2022-09-27  2:50 UTC (permalink / raw)
  To: jic23, gupt21, benjamin.tissoires, jikos
  Cc: linux-input, linux-iio, linux-i2c, Matt Ranostay

This patchset is primarily to enable iio support for the MCP2221 HID driver,
but requires several Kconfig changes and device resource management.

First attempt of this patchset is referenced here:

Link: https://lore.kernel.org/all/20220729154723.99947-1-matt.ranostay@xxxxxxxxxxxx/

Changes from v1:
* Fixing various Kconfig recursive dependencies that appear with 'imply IIO'
* Switch hid-mcp2221 driver to device managed resources for i2c support
* Reworking patchset per advice on lore.kernel.org link above

Changes from v2:
* add linux-iio list to CC

Changes from v3:
* replace .remove() tasks with devm_add_action_or_reset() in .probe()
* reschedule SRAM configuration read on failures
* add IIO_CHAN_INFO_SCALE values for ADC + DAC based on reference voltage

Changes from v4:
* add .remove function with no operation to avoid hid_hw_stop() being called
  twice due to new devm functions
* add retries limit to five for reading SRAM configuration data
* update 'io: adc: stx104: fix future recursive dependencies' to new Kconfig
  location for STX104 driver on linux-next pending-fixes branch

Matt Ranostay (5):
  i2c: muxes: ltc4306: fix future recursive dependencies
  iio: adc: stx104: fix future recursive dependencies
  iio: dac: fix future recursive dependencies
  HID: mcp2221: switch i2c registration to devm functions
  HID: mcp2221: add ADC/DAC support via iio subsystem

 drivers/hid/Kconfig       |   1 +
 drivers/hid/hid-mcp2221.c | 309 ++++++++++++++++++++++++++++++++++----
 drivers/i2c/muxes/Kconfig |   2 +-
 drivers/iio/adc/Kconfig   |   3 +-
 drivers/iio/dac/Kconfig   |   6 +-
 5 files changed, 288 insertions(+), 33 deletions(-)

-- 
2.37.2


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

end of thread, other threads:[~2022-09-29 13:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-27  2:50 [PATCH v5 0/5] HID: mcp2221: iio support and device resource management Matt Ranostay
2022-09-27  2:50 ` [PATCH v5 1/5] i2c: muxes: ltc4306: fix future recursive dependencies Matt Ranostay
2022-09-29 13:48   ` Peter Rosin
2022-09-27  2:50 ` [PATCH v5 2/5] iio: adc: stx104: " Matt Ranostay
2022-09-27  2:50 ` [PATCH v5 3/5] iio: dac: " Matt Ranostay
2022-09-27  2:50 ` [PATCH v5 4/5] HID: mcp2221: switch i2c registration to devm functions Matt Ranostay
2022-09-27  2:50 ` [PATCH v5 5/5] HID: mcp2221: add ADC/DAC support via iio subsystem Matt Ranostay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).