Re: [PATCH v3 2/3] drm/bridge: parade-ps8640: Use regmap APIs

2021-09-17 Thread Philip Chen
Hi Doug and Stephen, Thanks for the review. Before we reach a consensus on the best logging option, I'll just remove the printouts from this patch and just return PTR_ERR. Once we reach a consensus, we can probably improve logging in a separate patch. On Fri, Sep 17, 2021 at 8:02 AM Doug Anderson

Re: [PATCH v3 2/3] drm/bridge: parade-ps8640: Use regmap APIs

2021-09-17 Thread Doug Anderson
Hi, On Thu, Sep 16, 2021 at 11:12 PM Stephen Boyd wrote: > > > > > In the case of devm_regmap_init_i2c(), the driver could be fine but > > > > you might be trying to instantiate it on a system whose i2c bus lacks > > > > the needed functionality. That's not a bug in the bridge driver but an > > >

Re: [PATCH v3 2/3] drm/bridge: parade-ps8640: Use regmap APIs

2021-09-16 Thread Stephen Boyd
Quoting Doug Anderson (2021-09-16 16:21:12) > Hi, > > On Thu, Sep 16, 2021 at 3:17 PM Stephen Boyd wrote: > > > > TL;DR: Please try to reduce these error messages in drivers and > > consolidate them into subsystems so that drivers stay simple. > > > > Quoting Doug Anderson (2021-09-15 09:41:39) >

Re: [PATCH v3 2/3] drm/bridge: parade-ps8640: Use regmap APIs

2021-09-16 Thread Doug Anderson
Hi, On Thu, Sep 16, 2021 at 3:17 PM Stephen Boyd wrote: > > TL;DR: Please try to reduce these error messages in drivers and > consolidate them into subsystems so that drivers stay simple. > > Quoting Doug Anderson (2021-09-15 09:41:39) > > Hi, > > > > On Tue, Sep 14, 2021 at 7:50 PM Stephen Boyd

Re: [PATCH v3 2/3] drm/bridge: parade-ps8640: Use regmap APIs

2021-09-16 Thread Stephen Boyd
TL;DR: Please try to reduce these error messages in drivers and consolidate them into subsystems so that drivers stay simple. Quoting Doug Anderson (2021-09-15 09:41:39) > Hi, > > On Tue, Sep 14, 2021 at 7:50 PM Stephen Boyd wrote: > > > > > > I'd rather see any sort of error message in getter AP

Re: [PATCH v3 2/3] drm/bridge: parade-ps8640: Use regmap APIs

2021-09-15 Thread Doug Anderson
Hi, On Tue, Sep 14, 2021 at 7:50 PM Stephen Boyd wrote: > > Quoting Doug Anderson (2021-09-14 19:17:03) > > Hi, > > > > On Tue, Sep 14, 2021 at 5:29 PM Stephen Boyd wrote: > > > > > > Quoting Philip Chen (2021-09-14 16:28:44) > > > > diff --git a/drivers/gpu/drm/bridge/parade-ps8640.c > > > > b

Re: [PATCH v3 2/3] drm/bridge: parade-ps8640: Use regmap APIs

2021-09-14 Thread Stephen Boyd
Quoting Doug Anderson (2021-09-14 19:17:03) > Hi, > > On Tue, Sep 14, 2021 at 5:29 PM Stephen Boyd wrote: > > > > Quoting Philip Chen (2021-09-14 16:28:44) > > > diff --git a/drivers/gpu/drm/bridge/parade-ps8640.c > > > b/drivers/gpu/drm/bridge/parade-ps8640.c > > > index e340af381e05..8d3e7a1471

Re: [PATCH v3 2/3] drm/bridge: parade-ps8640: Use regmap APIs

2021-09-14 Thread Doug Anderson
Hi, On Tue, Sep 14, 2021 at 5:29 PM Stephen Boyd wrote: > > Quoting Philip Chen (2021-09-14 16:28:44) > > diff --git a/drivers/gpu/drm/bridge/parade-ps8640.c > > b/drivers/gpu/drm/bridge/parade-ps8640.c > > index e340af381e05..8d3e7a147170 100644 > > --- a/drivers/gpu/drm/bridge/parade-ps8640.c

Re: [PATCH v3 2/3] drm/bridge: parade-ps8640: Use regmap APIs

2021-09-14 Thread Stephen Boyd
Quoting Philip Chen (2021-09-14 16:28:44) > diff --git a/drivers/gpu/drm/bridge/parade-ps8640.c > b/drivers/gpu/drm/bridge/parade-ps8640.c > index e340af381e05..8d3e7a147170 100644 > --- a/drivers/gpu/drm/bridge/parade-ps8640.c > +++ b/drivers/gpu/drm/bridge/parade-ps8640.c > @@ -368,6 +396,12 @@

[PATCH v3 2/3] drm/bridge: parade-ps8640: Use regmap APIs

2021-09-14 Thread Philip Chen
Replace the direct i2c access (i2c_smbus_* functions) with regmap APIs, which will simplify the future update on ps8640 driver. Reviewed-by: Douglas Anderson Signed-off-by: Philip Chen --- Changes in v3: - Fix the nits from v2 review Changes in v2: - Add separate reg map config per page dri