media: maxim-serdes: Disable test pattern generator for now

Disable the test pattern generator that uses the INTERNAL pad flags for
now.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
Sakari Ailus 2026-10-07 15:20:44 +03:00 committed by Hans Verkuil
parent 77a10651b2
commit 5df4613c7e
2 changed files with 14 additions and 4 deletions

View File

@ -137,8 +137,13 @@ 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;
/*
* 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);
*/
}
static struct max_des_phy *max_des_pad_to_phy(struct max_des *des, u32 pad)

View File

@ -90,8 +90,13 @@ 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;
/*
* TODO: once MEDIA_PAD_FL_INTERNAL is enabled in the uAPI we
* can add the TPG pad:
* return ser->ops->num_phys + MAX_SER_NUM_LINKS +
* (ser->ops->set_tpg ? 1 : 0);
*/
}
static struct max_ser_phy *max_ser_pad_to_phy(struct max_ser *ser, u32 pad)