From: Hans Verkuil <hverkuil+cisco@kernel.org>
To: Sakari Ailus <sakari.ailus@linux.intel.com>, linux-media@vger.kernel.org
Cc: laurent.pinchart@ideasonboard.com,
Prabhakar <prabhakar.csengg@gmail.com>,
"Kate Hsuan" <hpa@redhat.com>,
"Dave Stevenson" <dave.stevenson@raspberrypi.com>,
"Tommaso Merciai" <tomm.merciai@gmail.com>,
"Benjamin Mugnier" <benjamin.mugnier@foss.st.com>,
"Sylvain Petinot" <sylvain.petinot@foss.st.com>,
"Christophe JAILLET" <christophe.jaillet@wanadoo.fr>,
"Julien Massot" <julien.massot@collabora.com>,
"Naushir Patuck" <naush@raspberrypi.com>,
"Yan, Dongcheng" <dongcheng.yan@intel.com>,
"Stefan Klug" <stefan.klug@ideasonboard.com>,
"Mirela Rabulea" <mirela.rabulea@nxp.com>,
"André Apitzsch" <git@apitzsch.eu>,
"Heimir Thor Sverrisson" <heimir.sverrisson@gmail.com>,
"Kieran Bingham" <kieran.bingham@ideasonboard.com>,
"Mehdi Djait" <mehdi.djait@linux.intel.com>,
"Ricardo Ribalda Delgado" <ribalda@kernel.org>,
"Hans de Goede" <hansg@kernel.org>,
"Jacopo Mondi" <jacopo.mondi@ideasonboard.com>,
"Tomi Valkeinen" <tomi.valkeinen@ideasonboard.com>,
"David Plowman" <david.plowman@raspberrypi.com>,
"Yu, Ong Hock" <ong.hock.yu@intel.com>,
"Ng, Khai Wen" <khai.wen.ng@intel.com>,
"Jai Luthra" <jai.luthra@ideasonboard.com>,
"Rishikesh Donadkar" <r-donadkar@ti.com>,
"Mattijs Korpershoek" <mkorpershoek@kernel.org>,
"Antti Laakso" <antti.laakso@linux.intel.com>,
"Dumitru Ceclan" <dumitru.ceclan@analog.com>,
"Martin Hecht" <Martin.Hecht@avnet.eu>,
"Andrian Suciu" <Adrian.Suciu@analog.com>,
"Martin Hecht" <mhecht73@gmail.com>,
"Cosmin Tanislav" <demonsingur@gmail.com>,
"Vivekananda Dayananda" <vivekana@amd.com>,
"Quentin Freimanis" <quentin@q-lab.dev>,
"Cory Keitz" <ckeitz@amazon.com>
Subject: Re: [PATCH 2/2] media: maxim-serdes: Disable test pattern generator for now
Date: Thu, 8 Oct 2026 08:58:20 +0200 [thread overview]
Message-ID: <a2d805e4-71bb-4e05-9bd2-53d5f439274e@kernel.org> (raw)
In-Reply-To: <20261007204135.782415-3-sakari.ailus@linux.intel.com>
On 07/10/2026 22:41, Sakari Ailus wrote:
> Disable the test pattern generator that uses the INTERNAL pad flags for
> now.
>
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
> ---
> drivers/media/i2c/maxim-serdes/max_des.c | 3 +--
> drivers/media/i2c/maxim-serdes/max_ser.c | 3 +--
> 2 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/media/i2c/maxim-serdes/max_des.c b/drivers/media/i2c/maxim-serdes/max_des.c
> index 1cbe4c3a3233..cb43edf7a9ae 100644
> --- a/drivers/media/i2c/maxim-serdes/max_des.c
> +++ b/drivers/media/i2c/maxim-serdes/max_des.c
> @@ -137,8 +137,7 @@ static inline unsigned int max_des_phy_to_pad(struct max_des *des,
>
> static inline unsigned int max_des_num_pads(struct max_des *des)
> {
> - return des->info->num_links + des->info->num_phys +
> - (des->ops->set_tpg ? 1 : 0);
> + return des->info->num_links + des->info->num_phys;
I think you need to add a comment here and also in max_ser.c.
E.g. something like this:
static inline unsigned int max_des_num_pads(struct max_des *des)
{
return des->info->num_links + des->info->num_phys;
/*
* TODO: once MEDIA_PAD_FL_INTERNAL is enabled in the uAPI we
* can add the TPG pad:
* return des->info->num_links + des->info->num_phys +
* (des->ops->set_tpg ? 1 : 0);
*/
}
That way it is actually recorded in the source why the tpg pad is currently
not added and what to do to add it back.
Regards,
Hans
> }
>
> static struct max_des_phy *max_des_pad_to_phy(struct max_des *des, u32 pad)
> diff --git a/drivers/media/i2c/maxim-serdes/max_ser.c b/drivers/media/i2c/maxim-serdes/max_ser.c
> index e9bb722ea22f..c8dd5c3d352c 100644
> --- a/drivers/media/i2c/maxim-serdes/max_ser.c
> +++ b/drivers/media/i2c/maxim-serdes/max_ser.c
> @@ -90,8 +90,7 @@ static inline unsigned int max_ser_phy_to_pad(struct max_ser *ser,
>
> static inline unsigned int max_ser_num_pads(struct max_ser *ser)
> {
> - return ser->ops->num_phys + MAX_SER_NUM_LINKS +
> - (ser->ops->set_tpg ? 1 : 0);
> + return ser->ops->num_phys + MAX_SER_NUM_LINKS;
> }
>
> static struct max_ser_phy *max_ser_pad_to_phy(struct max_ser *ser, u32 pad)
next prev parent reply other threads:[~2026-10-08 6:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-07 20:41 [PATCH 0/2] Keep MEDIA_PAD_FL_INTERNAL for kernel only, for now Sakari Ailus
2026-10-07 20:41 ` [PATCH 1/2] media: mc: Keep INTERNAL pad flags just for the kernel, " Sakari Ailus
2026-10-07 21:18 ` Laurent Pinchart
2026-10-08 6:52 ` Hans Verkuil
2026-10-07 20:41 ` [PATCH 2/2] media: maxim-serdes: Disable test pattern generator " Sakari Ailus
2026-10-08 6:58 ` Hans Verkuil [this message]
2026-10-08 7:51 ` Sakari Ailus
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=a2d805e4-71bb-4e05-9bd2-53d5f439274e@kernel.org \
--to=hverkuil+cisco@kernel.org \
--cc=Adrian.Suciu@analog.com \
--cc=Martin.Hecht@avnet.eu \
--cc=antti.laakso@linux.intel.com \
--cc=benjamin.mugnier@foss.st.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=ckeitz@amazon.com \
--cc=dave.stevenson@raspberrypi.com \
--cc=david.plowman@raspberrypi.com \
--cc=demonsingur@gmail.com \
--cc=dongcheng.yan@intel.com \
--cc=dumitru.ceclan@analog.com \
--cc=git@apitzsch.eu \
--cc=hansg@kernel.org \
--cc=heimir.sverrisson@gmail.com \
--cc=hpa@redhat.com \
--cc=jacopo.mondi@ideasonboard.com \
--cc=jai.luthra@ideasonboard.com \
--cc=julien.massot@collabora.com \
--cc=khai.wen.ng@intel.com \
--cc=kieran.bingham@ideasonboard.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=mehdi.djait@linux.intel.com \
--cc=mhecht73@gmail.com \
--cc=mirela.rabulea@nxp.com \
--cc=mkorpershoek@kernel.org \
--cc=naush@raspberrypi.com \
--cc=ong.hock.yu@intel.com \
--cc=prabhakar.csengg@gmail.com \
--cc=quentin@q-lab.dev \
--cc=r-donadkar@ti.com \
--cc=ribalda@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=stefan.klug@ideasonboard.com \
--cc=sylvain.petinot@foss.st.com \
--cc=tomi.valkeinen@ideasonboard.com \
--cc=tomm.merciai@gmail.com \
--cc=vivekana@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