mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-08-09 06:14:34 +02:00
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:
committed by
Greg Kroah-Hartman
parent
b261027a1a
commit
9d2f0610c1
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user