Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35790983rwd; Mon, 10 Jul 2023 12:39:43 -0700 (PDT) X-Google-Smtp-Source: APBJJlHYIHnF8NdUhNUkbp8eaLM7g5bAcqH8djFao7CmvrvMsaK4s2ZuPa0INevmn0NzQrlZe7qK X-Received: by 2002:a17:906:a96:b0:977:eed1:453c with SMTP id y22-20020a1709060a9600b00977eed1453cmr10455722ejf.73.1689017982684; Mon, 10 Jul 2023 12:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689017982; cv=none; d=google.com; s=arc-20160816; b=aBHCAMXjGClonq/zgRFluyhaMGoRVvGPsjStI5KOdeMz6GezWP9ebVgJmDJ+vIaHWD TImJ1EXTr37xac/w4wOOlAhy+06hQDj1Ptqv7J2vULOXer2luH+fqyqxpE0pwL9GW4UU PmZgolCt7peHWHMKAg3uaXSEX9tR50KG9yjyArjKcAVToTbUfm5RRw55A2ZGUZ+pFpU/ 21iuRVz+rNRSltk2/blaZTPkYDjomdmRLtbCCKUvR/pbWv4FSwKpFViAUIexXfN+sVrv fb+fuEhgdFcV3wQLtmk4Q4824jAdj3hCo+OGN0iKzRXWbxc8+3ZAqZ65rnCErfQoCoqZ lCNg== 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=+Fkl6uRFZ6SEi4xt6Ns1w0kYviWOqjkUV2A/4lBtjnQ=; fh=cQmvpc0U5iOMzXJ7a0hLlC7c+zeTT817r7/M+HP9yt0=; b=P5RNgy2J9RCd5ioXwQmT+LofBHHWUiMf9xlO561O9DBE2At6JLznDl4pVJoMN4EsDa UNrnSV3fswrMG5uvryzNIY72uEWkZ69+6XsL/GC0ZlakqK7FQdsjAnJ2M96yGsfjrzB7 3Ofqhay2HSNBrwNVQZ8mk8bAQ23+O+CILYCQoxVyZ37qpkHN37f5RQ17d/J9qDloy2V6 wtqV9g7p+hfbadjNkhsXCIBJ3lOFgGWZ9BDYysTVnwmI1HGemyM4Q6K658QvRevE8AAA 8jxTmtF8T2P8hKKcgTX3ivA0oPrYLe1KqS0JeiqaixiYQnz3maSJ9GUnG+wavb7kndjc Atzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d19-20020a170906c21300b00992b17e93f1si284932ejz.47.2023.07.10.12.39.17; Mon, 10 Jul 2023 12:39:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230265AbjGJTQI (ORCPT + 99 others); Mon, 10 Jul 2023 15:16:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbjGJTQH (ORCPT ); Mon, 10 Jul 2023 15:16:07 -0400 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 1BBE795 for ; Mon, 10 Jul 2023 12:16:06 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qIwMT-0005g9-NA; Mon, 10 Jul 2023 21:15:53 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1qIwMS-00DUHa-Gm; Mon, 10 Jul 2023 21:15:52 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qIwMR-003roZ-Ja; Mon, 10 Jul 2023 21:15:51 +0200 Date: Mon, 10 Jul 2023 21:15:50 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Thierry Reding Cc: Guiting Shen , claudiu.beznea@microchip.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pwm: atmel: enable clk when pwm already enabled in bootloader Message-ID: <20230710191550.7y6wukf7w44us4pd@pengutronix.de> References: <20230710144214.63343-1-aarongt.shen@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="sl2u4nnvvfnxkuqp" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --sl2u4nnvvfnxkuqp Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Mon, Jul 10, 2023 at 05:00:45PM +0200, Thierry Reding wrote: > On Mon, Jul 10, 2023 at 10:42:14PM +0800, Guiting Shen wrote: > > + err =3D clk_enable(atmel_pwm->clk); > > + if (err) { > > + dev_err(atmel_pwm->chip.dev, "enable clock error\n"); >=20 > Might be worth to include the error code in the error message to make it > easier to diagnose where the issue is. Something like: >=20 > dev_err(atmel_pwm->chip.dev, "failed to enable clock: %d\n", err); Or (IMHO) still better: dev_err(atmel_pwm->chip.dev, "failed to enable clock: %pe\n", ERR_PTR(err= )); Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --sl2u4nnvvfnxkuqp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmSsWOUACgkQj4D7WH0S /k6CrQf/ZPh7B0v/lMQB6XWIpLZAQoq8phbmh3ZJXFi4z0v5GilJwz3fkO6G5/qo A4x4I1ZLOJcUDd+6n7MPPpKSI6n63GzOnHAJCeE7GcVMdGU/r/ZYyq7ygcZG5tJA 36EBJKhfLOuMEKcP2t3B9PsYfL1U1vX+id8ktFbx7KtqzOEAP2RcyO1gbxpMg0eW MQ/L0vJaypD9BjS19iz9L29CVzEqeHelkEhm1CdahU+Gl3Uqc+DFzlwg1Cz/LyTT gsHK5BB0OmmZcEaKYmpml/v6puUG8O2V+mq1dfff5mHTkWKtEW2IvbNS93hHclz3 E3cqFES0oP8mpOKfBEeFMhW+V2h6Iw== =PsHM -----END PGP SIGNATURE----- --sl2u4nnvvfnxkuqp--