From: "Sørensen, Stefan" <Stefan.Sorensen@spectralink.com>
To: "ben@decadent.org.uk" <ben@decadent.org.uk>
Cc: "davem@davemloft.net" <davem@davemloft.net>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"mugunthanvnm@ti.com" <mugunthanvnm@ti.com>
Subject: Re: [PATCH] net:cpsw: Pass unhandled ioctl's on to generic phy ioctl
Date: Tue, 4 Feb 2014 15:08:16 +0000 [thread overview]
Message-ID: <1391526492.7871.8.camel@e37108.spectralink.com> (raw)
In-Reply-To: <1391511050.3003.21.camel@deadeye.wl.decadent.org.uk>
On Tue, 2014-02-04 at 10:50 +0000, Ben Hutchings wrote:
> > This patch allows the use of a generic timestamping phy connected
> > to the cpsw if CPTS support is not enabled.
>
> What if CPTS support is enabled in the driver, but this particular
> machine doesn't have it and uses a timestamping PHY instead?
That would not work, the CPTS will grab the SIOC{G,S}HWTSTAMP. I'm not
sure how that could be configured at runtime, other than a private
ethtool flag.
Also it seem as the situation with a timestamping MAC and a timestamping
PHY could deliver bogus ethtool timestamping info, as it will come from
the PHY if available, but the timestamping will be handled by the MAC.
> > case SIOCGMIIPHY:
> > data->phy_id = priv->slaves[slave_no].phy->addr;
>
> It looks like this existing code is broken, as the phy pointer can be
> NULL!
Right, but that code can go away since SIOCGMIIPHY is also handled by
phy_mii_ioctl. I will delete that case in the next version.
> > + return phy_mii_ioctl(priv->slaves[slave_no].phy, req, cmd);
>
> This presumably also enables SIOC{G,S}MIIREG, but you didn't mention
> that.
Yes, I will add that to the commit log in the next version.
Stefan
next prev parent reply other threads:[~2014-02-04 15:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-04 7:50 [PATCH] net:cpsw: Pass unhandled ioctl's on to generic phy ioctl Stefan Sørensen
2014-02-04 10:50 ` Ben Hutchings
2014-02-04 15:08 ` Sørensen, Stefan [this message]
2014-02-04 21:51 ` Ben Hutchings
2014-02-05 7:12 ` Richard Cochran
2014-02-05 10:23 ` Ben Hutchings
2014-02-05 11:06 ` Christian Riesch
2014-02-05 11:26 ` Richard Cochran
2014-02-05 7:28 ` Sørensen, Stefan
2014-02-05 8:18 ` Mugunthan V N
2014-02-05 10:49 ` Christian Riesch
2014-02-05 14:15 ` Mugunthan V N
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=1391526492.7871.8.camel@e37108.spectralink.com \
--to=stefan.sorensen@spectralink.com \
--cc=ben@decadent.org.uk \
--cc=davem@davemloft.net \
--cc=mugunthanvnm@ti.com \
--cc=netdev@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).