[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20120917.132216.1721365693674127210.davem@davemloft.net>
Date: Mon, 17 Sep 2012 13:22:16 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: asv@...go.com
Cc: netdev@...r.kernel.org, afleming@...escale.com
Subject: Re: [PATCH] phy: Replace genphy_update_link() call with
phy_read_status()
From: Alexander Sverdlin <asv@...go.com>
Date: Thu, 13 Sep 2012 09:20:43 +0200
> From: Alexander Sverdlin <alexander.sverdlin@...go.com>
>
> Replace genphy_update_link() call with phy_read_status()
>
> Code in phy.c should not call genphy_*() functions directly, this breaks PHY layer abstraction.
> Some drivers may re-implement "read_status" callback and it's not being called in one place of
> PHY state machine, where genphy_update_link() is called instead. So fix it.
> For drivers that rely on genphy_* implementation nothing changed, as genphy_read_status() calls
> genphy_update_link() anyway.
>
> Signed-off-by: Alexander Sverdlin <alexander.sverdlin@...go.com>
This is a behavioral change, not just a change to make sure the right
interfaces are used.
genphy_update_link() does only a small subset of the operations
performed by the generic read_status callback.
I'm not applying this patch, because all of those extra operations
might be unexpected in some situations and break some configurations.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists