lkml.org 
[lkml]   [2023]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] media: dt-bindings: Convert Omnivision OV7251 to DT schema
On Mon, Jul 10, 2023 at 11:57 AM Conor Dooley <conor@kernel.org> wrote:
>
> On Fri, Jul 07, 2023 at 03:06:46PM -0600, Rob Herring wrote:
> > Convert the OmniVision OV7251 Image Sensor binding to DT schema format.
> >
> > vddd-supply was listed as required, but the example and actual user
> > don't have it. Also, the data brief says it has an internal regulator,
> > so perhaps it is truly optional.
>
> ov7251.c:
> ov7251->core_regulator = devm_regulator_get(dev, "vddd");
> if (IS_ERR(ov7251->core_regulator)) {
> dev_err(dev, "cannot get core regulator\n");
> return PTR_ERR(ov7251->core_regulator);
> }
>
> Looks like the driver's probe function disagrees?

Doesn't the regulator framework return a dummy regulator if missing?

> I was going to ask how it worked, but the one user has
> status = "disabled"...

Saw that too, but figured there's some other include with that
overridden. We should really add a built .dts output target to avoid
trying to manually walk includes.


> /shrug, what's here looks fine to me, whatever Qualcomm person cares
> about the driver can make sure it works for them I guess.
>
> Reviewed-by: Conor Dooley <conor.dooley@microchip.com>

Thanks.

Rob

\
 
 \ /
  Last update: 2023-07-10 20:05    [W:0.137 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site