Revert "net: ethernet: xscale: Check for PTP support properly"

This reverts commit 5195b10c34.

Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Sasha Levin
2026-06-01 17:38:39 +02:00
committed by Greg Kroah-Hartman
parent b261027a1a
commit 9d2f0610c1
2 changed files with 4 additions and 4 deletions
+4 -1
View File
@@ -395,12 +395,15 @@ static int ixp4xx_hwtstamp_set(struct net_device *netdev,
int ret;
int ch;
if (!cpu_is_ixp46x())
return -EOPNOTSUPP;
if (!netif_running(netdev))
return -EINVAL;
ret = ixp46x_ptp_find(&port->timesync_regs, &port->phc_index);
if (ret)
return -EOPNOTSUPP;
return ret;
ch = PORT2CHANNEL(port);
regs = port->timesync_regs;
-3
View File
@@ -243,9 +243,6 @@ static struct ixp_clock ixp_clock;
int ixp46x_ptp_find(struct ixp46x_ts_regs *__iomem *regs, int *phc_index)
{
if (!cpu_is_ixp46x())
return -ENODEV;
*regs = ixp_clock.regs;
*phc_index = ptp_clock_index(ixp_clock.ptp_clock);