Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967675AbdDSVTU (ORCPT ); Wed, 19 Apr 2017 17:19:20 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:36041 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967507AbdDSVTO (ORCPT ); Wed, 19 Apr 2017 17:19:14 -0400 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH] net: arc_emac: switch to phy_start()/phy_stop() From: Alexander Kochetkov In-Reply-To: <5ed9e534-d134-2ba1-0276-0bc8bd949eb1@gmail.com> Date: Thu, 20 Apr 2017 00:19:11 +0300 Cc: "David S. Miller" , Philippe Reynes , Peter Chen , Wei Yongjun , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: References: <1492612195-16601-1-git-send-email-al.kochet@gmail.com> <5ed9e534-d134-2ba1-0276-0bc8bd949eb1@gmail.com> To: Florian Fainelli X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v3JLJO7w006646 Content-Length: 1098 Lines: 38 > 20 апр. 2017 г., в 0:08, Florian Fainelli написал(а): > > This looks fine. If you wanted to go further, you could move the > phy_connect(), phy_disconnect() calls down to the arc_emac_open() > respectively arc_emac_stop() as this would also allow the PHY device to > be fully suspended when the interface is unused. I’ve checked patch phy_connect() is called from arc_emac_open() and phy_disconnect() is called from arc_emac_stop(). So, I’ve made mistake in the commit message. Thank you for review. > > 19 апр. 2017 г., в 21:22, Sergei Shtylyov написал(а): > > On 04/19/2017 05:29 PM, Alexander Kochetkov wrote: > >> The patch replace phy_start_aneg() with phy_start(). phy_start() call > > Replaces. > >> phy_start_aneg() as a part of startup sequence and allow recover from >> error (PHY_HALTED) state. >> >> Also added call phy_stop() to arc_emac_remove() to stop PHY state machine > > To arc_emac_stop() maybe? > Sergei, thanks for spell and gramma checking. Regards, Alexander.