Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2485850pxa; Mon, 3 Aug 2020 18:00:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7Ei/zUyF8hUhs90ZhRoILXkZvXt9HOI5jb7dzWoRjllUKr4ZG1cX7LZrn+/theXlzRTwS X-Received: by 2002:aa7:c688:: with SMTP id n8mr6000475edq.345.1596502833349; Mon, 03 Aug 2020 18:00:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596502833; cv=none; d=google.com; s=arc-20160816; b=rFu3kkyezQygS5a7LqxTdngG1FWkwgzQ1mjHepJnRGTXUOkzmG3VYU/Qpbcs1ujyVA VqczC85QTPbZ0TNnlYihe5PryGGA4KiUHLaIS/rF2HKSo4pdtZO98DM4ONOpXU6Gj3q1 RaYtiUgzDBeScXm7N2dcztB1EXU/OUTnrodO2MBo5Em8QeuPoM2Xyp9umtbOC2U7L+1o PSFRj3OL7TdV16AUICLhA5xmxfxjeMcVOI4CjbI0o5LaWeyS5aJPciV0sp4QdpcSqjsl g0JMB1hB7dLI5JeNvKPrx4fN9KWfHRy63MUyqZL8ZFE6LBweKDi4KPKnETrnqJyjEe5e +XuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=AeCLReiSFnAjWwa9rjJ0OJC+P14ZUjUTPfkQQUYokrQ=; b=UFxLeMwOvTeN1OyOlp4R75jN5w1pXF9sQNrBxcEd02NEbBeGw0ZqmnJjD8yyoVueqb N9rXjRsENv+kUi6kZetyAacC5mwscoUlX5GQ1aSwQPdZGjYlTYqXPzb73UNG5YoEvyjn O0x5bWIkHJvP6Kqeybw5S0Z9i2EyIzvXPb4a+FsIXjuTGaiKv33TsKsnLmie5pP/d/Bo /kBdGHD4b6DtVnZqQYmjbgWy9wk18VrjyyhJj6BADSoPjVOZ6hjGnlupzj+PHSbpPTVH Y2IiL8wqzdEHfl4YUBQlPzOoTpR4yHpnyEuLPCG4qwCfJdLJDzxn/fKlAErGjpz6QMvn iBkQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm22si13998633ejc.191.2020.08.03.18.00.10; Mon, 03 Aug 2020 18:00:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728826AbgHDBAC (ORCPT + 99 others); Mon, 3 Aug 2020 21:00:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726276AbgHDBAC (ORCPT ); Mon, 3 Aug 2020 21:00:02 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D35DDC06174A; Mon, 3 Aug 2020 18:00:01 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 91BBD12787B36; Mon, 3 Aug 2020 17:43:14 -0700 (PDT) Date: Mon, 03 Aug 2020 17:59:59 -0700 (PDT) Message-Id: <20200803.175959.2039460326230906074.davem@davemloft.net> To: Jisheng.Zhang@synaptics.com Cc: peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, kuba@kernel.org, mcoquelin.stm32@gmail.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: stmmac: fix failed to suspend if phy based WOL is enabled From: David Miller In-Reply-To: <20200803165647.296e6f21@xhacker.debian> References: <20200803165647.296e6f21@xhacker.debian> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 03 Aug 2020 17:43:14 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jisheng Zhang Date: Mon, 3 Aug 2020 16:56:47 +0800 > With the latest net-next tree, if test suspend/resume after enabling > WOL, we get error as below: > > [ 487.086365] dpm_run_callback(): mdio_bus_suspend+0x0/0x30 returns -16 > [ 487.086375] PM: Device stmmac-0:00 failed to suspend: error -16 > > -16 means -EBUSY, this is because I didn't enable wakeup of the correct > device when implementing phy based WOL feature. To be honest, I caught > the issue when implementing phy based WOL and then fix it locally, but > forgot to amend the phy based wol patch. Today, I found the issue by > testing net-next tree. > > Signed-off-by: Jisheng Zhang Applied.