Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp502627rdh; Thu, 23 Nov 2023 09:36:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHN9CZ/mvNr0/lu/glaDX/+Z2r7YOuG3cvE/IEwwDWDUrP9sN9yS1Bo2Va29I4PZytAmsUg X-Received: by 2002:a17:90b:393:b0:282:e10b:34b6 with SMTP id ga19-20020a17090b039300b00282e10b34b6mr164733pjb.39.1700760988432; Thu, 23 Nov 2023 09:36:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700760988; cv=none; d=google.com; s=arc-20160816; b=Y1ZeSWGsgNStmD8OSxcuzswwyy9t7MIrDcA0ol4uohe7EO9lkD61nu+B92PtAVsHPK /KuD8NsLXLY/J3ZZ3535ffhaYWYMwaN+UM33GyJ5153vsZpxSuvEvb1CaIyIKeA2Mfpz m+0BQ4svPL+rv8VOyv6KPOlQXLgzpSv0ZCPapXgOP/CyLvuxowRYAduG7mS2j0lGmGHs vaQ4470aMxpr+RJIP8hf6tcFehpf63mKYasm0KXvR687WP8dWFU56THquyNPh8XuWNTc tvpFXDFNtQvmZgwTp0pigjM9qrNusApw3cNVSS0asPVvFAT6T8hrmstv8aoN/+Pl1U7s YB1Q== 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=DYPYtSLLPz4NBe/qevP2zHBdsVcdwsZp5Y8/oSxjn4s=; fh=gIQqAJR49Ja6lukJ+acVlTsrT2CEypM5OGXnyI1P7zE=; b=OcLuNX2sSRkZiWdBH7KYBVmMKWZuoxqXT9TTFkWBiznHvY/XCwLD+nApgfTExSmXb0 KA+dMbooe225x8a9uRawEY0ekOfMz2F3GXTh73DWw2B165MSW0FzC8N+oy7YdIve8Lhv Sw6ud2lISNl1go3bBdSWUDsL+DNXvzQVYJ1/dszrJhuhpqgrXN5lP+BZiOEu9y5uodgO HZmgrNQgFvEOtZ6gsQ+I994PuTt254bywH4a31y1r1pNDVYhaSEOzl9bvWbI6JyDyA3M dKtkhwG4L5qIqx+z1x1VVvA4ajafjMoGA0pwZZdUT0wjYvv+AQ3ap4USEKE29WkqPwjV KyEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id r59-20020a17090a43c100b0027d088ae385si1667399pjg.96.2023.11.23.09.36.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 09:36:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8089582AD72F; Thu, 23 Nov 2023 09:36:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345417AbjKWRgJ (ORCPT + 99 others); Thu, 23 Nov 2023 12:36:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbjKWRgI (ORCPT ); Thu, 23 Nov 2023 12:36:08 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD7A011F for ; Thu, 23 Nov 2023 09:36:14 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r6Dca-0000Hu-Og; Thu, 23 Nov 2023 18:36:12 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r6DcZ-00B5cU-BT; Thu, 23 Nov 2023 18:36:11 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1r6DcZ-006qY3-2G; Thu, 23 Nov 2023 18:36:11 +0100 Date: Thu, 23 Nov 2023 18:36:10 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Greg Kroah-Hartman Cc: Frieder Schrempf , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Matthias Kaehlcke , Frieder Schrempf , Anand Moon , Benjamin Bara , Icenowy Zheng , Rob Herring Subject: Re: [PATCH 1/2] usb: misc: onboard_usb_hub: Add support for clock input Message-ID: <20231123173610.d6ytwlpbpcqng5pv@pengutronix.de> References: <20231123134728.709533-1-frieder@fris.de> <2023112329-augmented-ecology-0753@gregkh> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="vdyxpcye55rpoaff" Content-Disposition: inline In-Reply-To: <2023112329-augmented-ecology-0753@gregkh> 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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 23 Nov 2023 09:36:25 -0800 (PST) --vdyxpcye55rpoaff Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Thu, Nov 23, 2023 at 01:55:57PM +0000, Greg Kroah-Hartman wrote: > On Thu, Nov 23, 2023 at 02:47:20PM +0100, Frieder Schrempf wrote: > > + err =3D clk_prepare_enable(hub->clk); > > + if (err) { > > + dev_err(hub->dev, "failed to enable clock: %d\n", err); > > + return err; I suggest to use %pe (and ERR_PTR(err)) here. > > + } >=20 > But what happens if clk is not set here? clk_prepare_enable() just does "return 0" if the clk argument is NULL. > And doesn't clk_prepare_enable() print out a message if it fails? clk_prepare_enable is silent on errors. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --vdyxpcye55rpoaff Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmVfjYoACgkQj4D7WH0S /k60Sgf9EIMAyid9PgcCWUFFbJtFNmTeRepSh9ej1g3njBiFowXw/VM/cGKLZ6Pn REMlndIq0Qy3BuRWLVGhpwM90rYyHEAXUZvAbaFZ1MTZEeP7yy1DDOY8LYuj6M1I pxS837HVoDzyW7h+OdZn/PPcdi/JeUZJ+bB8noi0xI8HZB/eqQPs3GQzkV21kBaM Su8HU85R3S0Ut3tuHcZLPphYoYzAPQnkWkGd1yEVvRBES3wal5idus7BsfWCVA/t PmCu9WOZjuI4jwiaMe/4qYEaN//fEYATe+wkQbU0DY1qloJ/25G4vzrHblSaqBVz 2Re9n6rYDZz57NAfip8wvdSBRwy/pw== =upyH -----END PGP SIGNATURE----- --vdyxpcye55rpoaff--