linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Aaro Koskinen <aaro.koskinen@iki.fi>
To: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Subject: [RESEND PATCH v3 0/4] cbus/retu drivers
Date: Mon, 12 Nov 2012 21:08:41 +0200	[thread overview]
Message-ID: <1352747326-2195-1-git-send-email-aaro.koskinen@iki.fi> (raw)

This patch set introduces drivers for CBUS access and Retu multifunction
chip found on Nokia Internet Tablets (770, N800, N810). It would be
nice get these patches applied as the functionality of these devices is
severely lacking without Retu. E.g. watchdog support is mandatory at
least on Nokia N800, you cannot currently run the mainline kernel for
longer than ~60 seconds (there is no way to disable the watchdog).

Drivers originate from linux-omap cbus branch and have been cleaned
up/rewritten around i2c and MFD core.

Patches have been tested on top of 3.7-rc5 with Nokia N800 (watchdog
feeding works, power off shuts down the device, power button triggers
IRQs and input events, loading and unloading retu-pwrbutton module in a
loop while manically pressing the power button does not crash the kernel).

Changes since the second version (https://lkml.org/lkml/2012/10/31/520):
	- i2c-cbus:
		- move i2c-cbus.h under linux/platform_data
	- retu-mfd
		- replace "&retu_pwrbutton_res[0]" expression with simpler
		  "retu_pwrbutton_res".
	- retu-pwrbutton:
		- eliminate struct retu_pwrbutton
		- delete checks for duplicate events
		- rework probe to avoid races
		- disable IRQ before unregister in retu_pwrbutton_remove() to
		  avoid races
		- eliminate double free in retu_pwrbutton_remove()
		- add .owner = THIS_MODULE

Changes since the first version (https://lkml.org/lkml/2012/9/3/265):
	- i2c-cbus:
		- use devres
		- improve comments
		- simplify and delete redundant code
		- refactoring & bug fixes on error handling
		- discard "input" parameter from cbus_send_bit/data()
	- retu-mfd:
		- use devres
		- use regmap
	- retu_wdt: use devres
	- retu-pwrbutton: use devres

Changes since the RFC version
(http://marc.info/?l=linux-omap&m=134618967116737&w=2):
        - added DT support for getting i2c-cbus GPIO pins
        - merged n8x0 board file changes into i2c-cbus patch
        - corrected typo in Kconfig for MFD_RETU
        - added power off functionality to retu-mfd
        - added IRQ functionality to retu-mfd
        - added power button key driver
        - some cleanups

Aaro Koskinen (4):
  i2c: introduce i2c-cbus driver
  mfd: introduce retu-mfd driver
  watchdog: introduce retu_wdt driver
  input: misc: introduce retu-pwrbutton

 arch/arm/mach-omap2/board-n8x0.c       |   42 +++++
 drivers/i2c/busses/Kconfig             |   10 +
 drivers/i2c/busses/Makefile            |    1 +
 drivers/i2c/busses/i2c-cbus.c          |  300 ++++++++++++++++++++++++++++++++
 drivers/input/misc/Kconfig             |   10 +
 drivers/input/misc/Makefile            |    1 +
 drivers/input/misc/retu-pwrbutton.c    |  102 +++++++++++
 drivers/mfd/Kconfig                    |    9 +
 drivers/mfd/Makefile                   |    1 +
 drivers/mfd/retu-mfd.c                 |  264 ++++++++++++++++++++++++++++
 drivers/watchdog/Kconfig               |   12 ++
 drivers/watchdog/Makefile              |    1 +
 drivers/watchdog/retu_wdt.c            |  178 +++++++++++++++++++
 include/linux/mfd/retu.h               |   22 +++
 include/linux/platform_data/i2c-cbus.h |   27 +++
 15 files changed, 980 insertions(+), 0 deletions(-)
 create mode 100644 drivers/i2c/busses/i2c-cbus.c
 create mode 100644 drivers/input/misc/retu-pwrbutton.c
 create mode 100644 drivers/mfd/retu-mfd.c
 create mode 100644 drivers/watchdog/retu_wdt.c
 create mode 100644 include/linux/mfd/retu.h
 create mode 100644 include/linux/platform_data/i2c-cbus.h

-- 
1.7.2.5

             reply	other threads:[~2012-11-12 19:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-12 19:08 Aaro Koskinen [this message]
     [not found] ` <1352747326-2195-1-git-send-email-aaro.koskinen-X3B1VOXEql0@public.gmane.org>
2012-11-12 19:08   ` [RESEND PATCH v3 1/4] i2c: introduce i2c-cbus driver Aaro Koskinen
2012-11-16 11:30     ` Wolfram Sang
2012-11-12 19:08 ` [RESEND PATCH v3 2/4] mfd: introduce retu-mfd driver Aaro Koskinen
2012-11-20 18:34   ` Tony Lindgren
2012-11-20 18:38     ` Tony Lindgren
2012-11-12 19:08 ` [RESEND PATCH v3 3/4] watchdog: introduce retu_wdt driver Aaro Koskinen
2012-11-12 19:08 ` [RESEND PATCH v3 4/4] input: misc: introduce retu-pwrbutton Aaro Koskinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1352747326-2195-1-git-send-email-aaro.koskinen@iki.fi \
    --to=aaro.koskinen@iki.fi \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --subject='Re: [RESEND PATCH v3 0/4] cbus/retu drivers' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
on how to clone and mirror all data and code used for this inbox