Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1117192ybc; Tue, 19 Nov 2019 14:56:48 -0800 (PST) X-Google-Smtp-Source: APXvYqyJDN183Trg+Ya3MGmz0xAMX2jmw4aUmtRBKewY9DdP1ypubc4qq5ExwXDraxhaYfeKgAIT X-Received: by 2002:a17:906:f90d:: with SMTP id lc13mr280172ejb.154.1574204207896; Tue, 19 Nov 2019 14:56:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574204207; cv=none; d=google.com; s=arc-20160816; b=LnwZJm7BK1q/l+wijEVmgSQ4aixGxKdtMIhW3YudCcOox/ehqi9yIAPbrpz4Fv8mv8 g6WnPoEyzaOjn8vjDVGoyE4Bg0uPlj1wit0FaKDxh2A0oDwO2L2uBHxtbE5BS48UXA0p FjM5HNPcaKQjr7/5l2l+c7ejh0bGVxz5EnMdzXcySBE8dpLSr04UAqThpOBSx2Rsgl+0 jLjcPaxZEULXcVK/RZado+jhJH2+zYWuf7TDoy0+uMQxSJjKqIWOO6U0ll6D14bMuYLm 7EXLahUxyQk4b4QEzyIVLzV1S0wBAqKypRIMV7rd5rZNIbf+OkUKFbCouBZE3RNV5jY7 pwuQ== 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=bgv6Qml5mwZ0kBZ6fbfrdi3Jqq+VAXrDt98x0V1eVXg=; b=jQ8fMOxSJRgxCvdm+7Yw9H1zp8kR7nE1lHTYGbSjWuFxySRzGfHMDwfAng/yqDgTfc pRaMwj+vPv8SfxCFFu7WDN5nVfg+x8UPF7/V4vDuzZXTEaaWJjMWW2Xur/xY5mHuy2rg 2s99n48fchOls9tu4Yq/RxE2/i1x/gN2bo+9RSeS5gyNp8LigZ2FuwAY/xMWAQ1KFN5z uTKH3OozCuam2PhRHZJuWB6TyI1YGJ5zPRTEvWCFK965FwCx3VIbVXDsf5UREPPhO9T4 9Hd8htt2K6f9TZsOOAx3IAwaNgNbvG+koArsrXQ/4BDgoXxbY5gzPlnAnUdjvWZutofY m3rg== 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 x37si18055564edd.228.2019.11.19.14.56.24; Tue, 19 Nov 2019 14:56:47 -0800 (PST) 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 S1727295AbfKSWzP (ORCPT + 99 others); Tue, 19 Nov 2019 17:55:15 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:46190 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726196AbfKSWzO (ORCPT ); Tue, 19 Nov 2019 17:55:14 -0500 Received: from localhost (unknown [IPv6:2601:601:9f00:1e2::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 3F1551424DB5B; Tue, 19 Nov 2019 14:55:14 -0800 (PST) Date: Tue, 19 Nov 2019 14:55:13 -0800 (PST) Message-Id: <20191119.145513.561465860770576481.davem@davemloft.net> To: hslester96@gmail.com Cc: fugang.duan@nxp.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v3] net: fec: fix clock count mis-match From: David Miller In-Reply-To: <20191118121826.26353-1-hslester96@gmail.com> References: <20191118121826.26353-1-hslester96@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 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]); Tue, 19 Nov 2019 14:55:14 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chuhong Yuan Date: Mon, 18 Nov 2019 20:18:26 +0800 > pm_runtime_put_autosuspend in probe will call suspend to disable clks > automatically if CONFIG_PM is defined. (If CONFIG_PM is not defined, > its implementation will be empty, then suspend will not be called.) > > Therefore, we can call pm_runtime_get_sync to resume it first to enable > clks, which matches the suspend. (Only when CONFIG_PM is defined, otherwise > pm_runtime_get_sync will also be empty, then resume will not be called.) > > Then it is fine to disable clks without causing clock count mis-match. > > Fixes: c43eab3eddb4 ("net: fec: add missed clk_disable_unprepare in remove") > Signed-off-by: Chuhong Yuan Please fix the commit message typos pointed out by Andy Duan and resubmit, thank you.