Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp6177604imd; Wed, 31 Oct 2018 07:58:30 -0700 (PDT) X-Google-Smtp-Source: AJdET5e6KxjB3vQDf8o7EVrKSoKIoekm41wf23ZHJT4Wiuh66g8g+gUr/+cQORNkRPTlngJ6R8lV X-Received: by 2002:a17:902:20ca:: with SMTP id v10-v6mr3861725plg.182.1540997910750; Wed, 31 Oct 2018 07:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540997910; cv=none; d=google.com; s=arc-20160816; b=fl3Y/8j9tmOKxIUuKA4VDqY7qwbkqKalCKnMx7XsKpJ/zz+YHTOoO2kGPjuzMTpMvQ ComSbCsTCmRybqrXNG/2ziUbAxmrfcNTyU6tyAtPNacAosel/genjgqCVLtm61B+lhja ufHwShQ9ZCGGkSV8wFX/oEvS/4lHzK/SqUzSW+DCw9mO+IluIW1/UOMae0gUiG+nMsJ7 blswgsZZvQ0R96oXFzJcBiq0YCdrDNXYF/OZbmq9V480lfyzw5C6783TPTw1ThzW6/iW fI0EbZMLyKVOsvbhk0n01cKlqjJD+K8QK2NXBmiBIJks4frIuHBvOpJdjOHpQOrZ8/C5 iaeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nTaMe4Ijrb/hWbV8eZwRWwAayNCVKm8ZNUHkV4/eQzk=; b=oYR0NT/DDiEaYW5XpblfAl+lnkdVLsMzTinsvQUhtD8Z48GUGER+I5bJflz0eKqYel QAs823uiwwfOM+/KyI6XsWPQjFXrhGko3KJE5Y4HfiHOc5t9lQ7h+wyDG4A/+lrqVbOp nRUmcr26Q/H3VbL1yKJZEmaR5ZiysR0F15m02coOiBUmX77/gU/Womy8gFlFXIpuNHZP /Uk5vMuEKDJneA7J7rXp/CD0lmnjx61oHFbiI1QcCpHUOHQO8bSkPHH2Ou5DjVSwM9Fg XQH0mYf/4ET1UqMaOLJGMEL06Jur6rPUvsnxGRQhafmirKt6qd2xKipk5JW92dzBEmKz RBWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=3VWElvvJ; 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 m9-v6si3069088pgi.580.2018.10.31.07.58.12; Wed, 31 Oct 2018 07:58:30 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=3VWElvvJ; 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 S1729426AbeJaXw1 (ORCPT + 99 others); Wed, 31 Oct 2018 19:52:27 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:47260 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729356AbeJaXw0 (ORCPT ); Wed, 31 Oct 2018 19:52:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=nTaMe4Ijrb/hWbV8eZwRWwAayNCVKm8ZNUHkV4/eQzk=; b=3VWElvvJPoO7Dvbjim5iP3SctJunpopQqQYEqG9KtdWWr4I16S3o2VoVe0doeGzZB7z9unH1GnguNTlEa7v3xEWvPL1NqjhMKpuCA4MyTdQrx52ch6cET2Xeb+yaPIG7huIRTlDpzzj2ZzuOhbwkZ1ebrZM3gRQgZeKQRsR5Vfo=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1gHrse-0006Jh-Uk; Wed, 31 Oct 2018 15:54:00 +0100 Date: Wed, 31 Oct 2018 15:54:00 +0100 From: Andrew Lunn To: Harini Katakam Cc: nicolas.ferre@microchip.com, davem@davemloft.net, claudiu.beznea@microchip.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, michal.simek@xilinx.com, harinikatakamlinux@gmail.com, Harini Katakam , Shubhrajyoti Datta Subject: Re: [PATCH 3/4] net: macb: Add pm runtime support Message-ID: <20181031145400.GH20889@lunn.ch> References: <1540957223-30984-1-git-send-email-harini.katakam@xilinx.com> <1540957223-30984-4-git-send-email-harini.katakam@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1540957223-30984-4-git-send-email-harini.katakam@xilinx.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 31, 2018 at 09:10:22AM +0530, Harini Katakam wrote: > From: Harini Katakam > > Add runtime pm functions and move clock handling there. > If device is suspended and not a wake device, then return from > mdio read/write functions without performing any action because > the clocks are not active. > > Signed-off-by: Shubhrajyoti Datta > Signed-off-by: Harini Katakam > --- > Changes from RFC: > Updated pm get sync/put sync calls. > Removed unecessary clk up in mdio helpers. This last bit has me worried. The MDIO bus is a shared bus with a life of its own. You can have multiple PHYs and switches on it. The PHYs can for a different Ethernet MAC. Switch drivers will expect to be able to address the switch when the interface is down. The FEC driver did something similar for a while. I had to make MDIO read/write runtime PM aware, otherwise i could not access the Ethernet switch hanging of its MDIO bus. Andrew