Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp830145rdb; Wed, 6 Dec 2023 00:41:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IF9x89M6sjNnYYIEFzu28xLz9tOoajBxnPeDB21A5TQHMIyAFIzgaNgndJ18eynMASrMlXM X-Received: by 2002:a05:6a20:760a:b0:18b:d207:d857 with SMTP id m10-20020a056a20760a00b0018bd207d857mr400610pze.11.1701852118405; Wed, 06 Dec 2023 00:41:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701852118; cv=none; d=google.com; s=arc-20160816; b=W+d1nexRLKF2mZMJmuLPjhsPwGpyeUzW5YxER9KtluzqBz4oY7ILWyToJtS19NyUaE 6X7WLjxjcnaezOFdmB0GzA5n1NEvacnLvhgUTqBafsyGo/rz48qpZdrqgxG1yNdz7OVi fpcoH786X9YfjIOl+r9tBkpyLrPc/WqPs5RNcNDUUO5xx54NeFp6/KVuSCYwsIbTd4wM 50Ed4IpXnEYfIuDOl/r4XaNv8di/x5/m86EOmbiGO3doYETLQfLfMX73docwX+2jpOiq 9EqsLFlZj+Sz1V5ijULHtatmI5PtBpycbRLVKF/N9DzR7jcXGotIuKoDPA2jJPpNV8WS JlLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=pXU57gWotBm7I/l7GKsWF7uvDD3oXFTjUZ5xXd0u10A=; fh=XnXo3MvdkwAjXVjLy5RwLjmc1BTIJ6se7KvES1bFZHc=; b=GSy3fBVsCjgrABNHLbetRzmqI+6TpKZihUou7K5Vg1thAhFZ3UYoIJpH1ThCRMrdtA iYftp0TEkHHNEEbtizS3bDaxkQvHhrksW0oQgH3uQa8Gt048SDaaAxrDJLurZVC2FOGq 1HwCCLup1sBO/cSu0zTAECHFw1FwNGNq6eTDyBozdNKs7YLom1zYXhOx28gzCeUseorz BLOEVtk6znO5pD9IG5P3SYr+ahhPztPHH/wrLamP6pwylvnQLaerOoqHqniNHIJQpWhU LjQvZ5lX15aOe42wTrlvV8BT/GQCBia8JrhW/xh9tgHnFB1Vio35hW9+Z/yzccR9j+Rg 6AcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ETqbu50v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id v16-20020a17090a899000b002868673f28dsi6093264pjn.156.2023.12.06.00.41.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 00:41:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=ETqbu50v; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8277D8074049; Wed, 6 Dec 2023 00:41:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377146AbjLFIli (ORCPT + 99 others); Wed, 6 Dec 2023 03:41:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjLFIlh (ORCPT ); Wed, 6 Dec 2023 03:41:37 -0500 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45ACBA1; Wed, 6 Dec 2023 00:41:42 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 5FDD220004; Wed, 6 Dec 2023 08:41:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701852100; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pXU57gWotBm7I/l7GKsWF7uvDD3oXFTjUZ5xXd0u10A=; b=ETqbu50vQezP1pXb8hRNCEfD9UrHVYkoav5rUn+OJ+r1F1ZiC6lrr5IATcOV/SRpBJmw3u GyTIlXdyfIqs4MUz5OEYMchaKsBxOVvJltxI0rXq9OUipwfsZFnui9CG3UqFKxP2pYkhWH TR/0/7EG4texGUEY91r3VRox3vwS3IUd4clRgkToG/ml9Ema3JE2lGFiHqj7EnRxhMCBCP Hz07fNdW+BFp4qASZck2gNCF1NT2YwYbXwF8Hgs32pT3DxKxg57k2Sw/iM5dxEODTPlHCH Zl07LYFpAxqGSE1GdRVRvtRC4LWKZcZzOAh8NUc7lEXJngm2ORqbSN5Ac7figg== Date: Wed, 6 Dec 2023 09:41:36 +0100 From: =?UTF-8?B?S8O2cnk=?= Maincent To: Christophe JAILLET Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Oleksij Rempel , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org, Dent Project Subject: Re: [PATCH net-next v2 8/8] net: pse-pd: Add PD692x0 PSE controller driver Message-ID: <20231206094136.4e0b10eb@kmaincent-XPS-13-7390> In-Reply-To: References: <20231201-feature_poe-v2-0-56d8cac607fa@bootlin.com> <20231201-feature_poe-v2-8-56d8cac607fa@bootlin.com> <6eeead27-e1b1-48e4-8a3b-857e1c33496b@wanadoo.fr> <20231204231655.19baa1a4@kmaincent-XPS-13-7390> Organization: bootlin X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 06 Dec 2023 00:41:55 -0800 (PST) On Tue, 5 Dec 2023 19:01:47 +0100 Christophe JAILLET wrote: > Le 04/12/2023 =C3=A0 23:16, K=C3=B6ry Maincent a =C3=A9crit=C2=A0: > > Thanks for your review! > >=20 > > On Sun, 3 Dec 2023 22:11:46 +0100 > > Christophe JAILLET wrote: > > =20 > >>> + > >>> + fwl =3D firmware_upload_register(THIS_MODULE, dev, dev_name(dev), > >>> + &pd692x0_fw_ops, priv); > >>> + if (IS_ERR(fwl)) { > >>> + dev_err(dev, "Failed to register to the Firmware Upload > >>> API\n"); > >>> + ret =3D PTR_ERR(fwl); > >>> + return ret; =20 > >> > >> Nit: return dev_err_probe()? =20 > >=20 > > No EPROBE_DEFER error can be catch from firmware_upload_register() > > function, so it's not needed. =20 >=20 > Hi, >=20 > up to you to take it or not, but dev_err_probe() also logs the error=20 > code in a human readable way and it saves a few lines of code. >=20 > If I remember correctly, it also saves some bytes in the .o file. Oh, didn't know that. > Other than that, it is a matter of style. After some thought it seems indeed better, I will move on to dev_err_probe(= ) in next version. Thanks, Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com