All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alessandro Rubini <rubini@gnudd.com>
To: linux-kernel@vger.kernel.org
Cc: giancarlo.asnaghi@st.com, alan@linux.intel.com,
	sameo@linux.intel.com, grant.likely@secretlab.ca,
	linus.walleij@stericsson.com
Subject: [RFC PATCH 0/2] MFD and GPIO for STA2X11
Date: Thu, 26 Jan 2012 16:51:50 +0100	[thread overview]
Message-ID: <cover.1327592191.git.rubini@gnudd.com> (raw)

These two patches introduce multi-function device and GPIO support for
the STA2X11 I/O Hub. It's an RFC for both as explained below.

- I think the MFD driver is ok. This MFD_STA2X11 config symbol is
  autoselected by CONFIG_STA2X11, which is pending in the
  "x86: initial support for sta2x11" patch, for which I need to send V2
  later today, with some minor fixes.  Similarly, <asm/sta2x11.h> is
  not upstream yet, so I'll need to resend later, I suppose.

- The GPIO patch has a quirk: I chose to register a single irq chip
  for 128 interrupts but the generic irq_chip only support 32 interrupts.
  I'm sure the hack I did (request the irq descs myself) is not good, but
  what is the best approach here?  Using 4 generic irq chips or defining
  my own, non-generic one?

Thanks a lot
/alessandro

Alessandro Rubini (2):
  mfd: Add driver for STA2X11 MFD block
  gpio: add STA2X11 GPIO block

 drivers/gpio/Kconfig            |    9 +
 drivers/gpio/Makefile           |    1 +
 drivers/gpio/gpio-sta2x11.c     |  380 +++++++++++++++++++++++++++++++
 drivers/mfd/Kconfig             |    6 +
 drivers/mfd/Makefile            |    1 +
 drivers/mfd/sta2x11-mfd.c       |  470 +++++++++++++++++++++++++++++++++++++++
 include/linux/mfd/sta2x11-mfd.h |  186 +++++++++++++++
 7 files changed, 1053 insertions(+), 0 deletions(-)
 create mode 100644 drivers/gpio/gpio-sta2x11.c
 create mode 100644 drivers/mfd/sta2x11-mfd.c
 create mode 100644 include/linux/mfd/sta2x11-mfd.h

-- 
1.7.7.2

             reply	other threads:[~2012-01-26 15:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-26 15:51 Alessandro Rubini [this message]
2012-01-26 15:52 ` [RFC PATCH 1/2] mfd: Add driver for STA2X11 MFD block Alessandro Rubini
2012-01-26 15:52 ` [RFC PATCH 2/2] gpio: add STA2X11 GPIO block Alessandro Rubini

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=cover.1327592191.git.rubini@gnudd.com \
    --to=rubini@gnudd.com \
    --cc=alan@linux.intel.com \
    --cc=giancarlo.asnaghi@st.com \
    --cc=grant.likely@secretlab.ca \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sameo@linux.intel.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.