[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <fa7a7f95-95f8-4ab9-a076-7207138c36fe@amd.com>
Date: Tue, 3 Feb 2026 14:37:01 +0800
From: "Du, Bin" <bin.du@....com>
To: Sakari Ailus <sakari.ailus@...ux.intel.com>
Cc: mchehab@...nel.org, hverkuil@...all.nl,
laurent.pinchart+renesas@...asonboard.com, bryan.odonoghue@...aro.org,
prabhakar.mahadev-lad.rj@...renesas.com, linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org, sultan@...neltoast.com,
pratap.nirujogi@....com, benjamin.chan@....com, king.li@....com,
gjorgji.rosikopulos@....com, Phil.Jawich@....com, Dominic.Antony@....com,
mario.limonciello@....com, richard.gong@....com, anson.tsao@....com,
Alexey Zagorodnikov <xglooom@...il.com>
Subject: Re: [PATCH v7 3/7] media: platform: amd: Add isp4 fw and hw interface
Hi Sakari,
On 2/2/2026 5:10 PM, Sakari Ailus wrote:
> Hi Bin,
>
> On Tue, Jan 20, 2026 at 05:22:41PM +0800, Du, Bin wrote:
>> Hi Sakari, there's still one left. Could you please help check it?
>>
>> On 1/7/2026 4:44 PM, Du, Bin wrote:
>>> Thank you, Sakari for the feedback.
>>>
>>> On 12/22/2025 5:37 PM, Sakari Ailus wrote:
>>>> Hi Bin,
>>>>
>>>> On Tue, Dec 16, 2025 at 05:13:22PM +0800, Bin Du wrote:
>>
>> [snip]
>>
>>>>> +enum isp4fw_buffer_source {
>>>>> + /* The buffer is from the stream buffer queue */
>>>>> + BUFFER_SOURCE_STREAM,
>>>>> +};
>>>>
>>>> Could you also use the ISP4 (or ISP4IF) prefix for these, please?
>>>> Many look
>>>> rather generic.
>>>>
>>>
>>> Thank you for highlighting this matter, since these definitions are
>>> located in isp4_fw_cmd_resp.h, ISP4_FW may be a more appropriate prefix.
>>> Just to confirm: are you suggesting that we should add this prefix to
>>> all macros and enums? For example, changing CMD_ID_SET_STREAM_CONFIG to
>>> ISP4_FW_CMD_ID_SET_STREAM_CONFIG, and BUFFER_SOURCE_STREAM to ISP4_FW
>>> _BUFFER_SOURCE_STREAM? Our initial thought was that these would only be
>>> used within ISP and shouldn't lead to any confusion.
>>>
>>
>> Hi Sakari, would you please help to confirm so we can decide if further
>> modification is needed.
>
> I'd prefer to use a specific prefix, indeed. See e.g.
> drivers/media/platform/ti/omap3isp/isp.h . This was the first supported ISP
> driver so some prefixes are just "isp_". The shorter names you have, the
> larger is the probability of clashing with something generic. It also makes
> it obvious to the reader this is specific to the driver.
>
Very good consideration and reference, will add prefix ISP4FW_ to make
them specific.
--
Regards,
Bin
Powered by blists - more mailing lists