Skip to content

Commit 54e1b4b

Browse files
MeghanaMalladiTIkuba-moo
authored andcommitted
net: ti: icss-iep: Reject perout generation request
IEP driver supports both perout and pps signal generation but perout feature is faulty with half-cooked support due to some missing configuration. Remove perout support from the driver and reject perout requests with "not supported" error code. Fixes: c1e0230 ("net: ti: icss-iep: Add IEP driver") Signed-off-by: Meghana Malladi <m-malladi@ti.com> Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev> Link: https://patch.msgid.link/20250227092441.1848419-1-m-malladi@ti.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 674fcb4 commit 54e1b4b

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

drivers/net/ethernet/ti/icssg/icss_iep.c

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -474,26 +474,7 @@ static int icss_iep_perout_enable_hw(struct icss_iep *iep,
474474
static int icss_iep_perout_enable(struct icss_iep *iep,
475475
struct ptp_perout_request *req, int on)
476476
{
477-
int ret = 0;
478-
479-
mutex_lock(&iep->ptp_clk_mutex);
480-
481-
if (iep->pps_enabled) {
482-
ret = -EBUSY;
483-
goto exit;
484-
}
485-
486-
if (iep->perout_enabled == !!on)
487-
goto exit;
488-
489-
ret = icss_iep_perout_enable_hw(iep, req, on);
490-
if (!ret)
491-
iep->perout_enabled = !!on;
492-
493-
exit:
494-
mutex_unlock(&iep->ptp_clk_mutex);
495-
496-
return ret;
477+
return -EOPNOTSUPP;
497478
}
498479

499480
static void icss_iep_cap_cmp_work(struct work_struct *work)

0 commit comments

Comments
 (0)