mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Gjorgji Rosikopulos (Consultant)" <quic_grosikop@quicinc.com>
To: Konrad Dybcio <konrad.dybcio@linaro.org>, <rfoss@kernel.org>,
	<todor.too@gmail.com>, <bryan.odonoghue@linaro.org>,
	<andersson@kernel.org>, <mchehab@kernel.org>
Cc: <linux-media@vger.kernel.org>, <linux-arm-msm@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>,
	<laurent.pinchart@ideasonboard.com>, <hverkuil-cisco@xs4all.nl>,
	<quic_hariramp@quicinc.com>
Subject: Re: [PATCH 1/9] media: qcom: camss: Add per sub-device type resources
Date: Tue, 12 Mar 2024 17:01:53 +0200	[thread overview]
Message-ID: <b852d178-dfb6-47fb-a5bf-55b614cbfae3@quicinc.com> (raw)
In-Reply-To: <9af62237-98ec-4130-8523-f6c9cb0ad281@linaro.org>

Hi Konrad,

Thank you for the review.

On 3/12/2024 4:44 PM, Konrad Dybcio wrote:
> 
> 
> On 2/27/24 13:24, Gjorgji Rosikopulos wrote:
>> From: Radoslav Tsvetkov <quic_rtsvetko@quicinc.com>
>>
>> Currently resources structure grows with additional parameters
>> required for
>> each sub-deivce. However each sub-device has some specific resources or
>> configurations which need to be passed during the initialization.
>>
>> This change adds per sub-device type structure to simplify the things
>> and removes the magical void pointer to hw_ops.
> 
> I'm not quite sure what the benefit here is, as opposed to simply
> extending <name>_device?
> 
> Generally, I think the driver state as of today is somewhat backwards..
> 
> We define a common set of resources, and then assign them subdev-specific
> ops, instead of defining the subdev and consuming clocks/pds/resets
> within a subdevice there..

In the current code only ops are specific. However there are other
configurations passed to the sub-devices which are actually specific to
different sub-device, as an example:


1. is_lite flag. The lite flag is valid for csid and vfe but not for csiphy.

2. line_num this is valid only for vfe sub-device.

3. video device available formats. Those formats are only used by the
vfe sub-device and are not valid to other sub-devices which are not
having any video device connected, (those will be added in next patches
in the patch-set).

Please check the other changes in this patch-set maybe it will make more
sense.

I am not sure with such differences in the sub-device code we can have
generic structure which contains only ops...

And please note that when we are introducing new sub-device for other
SoC it may need additional specific configuration.


Regards,

~Gjorgji


  reply	other threads:[~2024-03-12 15:02 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-27 12:24 [PATCH 0/9] Move camss version related defs in to resources Gjorgji Rosikopulos
2024-02-27 12:24 ` [PATCH 1/9] media: qcom: camss: Add per sub-device type resources Gjorgji Rosikopulos
2024-03-12 14:44   ` Konrad Dybcio
2024-03-12 15:01     ` Gjorgji Rosikopulos (Consultant) [this message]
2024-02-27 12:24 ` [PATCH 2/9] media: qcom: camss: Attach formats to VFE resources Gjorgji Rosikopulos
2024-02-27 12:24 ` [PATCH 3/9] media: qcom: camss: Attach formats to CSID resources Gjorgji Rosikopulos
2024-02-27 12:24 ` [PATCH 4/9] media: qcom: camss: Attach formats to CSIPHY resources Gjorgji Rosikopulos
2024-02-27 12:24 ` [PATCH 5/9] media: qcom: camss: Move format related functions Gjorgji Rosikopulos
2024-02-27 12:24 ` [PATCH 6/9] media: qcom: camss: Designate lite subdevices in resources Gjorgji Rosikopulos
2024-02-27 12:24 ` [PATCH 7/9] media: qcom: camss: Split testgen, RDI and RX for CSID 170 Gjorgji Rosikopulos
2024-02-27 12:24 ` [PATCH 8/9] media: qcom: camss: Decompose register and link operations Gjorgji Rosikopulos
2024-02-27 12:24 ` [PATCH 9/9] media: qcom: camss: Decouple VFE from CSID Gjorgji Rosikopulos
2024-03-11 16:22 ` [PATCH 0/9] Move camss version related defs in to resources Bryan O'Donoghue
2024-03-11 16:23   ` Bryan O'Donoghue
2024-03-12 11:57     ` Gjorgji Rosikopulos (Consultant)

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=b852d178-dfb6-47fb-a5bf-55b614cbfae3@quicinc.com \
    --to=quic_grosikop@quicinc.com \
    --cc=andersson@kernel.org \
    --cc=bryan.odonoghue@linaro.org \
    --cc=hverkuil-cisco@xs4all.nl \
    --cc=konrad.dybcio@linaro.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=quic_hariramp@quicinc.com \
    --cc=rfoss@kernel.org \
    --cc=todor.too@gmail.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

all inboxes | Powered by JetHome®