Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp6323639imd; Wed, 31 Oct 2018 09:59:49 -0700 (PDT) X-Google-Smtp-Source: AJdET5f5Dzv+r4t+MxQq9Xt2/MO4VqceIM3n+WA+04EPTb+G5afcvt2leAqYbVtgXzBrzUx2EV0n X-Received: by 2002:a62:8a91:: with SMTP id o17-v6mr4252047pfk.184.1541005189914; Wed, 31 Oct 2018 09:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541005189; cv=none; d=google.com; s=arc-20160816; b=lqresGaAMHGa+D3s5ypFnw9L8mJWynX0be2tB1BTEf8eRTGWdlZbFgJ0+Z7g3w1fR5 OZ0D6KCkzA727pER69UWJvCh/pBbBOkuJpDvgo2GbiXyM6WQfvcxASE+D/0J3OvjNBYT 8fw2HSdM6AO7glXeDB+w/EXC9l/Jb+8i1gQWWE0oeXHfPY9ZhegCLnX70O+fsaBxYACu NDAgBXXF0Jd0l9DjgZGhlbAs7bXZuIRo1sMSy+KIviqrV5WmoYl9IjL6ExmNRivoaXeE zKGl6fa043HM9ZeJQy4uIm5G4HdtdJWXFpLj889ySpqIvZwnzEhk+4pbhUC4Rc020pSu ELrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=YcHrPScesMh0+OaPr8QrCgRct5i3YMVTYI6zQV6z4r8=; b=BP42M/xs5M2kZIA/CEhK81DlDb5nWAqm4nKQhJLFAvpGj2JC3l3X3mVzws9mjOMkGE 3RSL2wLZZJmT/zNklo+Di73i4sgPEiAqzwtFfMBP/jIhWlS3H5oagQIvmi82LkEAYV3G 4T1yt89suDZzq6CYcY8oDkMqRaI3vtumEDu3t7vu2YUeWdBX/aLtqt7S42/E+T0MKUln GnARGWkjrkZfLmBdVV6/K4ws+3JqWHFvinAI4Sa2vT97JRRFIJCohJZR4LTeLRd4v0Rz LpUpNhXBFfw0KwJONfY9MQYTsvOPc4Xdk3iCYRT4zb8EUxgschLmY4jZkOx92Z4FfCZF cygw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b3-v6si26221506plx.106.2018.10.31.09.59.34; Wed, 31 Oct 2018 09:59:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729911AbeKABzK (ORCPT + 99 others); Wed, 31 Oct 2018 21:55:10 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:36888 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727991AbeKABzK (ORCPT ); Wed, 31 Oct 2018 21:55:10 -0400 Received: by mail-oi1-f195.google.com with SMTP id w66-v6so9912467oiw.4; Wed, 31 Oct 2018 09:56:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=YcHrPScesMh0+OaPr8QrCgRct5i3YMVTYI6zQV6z4r8=; b=BI03DTFsQ5FCHKIWpif4B62pZ2sdJzE2Ju/FelsfvNviKmwR0RDBkrNtju4lPjWIFt d4Vg5Yw3vC6UApMnR2zJfb9ITlnPemzthXDSa3PdQDfMvBrHJvFDf2XkCD0V4EsJJZWM 1h+rNpWs0+2Gi+Pnib0Am2+H6ouuWITdpoIGiV6/h7hqpbJNr2xY9rijPCIxJi3qncXi qlAAilqkKLoQuXEFKlyn/z5Z3lRdAuEYJ3g5frGKJ0dUh2jWca0ecPH5T9VS60bchkTI 8S9W5GSlndawx1LQnNIXukf8cm6lH4r9CMUWDLqwFaZL0uZIHu4V5rX5HLf68hJGNpnK cFKA== X-Gm-Message-State: AGRZ1gL6aks4WGaHqmHxgNvTL4dzePYXBNNxfqRj1tz7NB4FfrtWklYH 6plJUNtB0NjHF0inJd/ZzQS8xWQOHBIsUfEZvjU= X-Received: by 2002:aca:d694:: with SMTP id n142-v6mr1085335oig.32.1541004979327; Wed, 31 Oct 2018 09:56:19 -0700 (PDT) MIME-Version: 1.0 References: <1540957223-30984-1-git-send-email-harini.katakam@xilinx.com> <1540957223-30984-5-git-send-email-harini.katakam@xilinx.com> In-Reply-To: From: Harini Katakam Date: Wed, 31 Oct 2018 22:26:08 +0530 Message-ID: Subject: Re: [PATCH 4/4] net: macb: Add support for suspend/resume with full power down To: Claudiu Beznea Cc: Harini Katakam , Nicolas Ferre , David Miller , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Michal Simek , appanad@xilinx.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Claudiu, > Hi Harini, > > I applied these patches on net-next/master cloned from [1], updated this > moment, but I don't have a phy_dev member in struct macb. Maybe you wanted > to use netdev->phydev ? > > Thank you, > Claudiu Beznea > I apologize. Yes, I'm using netdev->phydev and it was uncommitted on my branch @@ -4264,8 +4264,8 @@ static int __maybe_unused macb_suspend(struct device *dev) netif_device_detach(netdev); for (q = 0, queue = bp->queues; q < bp->num_queues; ++q, ++queue) napi_disable(&queue->napi); - phy_stop(bp->phy_dev); - phy_suspend(bp->phy_dev); + phy_stop(netdev->phydev); + phy_suspend(netdev->phydev); spin_lock_irqsave(&bp->lock, flags); macb_reset_hw(bp); spin_unlock_irqrestore(&bp->lock, flags); @@ -4300,9 +4300,9 @@ static int __maybe_unused macb_resume(struct device *dev) macb_writel(bp, NCR, MACB_BIT(MPE)); for (q = 0, queue = bp->queues; q < bp->num_queues; ++q, ++queue) napi_enable(&queue->napi); - phy_resume(bp->phy_dev); - phy_init_hw(bp->phy_dev); - phy_start(bp->phy_dev); + phy_resume(netdev->phydev); + phy_init_hw(netdev->phydev); + phy_start(netdev->phydev); Will fix in next set. Regards, Harini