lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0efb8ce3-cf71-4a49-8ca9-735019a3a7d8@amd.com>
Date: Tue, 24 Jun 2025 16:24:21 -0400
From: "Nirujogi, Pratap" <pnirujog@....com>
To: Mehdi Djait <mehdi.djait@...ux.intel.com>,
 Sakari Ailus <sakari.ailus@...ux.intel.com>
Cc: Laurent Pinchart <laurent.pinchart@...asonboard.com>,
 Pratap Nirujogi <pratap.nirujogi@....com>, mchehab@...nel.org,
 hverkuil@...all.nl, bryan.odonoghue@...aro.org, krzk@...nel.org,
 dave.stevenson@...pberrypi.com, hdegoede@...hat.com,
 jai.luthra@...asonboard.com, tomi.valkeinen@...asonboard.com,
 linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
 benjamin.chan@....com, bin.du@....com, grosikop@....com, king.li@....com,
 dantony@....com, vengutta@....com, Svetoslav.Stoilov@....com,
 Yana.Zheleva@....com
Subject: Re: [PATCH v3 RESEND] media: i2c: Add OV05C10 camera sensor driver

Hi Mehdi, Sakari,

On 6/24/2025 12:34 PM, Mehdi Djait wrote:
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
> 
> 
> Hi Sakari,
> 
> On Tue, Jun 24, 2025 at 11:46:27AM +0000, Sakari Ailus wrote:
> 
> [...]
> 
>>
>> I'm in favour of the latter but both should be workable.
>>
>> Speaking of return values, devm_clk_get_optional() may also return
>> -EPROBE_DEFER. That needs to be handled.
>>
> 
> Ack.
> 
>> And further on -EPROBE_DEFER, I think the helper should return
>> -EPROBE_DEFER if the "clock-frequency" property doesn't exist on non-OF
>> nodes. That signals the required software nodes required on Intel Windows
>> definitions/ipu-bridge or AMD systems aren't in place yet so really probing
>> should be deferred. This would allow removing the hacks that return
>> -EPROBE_DEFER in sensor drivers when no graph endpoint is found.
> 
> device_property_read_u32() returns the following:
> 
>   * Return: number of values if @val was %NULL,
>   *         %0 if the property was found (success),
>   *         %-EINVAL if given arguments are not valid,
>   *         %-ENODATA if the property does not have a value,
>   *         %-EPROTO if the property is not an array of numbers,
>   *         %-EOVERFLOW if the size of the property is not as expected.
>   *         %-ENXIO if no suitable firmware interface is present.
> 
> 
> Do you mean something like this in the helper:
> 
> if (ret == -ENODATA && !of_node)
>          return ERR_PTR(-EPROBE_DEFER);
> 
If I understand correctly, the recommendation is to return -EPROBE_DEFER 
on !of_node systems when the driver fails to read the clock-frequency 
property. Kindly confirm.

if (ret && !of_node)
	return ERR_PTR(-EPROBE_DEFER);

Thanks,
Pratap

> --
> Kind Regards
> Mehdi Djait


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ