Re: [PATCH v8 1/2] mfd: add atmel-hlcdc driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 07 Oct 2014, Boris Brezillon wrote:

> On Tue, 7 Oct 2014 12:38:14 +0100
> Lee Jones <lee.jones@xxxxxxxxxx> wrote:
> 
> > On Tue, 07 Oct 2014, Thierry Reding wrote:
> > 
> > > On Tue, Oct 07, 2014 at 11:17:43AM +0100, Lee Jones wrote:
> > > > On Tue, 07 Oct 2014, Thierry Reding wrote:
> > > > 
> > > > > On Tue, Oct 07, 2014 at 10:59:32AM +0100, Lee Jones wrote:
> > > > > > On Tue, 07 Oct 2014, Thierry Reding wrote:
> > > > > > 
> > > > > > > On Tue, Oct 07, 2014 at 10:44:27AM +0100, Lee Jones wrote:
> > > > > > > > On Mon, 06 Oct 2014, Boris Brezillon wrote:
> > > > > > > > 
> > > > > > > > > The HLCDC IP available on some Atmel SoCs (i.e. at91sam9n12, at91sam9x5
> > > > > > > > > family or sama5d3 family) exposes 2 subdevices:
> > > > > > > > > - a display controller (controlled by a DRM driver)
> > > > > > > > > - a PWM chip
> > > > > > > > > 
> > > > > > > > > The MFD device provides a regmap and several clocks (those connected
> > > > > > > > > to this hardware block) to its subdevices.
> > > > > > > > > 
> > > > > > > > > This way concurrent accesses to the iomem range are handled by the regmap
> > > > > > > > > framework, and each subdevice can safely access HLCDC registers.
> > > > > > > > > 
> > > > > > > > > Signed-off-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxxxxxxx>
> > > > > > > > > Acked-by: Lee Jones <lee.jones@xxxxxxxxxx>
> > > > > > > > > Tested-by: Anthony Harivel <anthony.harivel@xxxxxxxxxx>
> > > > > > > > > Tested-by: Ludovic Desroches <ludovic.desroches@xxxxxxxxx>
> > > > > > > > > ---
> > > > > > > > >  drivers/mfd/Kconfig             |   6 ++
> > > > > > > > >  drivers/mfd/Makefile            |   1 +
> > > > > > > > >  drivers/mfd/atmel-hlcdc.c       | 122 ++++++++++++++++++++++++++++++++++++++++
> > > > > > > > >  include/linux/mfd/atmel-hlcdc.h |  85 ++++++++++++++++++++++++++++
> > > > > > > > >  4 files changed, 214 insertions(+)
> > > > > > > > >  create mode 100644 drivers/mfd/atmel-hlcdc.c
> > > > > > > > >  create mode 100644 include/linux/mfd/atmel-hlcdc.h
> > > > > > > > 
> > > > > > > > Applied for v3.19.
> > > > > > > 
> > > > > > > Will you provide a stable branch that I can pull into the PWM tree?
> > > > > > 
> > > > > > I hadn't planned on it.  What do you need that for?
> > > > > 
> > > > > Because the PWM driver depends on this series. But if you prefer you
> > > > > could also take the PWM driver through your tree.
> > > > 
> > > > Probably better to deal with that via Kconfig.
> > > 
> > > Do you have any suggestions? The PWM driver currently selects the
> > > MFD_ATMEL_HLCDC symbol, which as I understand will cause a Kconfig error
> > > if the latter isn't defined.
> > 
> > s/select/depends on/ for the desired effect.
> > 
> 
> Don't forget the atmel-hlcdc.h header file which is referenced by both
> the DRM and the PWM drivers.

If you use 'depends on' the DRM and PWM drivers won't even attempt to
compile.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel





[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux