From: Mehdi Djait <mehdi.djait@bootlin.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: mchehab@kernel.org, heiko@sntech.de, hverkuil-cisco@xs4all.nl,
krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org,
conor+dt@kernel.org, linux-media@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
thomas.petazzoni@bootlin.com, alexandre.belloni@bootlin.com,
maxime.chevallier@bootlin.com, paul.kocialkowski@bootlin.com
Subject: Re: [PATCH v6 0/3] media: i2c: Introduce driver for the TW9900 video decoder
Date: Tue, 10 Oct 2023 21:02:42 +0200 [thread overview]
Message-ID: <ZSWf0iVvBoZGbjAx@Host-002> (raw)
In-Reply-To: <20231009022122.GH5121@pendragon.ideasonboard.com>
Hi Laurent,
On Mon, Oct 09, 2023 at 05:21:22AM +0300, Laurent Pinchart wrote:
> On Fri, Oct 06, 2023 at 06:25:27PM +0200, Mehdi Djait wrote:
> > Hello everyone,
> >
> > This series is based on the fifth iteration of the series introducing the
> > tw9900 driver: sent 29 Dec 2020 [1]
> >
> > This is the version 6 of the series adding support for the Techwell
> > TW9900 multi standard decoder. It's a pretty simple decoder compared to
> > the TW9910, since it doesn't have a built-in scaler/crop engine.
> >
> > Changes v5 => v6:
> > - dropped .skip_top and .field in the supported_modes
> > - added error handling for the i2c writes/reads
> > - added the colorimetry information to fill_fmt
> > - removed pm_runtime
>
> It's not very nice to keep the chip powered up all the time :-(
>
I agree 100% I tried to make it work with pm_runtime but I faced many
issues. I don't know if this is due to my lack of experience but here is
the situation when I enable pm_runtime:
I get most of the time wrong values when calling g_input_status to check
if I have a signal or not.
To do that I read the 0x01 – Chip Status Register I (STATUS1) and check
the BIT(6): HLOCK:
- 1 = Horizontal sync PLL is locked to the incoming video source.
- 0 = Horizontal sync PLL is not locked.
To make the g_input_status work with pm_runtime I had to add a 300
msleep after power ON! Which is a huge delay.
I also face issues with the standard detection...
So I decided to drop it for this first version of the driver.
--
Kind Regards
Mehdi Djait
prev parent reply other threads:[~2023-10-10 19:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-06 16:25 [PATCH v6 0/3] media: i2c: Introduce driver for the TW9900 video decoder Mehdi Djait
2023-10-06 16:25 ` [PATCH v6 1/3] dt-bindings: vendor-prefixes: Add techwell vendor prefix Mehdi Djait
2023-10-07 15:33 ` Krzysztof Kozlowski
2023-10-06 16:25 ` [PATCH v6 2/3] media: dt-bindings: media: i2c: Add bindings for TW9900 Mehdi Djait
2023-10-07 15:34 ` Krzysztof Kozlowski
2023-10-09 2:18 ` Laurent Pinchart
2023-10-10 18:52 ` Mehdi Djait
2023-10-06 16:25 ` [PATCH v6 3/3] media: i2c: Introduce a driver for the Techwell TW9900 decoder Mehdi Djait
2023-10-07 15:36 ` Krzysztof Kozlowski
2023-10-14 18:11 ` kernel test robot
2023-10-09 2:21 ` [PATCH v6 0/3] media: i2c: Introduce driver for the TW9900 video decoder Laurent Pinchart
2023-10-10 19:02 ` Mehdi Djait [this message]
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=ZSWf0iVvBoZGbjAx@Host-002 \
--to=mehdi.djait@bootlin.com \
--cc=alexandre.belloni@bootlin.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=heiko@sntech.de \
--cc=hverkuil-cisco@xs4all.nl \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=maxime.chevallier@bootlin.com \
--cc=mchehab@kernel.org \
--cc=paul.kocialkowski@bootlin.com \
--cc=robh+dt@kernel.org \
--cc=thomas.petazzoni@bootlin.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;
as well as URLs for NNTP newsgroup(s).