Re: [PATCH v7 3/7] media: platform: amd: Add isp4 fw and hw interface
From: Du, Bin
Date: Tue Feb 03 2026 - 01:37:32 EST
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