Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1938705pxb; Fri, 5 Mar 2021 03:34:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJwpaRZkg3LiCNeaf1KlZsMIZcldgsDHrxtunMkK4HUdxBH64CALXJyrPbDiGqtIvOw5tH9d X-Received: by 2002:a05:6402:384:: with SMTP id o4mr8738768edv.244.1614944069351; Fri, 05 Mar 2021 03:34:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614944069; cv=none; d=google.com; s=arc-20160816; b=r+b7YccF3RFwR4MvzhkWVs3ZvQiCMbfIDM5Ku3kxUGtH/CV3vGg669tkv73EEqrdPS ip4nTyzoad2x/D/6d+wzRLmMmU/xVLWAWpv6l/YXkyBVm57ALHzjJeAaGJHYppK2xlMm PjA+mpEawN+NR55kWKsa8AZxqLzId1/4AhV+ytJVvMapH2P8XfNi4IakgrLg9x9ZiBSM EcWbGU8SRh+Jqy1J/EsFHYu3qgwiTv197l1hkRth2gOWrvofQKIn+KoLOYBY6dkahitB bRF6JLPJMzpdkiEZY2GBSsJGIgYP/hElqUkB7k7J6iNzfRAwRJQYgWe3bamXPHEX3vOV IeIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=G50dMr4DBa6UwnL+YjEJX6kzonCzhtiUhPTzNHk9itA=; b=eaHLCcHPAxlm4KZbTXgkbPVHo4mi88LeGbJbSNDCymBq6SD+BdZP3LxkP1O5AOZJxB n305ULR4ZKxx4koXriLObb8hsSgg9VEoQnE++o0eLpqZjLzkVcwkZxA4T4hnTSUwyfkE DFev6dC4ykvDNd89awvGSgWxmS3gKGgPtoyEZ/KFFcAzcx1bJHI9ng+j+Mp/NvrLzaVN sBMDNhSAKSAP53irplIazECpxFoKLKO9Iyxmnc0hXfAQp5UC5nWV8yMWfP0lsj8iYI2n JYNI9q0ezl963A/n37nQQToNCuBvqc/zDENyQI41jlxRYgEJTLpL3k4Z9nVplrHY4Nha toxg== 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 p2si1341745edr.107.2021.03.05.03.34.05; Fri, 05 Mar 2021 03:34:29 -0800 (PST) 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 S229558AbhCELc5 (ORCPT + 99 others); Fri, 5 Mar 2021 06:32:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbhCELc3 (ORCPT ); Fri, 5 Mar 2021 06:32:29 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D96D0C061574 for ; Fri, 5 Mar 2021 03:32:28 -0800 (PST) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lI8gk-0004qL-UY; Fri, 05 Mar 2021 12:32:10 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lI8gi-0002hy-Gg; Fri, 05 Mar 2021 12:32:08 +0100 Date: Fri, 5 Mar 2021 12:32:08 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Tong Zhang Cc: Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Jakub Kicinski , Vincent Mailhol , Oliver Hartkopp , YueHaibing , Zhang Qilong , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] can: c_can: move runtime PM enable/disable to c_can_platform Message-ID: <20210305113208.3wm6fvqeunut2yci@pengutronix.de> References: <20210301150840.mqngl7og46o3nxjb@pengutronix.de> <20210302025542.987600-1-ztong0001@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="tedc23qcg7ntrk2r" Content-Disposition: inline In-Reply-To: <20210302025542.987600-1-ztong0001@gmail.com> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --tedc23qcg7ntrk2r Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 01, 2021 at 09:55:40PM -0500, Tong Zhang wrote: > Currently doing modprobe c_can_pci will make kernel complain > "Unbalanced pm_runtime_enable!", this is caused by pm_runtime_enable() > called before pm is initialized. > This fix is similar to 227619c3ff7c, move those pm_enable/disable code to > c_can_platform. I can confirm this makes the warning go away on a Congatec Atom board. I didn't do any further runtime tests. Tested-by: Uwe Kleine-K=F6nig Thanks Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --tedc23qcg7ntrk2r Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmBCFrUACgkQwfwUeK3K 7AkanQf9G3uCIVa8WjFfyEnHR5Odw85asNQY6UqEntHOLnR5zslZrVtjknyTXj4I O5tWJ1mB4l5n4Aqje5lHIHKTrkW8bx4kGBfAl94YxfPK6hjDlLivmL/SjHJB1C+t UUBuVLAu23ay580qX7YRcOIh3PTK+URXQcZwQCu3TlVe4s3SUl+fMKU8CeKVpvEr q03UFaTgoM5rVKqg54zI9V+NkHJHcABw/fCxsXo204ZLSeCJckjxHvNWSG1uPlvZ 9BaGRMYn87+bMOdMOAEFtz85WagHS9fKl/BW2FeOCY/1q+dcJJSKUkr5RWr2qyHD Wb/nFrcn1fgjNYASlbFEO3glnLiBWw== =yGiz -----END PGP SIGNATURE----- --tedc23qcg7ntrk2r--