Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753518AbbK3CSw (ORCPT ); Sun, 29 Nov 2015 21:18:52 -0500 Received: from mail-bl2on0112.outbound.protection.outlook.com ([65.55.169.112]:11763 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752751AbbK3CSq convert rfc822-to-8bit (ORCPT ); Sun, 29 Nov 2015 21:18:46 -0500 From: Duan Andy To: Andrew Lunn CC: Lothar Wa?mann , "David S. Miller" , Fabio Estevam , Kevin Hao , Lucas Stach , Philippe Reynes , Russell King , "Uwe Kleine-K?nig" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , Stefan Agner Subject: RE: [PATCH] net: fec: fix enet_out clock handling Thread-Topic: [PATCH] net: fec: fix enet_out clock handling Thread-Index: AQHRKRk2yV8ik/j4gEuk1Xs5hLkIYJ6xaVuggAA8TYCAAihBUA== Date: Mon, 30 Nov 2015 01:46:29 +0000 Message-ID: References: <1448631550-943-1-git-send-email-LW@KARO-electronics.de> <20151128164337.GF32356@lunn.ch> In-Reply-To: <20151128164337.GF32356@lunn.ch> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=fugang.duan@freescale.com; x-originating-ip: [123.151.195.51] x-microsoft-exchange-diagnostics: 1;BY1PR03MB1434;5:Wm2/y0ORC7a6ih4gAHxQiyAXnSAn06M38g0Xeqto4Yh/NBRkR57QZWk9LIk5uuNeNZFjT8Fq5RueEOa+0wTnJrJy6Zcv0Wnxqmrp6a7r9jxwzmvJ6FDNCqPov/AEstLPsXOXsg50+HM+QdjdZPuilQ==;24:nEAZZEgkqmHOMG7RQHPDk0v+ITzQu5vdttlPqn3FydpjDMMJOSJZl/PTZCTIIhWshd/CHJHHb3FmhKCHEFf9d2fLh05eP8QZBouIQ5imcZc= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1434; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(10201501046)(3002001);SRVR:BY1PR03MB1434;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1434; x-forefront-prvs: 0776C39A48 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(199003)(377454003)(189002)(189998001)(40100003)(54356999)(5003600100002)(97736004)(586003)(10400500002)(1220700001)(19580405001)(6116002)(76176999)(5002640100001)(2900100001)(110136002)(19580395003)(5001960100002)(33656002)(2950100001)(66066001)(74316001)(77096005)(86362001)(76576001)(50986999)(102836003)(3846002)(81156007)(101416001)(5004730100002)(122556002)(87936001)(5008740100001)(106356001)(106116001)(1096002)(99286002)(92566002)(105586002);DIR:OUT;SFP:1102;SCL:1;SRVR:BY1PR03MB1434;H:BN3PR0301MB1219.namprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2015 01:46:29.9272 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1434 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1498 Lines: 30 From: Andrew Lunn Sent: Sunday, November 29, 2015 12:44 AM > To: Duan Fugang-B38611 > Cc: Lothar Wa?mann; David S. Miller; Estevam Fabio-R49496; Kevin Hao; > Lucas Stach; Philippe Reynes; Russell King; Uwe Kleine-K?nig; linux- > kernel@vger.kernel.org; netdev@vger.kernel.org; Stefan Agner > Subject: Re: [PATCH] net: fec: fix enet_out clock handling > > > When MAC is not ready with clocks disabled, it is not necessary to > > supply clock for PHY. In fact, PHY also is not ready, why does it need > > clock ? > > How about the case of the "PHY" is actually a switch? You can use the > MDIO bus separate from the MAC, you can configure the switch while the > MAC is down, etc. Packets can be flowing in and out of switch ports, > while the MAC is down. You only need the MAC up when the host wants to > send packets. > > Andrew Do you mean PHY switch also use the enet_out clock ? - If not, this topic is not related to the patch. - If so, we should add flag check, we can disable the enet_out clock when the phy is not switch or switch phy doesn't use the clock in real case, which can save power. And the patch title is not right, not "fix" since it is not a issue, just different usage for different cases. Regards, Andy -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/