Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932613AbcKJMBV (ORCPT ); Thu, 10 Nov 2016 07:01:21 -0500 Received: from hqemgate16.nvidia.com ([216.228.121.65]:4643 "EHLO hqemgate16.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755492AbcKJMBT (ORCPT ); Thu, 10 Nov 2016 07:01:19 -0500 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Wed, 09 Nov 2016 16:00:37 -0800 Subject: Re: [PATCH v3 3/5] net: asix: Fix AX88772x resume failures To: , , , , , , , , , , , , , , , , , , References: From: Jon Hunter Message-ID: <77fa76d6-ef63-47db-a316-93b3a0c0705b@nvidia.com> Date: Thu, 10 Nov 2016 12:01:03 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: X-Originating-IP: [10.21.132.110] X-ClientProxiedBy: DRUKMAIL102.nvidia.com (10.25.59.20) To UKMAIL101.nvidia.com (10.26.138.13) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1653 Lines: 41 Hi Robert, On 29/08/16 14:32, robert.foss@collabora.com wrote: > From: Robert Foss > > From: Allan Chou > > The change fixes AX88772x resume failure by > - Restore incorrect AX88772A PHY registers when resetting > - Need to stop MAC operation when suspending > - Need to restart MII when restoring PHY > > Signed-off-by: Allan Chou > Signed-off-by: Robert Foss > Tested-by: Robert Foss After this commit, I have started seeing the following messages during system suspend on various tegra boards using asix ethernet dongles ... [ 288.667010] PM: Syncing filesystems ... done. [ 288.672223] Freezing user space processes ... (elapsed 0.001 seconds) done. [ 288.680505] Double checking all user space processes after OOM killer disable... (elapsed 0.000 seconds) [ 288.690193] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done. [ 288.698987] Suspending console(s) (use no_console_suspend to debug) [ 288.706605] asix 1-1:1.0 eth0: Failed to read reg index 0x0000: -19 [ 288.706613] asix 1-1:1.0 eth0: Error reading Medium Status register: ffffffed [ 288.706621] asix 1-1:1.0 eth0: Failed to write reg index 0x0000: -19 [ 288.706629] asix 1-1:1.0 eth0: Failed to write Medium Mode mode to 0xfeed: ffffffed [ 288.759167] PM: suspend of devices complete after 52.772 msecs Interestingly, it only seems to happen if the ethernet is in a disconnected state when entering suspend. I have not had chance to look at this any further, but wanted to see if you had any thoughts. Cheers Jon -- nvpublic