From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D06F7C433F5 for ; Fri, 26 Nov 2021 16:01:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ktKPK/mqjNmhto5of1wMm0otqN9J8U2oJp9TFuVpxaE=; b=ufHjx52hC/HEpo1xwn9P5Fe3tT AFYnbNFDLr9IdgTKSYOMKHssmDglNsjC+BHDLI8yWSbLg6s1B8JgRqExz9FyOMSP5O9x9NiQ1B+rX TiAma5yZbvCLcjtFTGZkPn5blIdhKxadFh9iuhfM4EqEeYQbIjxegWmXP3cEK+kBJITtFso9q0wRD fSyHq8qShf57YqkWyqSuKLGfhTmesOzRrCAoLG5DJIiRovdJJUNsR2tGz+4Vdjc2H3Oe6dsVI1Sts NeLZJT9SpeNsH3SJ3Va46uE4in6hZ48hOnnG0Tv8k+regb6r7hfOcxiMWZUK/IRF0TPUwSbLEhYhz BDx5c/RA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqdde-00B3HJ-OV; Fri, 26 Nov 2021 15:59:50 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqdda-00B3Fn-FS for linux-arm-kernel@lists.infradead.org; Fri, 26 Nov 2021 15:59:47 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 7C1B33201C28; Fri, 26 Nov 2021 10:59:39 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 26 Nov 2021 10:59:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=dmgaTP58NH4ePLiMzG6Qj5sblT+ /q5Jgks1Y7IsxJ78=; b=lmXs7FQqFmEbxO4q8ojSaE+MkGKchooj7FD+9YAJenI cBvdhtXOIlid4c4USb4QSldF6nIIheabMZR4jOXoFoX0JiXPiJ/wHDx7Lv4Y7dvX oHW3KIq+4JBhCBnlJYBZUisllOMC2AgnTvlpVxc7fohBDnm8pKW7C9Td05+26XoM Y5Ws1IK1O+177LTj+Wqgus6YrNSoekUhBk/qd5IfXTgu4BkHcM4QSgfw3ntLQkfF Kn3uGGYRhBM7DDrpQ45/ysVMRvxeZa2J3qKjoNL3bqswu/tDO95MyMg+WCjFgBW4 OAxDyPUdJNS+MgJU6oIEknZ4UPiUr3fmdOQrdJVtVPQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=dmgaTP 58NH4ePLiMzG6Qj5sblT+/q5Jgks1Y7IsxJ78=; b=kF3ABcUMu12eLzyYnO7l+a D0Igwxzy5bB4Cq+QwbP16bPPgKw0cdPH5maJPKcNAq3yEY2/mHgHgrIghT156SQn zgUYJHCrdjmvIOhkfDgZbkv+DDXv/BgD7/cViXcPt0r3lrkt9WKHSpVxn16LSwLA GabdZiYxo92KnT4MypRKbQRGPGN3muO6fxXiLNmu8BZI9RCE8kg/KTSZCiMYreaS E+ISpsqJGTupc+E1I71q7QzsSdzUnC0XifTL6AAeMzK8C8IsPSyCCWdLG/6aKegB 9OPqhljg0kwpejWpYGtztkUv4DYqhh8K1S1QeBfkQ4aP7Ttg5UzkT6WZyL3d8iKQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrhedvgdekudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeelkeeghefhuddtleejgfeljeffheffgfeijefhgfeufefhtdevteegheeiheeg udenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrg igihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 26 Nov 2021 10:59:37 -0500 (EST) Date: Fri, 26 Nov 2021 16:59:35 +0100 From: Maxime Ripard To: Samuel Holland Cc: Pavel Machek , linux-leds@vger.kernel.org, Chen-Yu Tsai , Jernej Skrabec , linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] leds: sun50i-r329: New driver for the R329/D1 LED controller Message-ID: <20211126155935.2zagoe6gfkh5pi22@houat> References: <20211119054044.16286-1-samuel@sholland.org> <20211119054044.16286-2-samuel@sholland.org> <20211119082850.lrfq2wuyzhyvczdi@gilmour> <20211123163945.xj2xmqymj3dkba55@gilmour> MIME-Version: 1.0 In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211126_075946_616163_7160FB40 X-CRM114-Status: GOOD ( 19.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============4711826474890342087==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org --===============4711826474890342087== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ff7kew5vgfu2vnrs" Content-Disposition: inline --ff7kew5vgfu2vnrs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 25, 2021 at 09:26:15AM -0600, Samuel Holland wrote: > >>>> + ret =3D sun50i_r329_ledc_resume(dev); > >>>> + if (ret) > >>>> + return ret; > >>> > >>> You seem to fill the runtime_pm hooks, but only call them directly and > >>> never enable runtime_pm on that device, is that intentional? > >> > >> Yes. I did not want to delay the initial version by adding runtime PM > >> (and debugging the refcounts) when the driver already works now. > >> However, I had runtime/system PM in mind while writing the driver. > >> > >> If you think it is too confusing, I could rename the functions to > >> something like sun50i_r329_ledc_hw_init / sun50i_r329_ledc_hw_exit. > >=20 > > It's not really the functions themselves that are confusing but rather > > that you set them as runtime_pm hooks. >=20 > I do not set these functions as runtime PM hooks. SIMPLE_DEV_PM_OPS only = sets > the system PM hooks, for "suspend to RAM and hibernation." Maybe you are > thinking of SET_RUNTIME_PM_OPS, which I do not use? Ah, right, it's all good then, sorry for the noise Maxime --ff7kew5vgfu2vnrs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYaEEZwAKCRDj7w1vZxhR xfsMAP4rc4xw/hAxBA7YrYauzpDFwW6NfMfLg7G896MyXDz7TAEAiMcCp2cjEa9O WDUvlMV0RLyF7t54wrMybSVPFw/73gk= =OiNf -----END PGP SIGNATURE----- --ff7kew5vgfu2vnrs-- --===============4711826474890342087== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============4711826474890342087==--