Re: [PATCH] phylib: Add support for the LXT973 phy.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andy Fleming
Date: Wednesday, June 2, 2010 - 12:32 pm

On Wed, Jun 2, 2010 at 8:50 AM, David Miller <davem@davemloft.net> wrote:

Yeah, I was clearly not thinking clearly.  dev_flags will be
overwritten, and is not meant for this.  I believe, what we should do
is add a "port" field to the PHY device, and if PCR_FIBER_SELECT is
set, then set the port field to PORT_FIBRE.  I'm not entirely clear on
the semantics of that field in the ethtool cmd, but it seems like the
right idea.



Yes, it's private, and I would be fine with using priv, I just didn't
think that it was correct to assign priv to point at the probe
function as a mechanism for indicating that fiber is being used.  I
believe that code should be more explicit than that.  priv is meant to
point at private data, not to indicate an arbitrary attribute of the
link by virtue of being non-null.

Andy
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] phylib: Add support for the LXT973 phy., Richard Cochran, (Mon May 31, 6:09 am)
Re: [PATCH] phylib: Add support for the LXT973 phy., Andy Fleming, (Tue Jun 1, 3:39 pm)
Re: [PATCH] phylib: Add support for the LXT973 phy., Richard Cochran, (Wed Jun 2, 5:55 am)
Re: [PATCH] phylib: Add support for the LXT973 phy., Richard Cochran, (Wed Jun 2, 6:07 am)
Re: [PATCH] phylib: Add support for the LXT973 phy., David Miller, (Wed Jun 2, 6:50 am)
Re: [PATCH] phylib: Add support for the LXT973 phy., Richard Cochran, (Wed Jun 2, 8:08 am)
Re: [PATCH] phylib: Add support for the LXT973 phy., David Miller, (Wed Jun 2, 8:15 am)
Re: [PATCH] phylib: Add support for the LXT973 phy., Andy Fleming, (Wed Jun 2, 12:32 pm)
Re: [PATCH] phylib: Add support for the LXT973 phy., Richard Cochran, (Thu Jun 3, 4:28 am)
Re: [PATCH] phylib: Add support for the LXT973 phy., Richard Cochran, (Sat Jun 5, 7:00 am)
Re: [PATCH] phylib: Add support for the LXT973 phy., David Miller, (Mon Jun 7, 1:18 am)
Re: [PATCH] phylib: Add support for the LXT973 phy., Andy Fleming, (Mon Jun 7, 8:39 am)
Re: [PATCH] phylib: Add support for the LXT973 phy., Richard Cochran, (Mon Jun 7, 8:39 am)
Re: [PATCH] phylib: Add support for the LXT973 phy., David Miller, (Wed Jun 9, 4:17 pm)
[PATCH] phylib: Add autoload support for the LXT973 phy., David Woodhouse, (Tue Jun 22, 5:38 am)
Re: [PATCH] phylib: Add autoload support for the LXT973 phy., Richard Cochran, (Tue Jun 22, 10:37 pm)
Re: [PATCH] phylib: Add autoload support for the LXT973 phy., David Woodhouse, (Wed Jun 23, 2:00 am)