Re: backlight - chicken and egg challenge

2018-09-11 Thread Liviu Dudau
On Mon, Sep 10, 2018 at 09:27:24AM +0200, Boris Brezillon wrote: > Hi Sam, > > On Sat, 8 Sep 2018 22:17:55 +0200 > Sam Ravnborg wrote: > > > Hi all. > > > > When working on the DRM driver for Atmel LCDC the first approach > > was to use a MFD driver, that had two sub-drivers: > > - PWM dirver >

Re: backlight - chicken and egg challenge

2018-09-10 Thread Boris Brezillon
Hi Sam, On Sat, 8 Sep 2018 22:17:55 +0200 Sam Ravnborg wrote: > Hi all. > > When working on the DRM driver for Atmel LCDC the first approach > was to use a MFD driver, that had two sub-drivers: > - PWM dirver > - DRM driver > > Feedback was that the PWM feature was too small to warrant a MFD d

Re: backlight - chicken and egg challenge

2018-09-08 Thread Sam Ravnborg
> > > > So the open question is how to fix this dependency challenge? > > > > 1) Drop the generic backlight driver and implement all pwm/backlight > >handling in the driver. > > 2) Re-introduce the MFD driver. > > 3) ? > > > > Any good ideas? > > component.c should be able to cope. The driver

Re: backlight - chicken and egg challenge

2018-09-08 Thread Daniel Vetter
On Sat, Sep 8, 2018 at 10:17 PM, Sam Ravnborg wrote: > Hi all. > > When working on the DRM driver for Atmel LCDC the first approach > was to use a MFD driver, that had two sub-drivers: > - PWM dirver > - DRM driver > > Feedback was that the PWM feature was too small to warrant a MFD driver. > (The

backlight - chicken and egg challenge

2018-09-08 Thread Sam Ravnborg
Hi all. When working on the DRM driver for Atmel LCDC the first approach was to use a MFD driver, that had two sub-drivers: - PWM dirver - DRM driver Feedback was that the PWM feature was too small to warrant a MFD driver. (There was no consencus on this, but I anyway went ahead). So the new app