devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dan Scally <dan.scally@ideasonboard.com>
To: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org,
	linux-renesas-soc@vger.kernel.org, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Magnus Damm <magnus.damm@gmail.com>,
	Philipp Zabel <p.zabel@pengutronix.de>,
	biju.das.jz@bp.renesas.com
Subject: Re: [PATCH v3 4/5] media: platform: Add Renesas Input Video Control block driver
Date: Wed, 9 Jul 2025 09:13:51 +0100	[thread overview]
Message-ID: <db08a8db-c7e5-4431-b83e-11a92ab3fe54@ideasonboard.com> (raw)
In-Reply-To: <dy3eecuuaacidhpdcuo3nvt5gputvrvm2v7mkknngks4sppsjz@74lh37ymei7r>

Morning

On 08/07/2025 16:51, Jacopo Mondi wrote:
> Hi Dan
>
> On Tue, Jul 08, 2025 at 03:57:46PM +0100, Dan Scally wrote:
>> Hi Jacopo
>>
> [snip]
>
>>>> +
>>>> +static int __maybe_unused rzv2h_ivc_runtime_resume(struct device *dev)
>>> The driver doesn't depend or select CONFIG_PM, so this is rightfully
>>> marked as __maybe_unused.
>>>
>>> However, it doesn't seem to me that the probe() routine manually
>>> enable the peripheral, so in case of !CONFIG_PM am I wrong or the
>>> device won't operate at all ?
>>>
>>> I would select CONFIG_PM, or otherwise call this function from the probe()
>>> routine and then call pm_runtime_set_active() to inform runtime_pm
>>> that the peripheral is active, and at the end of the probe routine
>>> call pm_runtime_put_autosuspend(): in case of CONFIG_PM the peripheral
>>> will suspend, in case of !CONFIG_PM the pm_runtime_put_autosuspend()
>>> reduces to a nop leaving the peripheral enabled.
>> Ack
>>> I would just select CONFIG_PM tbh
>> I dropped it on Philipp's suggestion in the last review; I have no strong
> I only see a comment from Philipp here
> https://lore.kernel.org/all/8301d2862546507303e2dba1dd61906b848552c2.camel@pengutronix.de/
> about the RESET_CONTROLLER. Have I missed other comments maybe ?
Oh no you're right; I misremembered. Sorry for the noise!
>
>> feelings to be honest, I would expect it to be enabled in any configuration
>> that was intending to use this...but I suppose there's no harm accounting
>> for the possibility that it won't be
> no harm no, but a bit more complex handling of the device power up
> sequences.

No problem; I'll just select CONFIG_PM.


Thanks

Dan


  reply	other threads:[~2025-07-09  8:13 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-07-04 11:20 [PATCH v3 0/5] Add Input Video Control Block driver for RZ/V2H Daniel Scally
2025-07-04 11:20 ` [PATCH v3 1/5] media: mc: entity: Add pipeline_started/stopped ops Daniel Scally
2025-07-08 13:29   ` Jacopo Mondi
2025-07-11 13:24     ` Dan Scally
2025-07-04 11:20 ` [PATCH v3 2/5] media: v4l2-dev: Add helpers to run media_pipeline_[started|stopped]() Daniel Scally
2025-07-08 13:10   ` Jacopo Mondi
2025-07-11 11:51     ` Dan Scally
2025-07-11 12:43       ` Dan Scally
2025-07-11 13:39         ` Jacopo Mondi
2025-07-14  6:37           ` Dan Scally
2025-07-04 11:20 ` [PATCH v3 3/5] dt-bindings: media: Add bindings for the RZ/V2H IVC block Daniel Scally
2025-07-07  6:39   ` Krzysztof Kozlowski
2025-07-04 11:20 ` [PATCH v3 4/5] media: platform: Add Renesas Input Video Control block driver Daniel Scally
2025-07-08 14:49   ` Jacopo Mondi
2025-07-08 14:57     ` Dan Scally
2025-07-08 15:51       ` Jacopo Mondi
2025-07-09  8:13         ` Dan Scally [this message]
2025-07-09  8:22           ` Jacopo Mondi
2025-07-09  9:12             ` Geert Uytterhoeven
2025-07-11 11:17               ` Dan Scally
2025-07-04 11:20 ` [PATCH v3 5/5] MAINTAINERS: Add entry for rzv2h-ivc driver Daniel Scally

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=db08a8db-c7e5-4431-b83e-11a92ab3fe54@ideasonboard.com \
    --to=dan.scally@ideasonboard.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=jacopo.mondi@ideasonboard.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).