public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: "Nirujogi, Pratap" <pnirujog@amd.com>
Cc: Ilya K <me@0upti.me>, Pratap Nirujogi <pratap.nirujogi@amd.com>,
	 Hans de Goede <hdegoede@redhat.com>,
	W_Armin@gmx.de,  mario.limonciello@amd.com,
	platform-driver-x86@vger.kernel.org,
	 LKML <linux-kernel@vger.kernel.org>,
	benjamin.chan@amd.com, bin.du@amd.com,
	 gjorgji.rosikopulos@amd.com, king.li@amd.com, dantony@amd.com
Subject: Re: [PATCH v12] platform/x86: Add AMD ISP platform config for OV05C10
Date: Thu, 8 May 2025 11:52:17 +0300 (EEST)	[thread overview]
Message-ID: <c98e9dd5-69e1-0a20-dcc7-f9f7fa40762a@linux.intel.com> (raw)
In-Reply-To: <019c9a4d-f8e5-4345-95df-255a04e5c34e@amd.com>

[-- Attachment #1: Type: text/plain, Size: 3272 bytes --]

On Wed, 7 May 2025, Nirujogi, Pratap wrote:
> On 5/6/2025 8:53 AM, Ilpo Järvinen wrote:
> > Caution: This message originated from an External Source. Use proper caution
> > when opening attachments, clicking links, or responding.
> > 
> > 
> > On Tue, 6 May 2025, Ilya K wrote:
> > 
> > > > +#define AMDISP_OV05C10_I2C_ADDR            0x10
> > > > +#define AMDISP_OV05C10_PLAT_NAME   "amdisp_ov05c10_platform"
> > > > +#define AMDISP_OV05C10_HID         "OMNI5C10"
> > > > +#define AMDISP_OV05C10_REMOTE_EP_NAME      "ov05c10_isp_4_1_1"
> > > > +#define AMD_ISP_PLAT_DRV_NAME              "amd-isp4"
> > > 
> > > Hey folks, I know v12 might be a bit too late for this one, but I've got
> > > another device here (Asus GZ302EA tablet) with a very similar camera
> > > setup, but a different sensor (OV13B10), and it looks like this driver
> > > just assumes a certain hardcoded configuration... I wonder if it makes
> > > sense to reorganize the code so that more sensor configurations can be
> > > added without making a separate module? I'd be happy to help with
> > > refactoring/testing/etc, if people are interested.
> > 
> > v12 is not too late, and besides, v9..v12 has happened within 5 days
> > which is rather short time (hint to the submitter that there's no need
> > to burn patch series version numbers at that speed :-)).
> > 
> > I'll give folks some time to sort this out if you need to add e.g., some
> > driver_data instead.
> > 
> > --
> >   i.
> > 
> Hi Ilya, Ilpo,
> 
> I agree with the suggestion, but how about taking-up the refactoring part in a
> separate patch. Yes this patch focussed on supporting OV05C10 and even the
> code review proceeded with this understanding. Refactoring now for generic
> support would require changes that would undo some of the recent review
> feedback (especially related to global variables usage). Please let us know
> what do you think.

Hi,

If you refer to comments given to v7 that resulted in removal of swnodes 
field from struct amdisp_platform (and some other fields along with it), I 
don't think the comment was given to mean that you could not have 
platform info structure (const struct amdisp_platform_info that never was 
been there) but that it should be separate struct from the runtime one 
(struct amdisp_platform). The runtime struct can have a pointer to the 
info struct if it's content is needed after probe.

When the platform info struct exists, pointer to it can be put into 
driver_data in amdisp_sensor_ids. I don't expect you to necessarily add 
the other sensor there but I'd like to see this adapted such that it can 
be relatively easily added which likely requires having that separate 
struct for platform info.

So in a sense, it undoes some of the changes done after v7 but looking
into history of this patch, it looks the post v7 patches went slightly
into wrong direction which makes adding next device harder than it needs 
to be (I'm sorry I didn't realize this sooner). TBH, I don't think adding 
the info struct is that much extra effort for you given what you had in 
v7, the info just needs another struct separate from struct 
amdisp_platform but the ingrediments kind of where there already.

-- 
 i.

  reply	other threads:[~2025-05-08  8:52 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-05 17:11 [PATCH v12] platform/x86: Add AMD ISP platform config for OV05C10 Pratap Nirujogi
2025-05-06 12:13 ` Ilya K
2025-05-06 12:53   ` Ilpo Järvinen
2025-05-07 20:05     ` Nirujogi, Pratap
2025-05-08  8:52       ` Ilpo Järvinen [this message]
2025-05-08 23:00         ` Nirujogi, Pratap
2025-05-06 13:00 ` Ilpo Järvinen
2025-05-07 20:06   ` Nirujogi, Pratap
2025-05-06 15:37 ` Sakari Ailus
2025-05-07 20:16   ` Nirujogi, Pratap
2025-05-08  5:44     ` Sakari Ailus
2025-05-08 23:05       ` Nirujogi, Pratap
2025-05-07 21:13   ` Hans de Goede
2025-05-08  7:17     ` Sakari Ailus
2025-05-08 23:13       ` Nirujogi, Pratap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c98e9dd5-69e1-0a20-dcc7-f9f7fa40762a@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=W_Armin@gmx.de \
    --cc=benjamin.chan@amd.com \
    --cc=bin.du@amd.com \
    --cc=dantony@amd.com \
    --cc=gjorgji.rosikopulos@amd.com \
    --cc=hdegoede@redhat.com \
    --cc=king.li@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=me@0upti.me \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=pnirujog@amd.com \
    --cc=pratap.nirujogi@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox