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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: David Miller
Date: Monday, June 7, 2010 - 1:18 am

From: Richard Cochran <richardcochran@gmail.com>
Date: Sat, 5 Jun 2010 16:00:17 +0200


I think this is overkill.

One, and only one, PHY driver wants to maintain a boolean state and
we're adding a full 32-bit flags member to the generic PHY device
struct to accomodate this?

Andy if you have ideas to use that state via ethtool or whatever in
the future, you come back to us when the future arrives and you've
implemented the code in the generic PHY lib code to do that stuff.

As it stands right now, that code doesn't exist so accomodating it is
just silly.

I also think worrying about the phy_dev->priv pointer being misused in
the future inside of this driver is a completely bogus argument by any
measure.

We have many cases all over the kernel tree, in drivers and elsewhere,
where we encode integer states in what are normally pointer values
when we need to maintain a small piece of state and don't need to do a
full blown memory allocation to allocate a piece of extra memory to
hold that state.

Richard, please just resubmit your original patch and I will apply it.

Thanks.

--
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)