linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/3] mfd: add support for Diolan DLN-2
@ 2014-09-09 19:24 Octavian Purdila
  2014-09-09 19:24 ` [PATCH v4 1/3] mfd: add support for Diolan DLN-2 devices Octavian Purdila
                   ` (2 more replies)
  0 siblings, 3 replies; 22+ messages in thread
From: Octavian Purdila @ 2014-09-09 19:24 UTC (permalink / raw)
  To: gregkh, linus.walleij, gnurou, wsa, sameo, lee.jones
  Cc: arnd, johan, daniel.baluta, laurentiu.palcu, linux-usb,
	linux-kernel, linux-gpio, linux-i2c, Octavian Purdila

This patch series adds support for Diolan USB-I2C/GPIO Master Adapter
DLN-2. Details about device can be found here:

https://www.diolan.com/i2c/i2c_interface.html.

Changes since v3:

 * Mostly addressing latest review comments from Johan

 * MFD driver: more message size checks for responses, switched to
   using unsigned for buffer sizes and use const void * for output
   buffer for the dln2_transfer() API, more codying style cleanups,
   renamed DLN2_HANDLE_GPIO_EVENT to DLN2_HANDLE_EVENT

 * MFD driver: turns out the RX buf size was too low for certain I2C
   drivers (I was seeing request up to 257 bytes), so increase it from
   64 to 512

 * GPIO driver: revert the retry chip remove change, as there are
   still issues if the gpio if exported to sysfs; coding style
   cleanups, correctly clamp no pin numbers to 32, use devm_kzalloc
   and simplify the error path in probe, cache pin direction to save
   one transfer when reading the pin value

 * I2C driver: add an i2c port parameter in the platform data
   (although only one port seems to be supported), make frequency a
   sysfs attribute instead of a module paramter, coding style
   cleanups, use devm_kzalloc and simplify the error path in probe,
   move the I2C buffers from the stack to the dln2_i2c structure (it
   is enough as we can have only one transfer at a time on the i2c
   adapter)

Changes since v2:

 * MFD driver: fix a few obsolete comments for the DLN2 I/O API

 * GPIO driver: retry the chip remove call if -EBUSY is returned, see
   the comments in dln2_do_remove for more details; also removed a
   redundant !dln2->pdev check from dln2_irq_event - we do it in
   dln2_transfer already

 * I2C driver: add I2C_FUNC_SMBUS_I2C_BLOCK support

Changes since v1:

 * rewrite the drivers as an MFD

 * rewrite the irq part of the gpio driver to use GPIOLIB_IRQCHIP

 * cleanup the I/O interface

 * various fixes and cleanps: check received message sizes before
   parsing, error handling for usb_submit_urb, check URB status, use
   single bit manipulation functions instead of bitmap_*, move
   GFP_KERNEL URB submit away from under lock


Daniel Baluta (1):
  gpio: add support for the Diolan DLN-2 USB GPIO driver

Laurentiu Palcu (1):
  i2c: add support for Diolan DLN-2 USB-I2C adapter

Octavian Purdila (1):
  mfd: add support for Diolan DLN-2 devices

 drivers/gpio/Kconfig          |  12 +
 drivers/gpio/Makefile         |   1 +
 drivers/gpio/gpio-dln2.c      | 529 ++++++++++++++++++++++++++++++++
 drivers/i2c/busses/Kconfig    |  10 +
 drivers/i2c/busses/Makefile   |   1 +
 drivers/i2c/busses/i2c-dln2.c | 390 ++++++++++++++++++++++++
 drivers/mfd/Kconfig           |   9 +
 drivers/mfd/Makefile          |   1 +
 drivers/mfd/dln2.c            | 681 ++++++++++++++++++++++++++++++++++++++++++
 include/linux/mfd/dln2.h      |  71 +++++
 10 files changed, 1705 insertions(+)
 create mode 100644 drivers/gpio/gpio-dln2.c
 create mode 100644 drivers/i2c/busses/i2c-dln2.c
 create mode 100644 drivers/mfd/dln2.c
 create mode 100644 include/linux/mfd/dln2.h

-- 
1.9.1


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

end of thread, other threads:[~2014-09-19  7:14 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-09 19:24 [PATCH v4 0/3] mfd: add support for Diolan DLN-2 Octavian Purdila
2014-09-09 19:24 ` [PATCH v4 1/3] mfd: add support for Diolan DLN-2 devices Octavian Purdila
2014-09-16 23:21   ` Lee Jones
2014-09-17  7:25     ` Octavian Purdila
2014-09-17  7:38       ` Johan Hovold
2014-09-17 15:56       ` Lee Jones
2014-09-17  9:10   ` Johan Hovold
2014-09-17 15:46     ` Lee Jones
2014-09-18 11:31   ` Johan Hovold
2014-09-18 14:21   ` Johan Hovold
2014-09-09 19:24 ` [PATCH v4 2/3] i2c: add support for Diolan DLN-2 USB-I2C adapter Octavian Purdila
2014-09-17  9:44   ` Johan Hovold
2014-09-17 10:07     ` Octavian Purdila
2014-09-18  8:19       ` Johan Hovold
2014-09-18  8:49         ` Octavian Purdila
2014-09-18  9:13           ` Johan Hovold
2014-09-09 19:24 ` [PATCH v4 3/3] gpio: add support for the Diolan DLN-2 USB GPIO driver Octavian Purdila
2014-09-18 10:54   ` Johan Hovold
2014-09-18 12:43     ` Octavian Purdila
2014-09-18 12:46       ` Johan Hovold
2014-09-18 15:54         ` Octavian Purdila
2014-09-19  7:11           ` Johan Hovold

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).