Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp690000lqd; Wed, 24 Apr 2024 13:59:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhB7lTEPCkRR6CaltJB00r22Zzr77qD0n0mJvO/+AznRsVjwAswp5+0eE4iy4CvWfWi1OLgMl31qWkJ9wRnt1Xj710fSsDrd4Q+zxWkQ== X-Google-Smtp-Source: AGHT+IF1/koZLGMMUnG681x3GeYO8zGCafh/D0JdB01xvt1UJ913k3osP1HdK4cILFQmqfXv4mmB X-Received: by 2002:a17:903:245:b0:1dc:7bc:d025 with SMTP id j5-20020a170903024500b001dc07bcd025mr5162705plh.4.1713992386342; Wed, 24 Apr 2024 13:59:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713992386; cv=pass; d=google.com; s=arc-20160816; b=xDfL7dzk6fleeb7w4T8HwWr+0t9Ack0FrHmZocTsg9xE+k6i1Q0+jn/JFLZ3pUSMNY dH0gFai66jjdMhthjNl47CIR2YZr6ZVzjRkySpLuqyikyD3X07H/wZV0ycP4bVbcvydt UwhpVuOT7VHeH33mUNT9y2clH51tExAOBOYk5iuRaqb7ebqNpc6jZaW22LKsvcwcexv7 Xnm27yODjd4CSucALT3OGWwBA/RwEx9NOY4e6I3exIR/GC0DeAWPEIA9bKjuSRkhU7+x YFbeJ4GbG5nIsMtXFoX1NFSHmBElS3PlFPq3drR/t/xgofRT7oAuiRAgI45hFM1u0oas v7Qg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EjjKfIMxVbiuH5x5vPOjW/SYRfysi2ll7vHoz+31iKc=; fh=S8/I/rIFtutChdlxZlJTTTRsXCHA4RFi0h3zsRzRP4c=; b=zgsnVaaLki762Guo9OMcWFCjKzH7V0MkvDHF6yf5gtRNPhD6HDQt3jS4GpP3vKW8fu XZsG7dsstHPROpOeNtvxdiQlH4x+G88efF7bLay1z4p99dcm0xs6KSRbcv00j+d5eImQ NmPMntcKaObNoudcKIUA/uxPBS1fGPP1wTiLImQBs6qfsAMe4y93wy4YtPyiMaQZleZG wwwaAQRDddRZTmDdtWsswF18NmRLNsr/8ZKBadionI3GiEYgHzcu0yJuj8u4nU6GaoiD NpmfP3JrryrrWJHyJE3Daus/YC+na1ZrsTUbSbP3Q1YVYP0Bx95UI8vgRMBqS4Qr6MIT 8eNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V3ncoNB6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157712-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157712-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h15-20020a170902680f00b001e3d54989adsi11555874plk.62.2024.04.24.13.59.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 13:59:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157712-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=V3ncoNB6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157712-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157712-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F254F2857BD for ; Wed, 24 Apr 2024 20:59:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6E8CB156973; Wed, 24 Apr 2024 20:59:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="V3ncoNB6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A3DE13A401 for ; Wed, 24 Apr 2024 20:59:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713992380; cv=none; b=enipPYqg3/7jpB7+SOEVChAZSuwPMTdsj8ZWNvzgKn2HA218wmxDaUTgy+Y8HxiuRfDGMdUJiDcVNXHFG9fQ39tN0AQP+nMKzvI+IltTAIk/G2l1xNV85yQoo93udKN+XSxiovvuNGd6wcQ3N653yBdRfGE1+wohDx/90efK7Co= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713992380; c=relaxed/simple; bh=AtbHrS/SRHBMPOyZWKxUQceaSfXzElYHYKOrTpS9txM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rMipxQaiRvEdCABljtq0iGXztbt4D9Aj+7KSPxZGe4A1BhuL1b3PMqCka2SeJ5GszvgFAzLTZVWWtQ5L284ya7lT99AuFRwtI5C8tnBUTJC7TvELg+03nBYTQwGT1ICMRMdbb5jxiqeiWrbFWqV9CTitoVVxElGZKsUMmNhmVoI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=V3ncoNB6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C67CFC113CD; Wed, 24 Apr 2024 20:59:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713992380; bh=AtbHrS/SRHBMPOyZWKxUQceaSfXzElYHYKOrTpS9txM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V3ncoNB6xJbHsBwLMGl9yGOIyBnLv69hx3sUqeXYBUgZIP8WuXJ+7udJKg5sFbvGM UeZj3tVu15TUd/6GsoH0zjDko2v3Q5MjMKi+/eybAQuFU1yJWtxpxyDA8M9fDou5hx HaK7BQ0ODJU99BoU5QwTQ+tcsFBu+jqbXdHgZE0lx0OYt3fJrKhZj6sjPAgERXr28z hNno4vUlPVVi8FCWTfFo7t2ucUfLNELfU41oZPK3HVTZf7XLdyjF+DrzuvTEeOt6lb Evy30KTiG/24zmWpu3giejMvv8A+XTpKN3vdOMo/HGw4PXLsxadJbk3BuEidaKLL3y lTcXDaxYwTnNA== Date: Wed, 24 Apr 2024 21:59:36 +0100 From: Conor Dooley To: Alexandre Ghiti Cc: linux-riscv@lists.infradead.org, Conor Dooley , Daire McNamara , Cyril Jean , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 2/5] firmware: microchip: don't unconditionally print validation success Message-ID: <20240424-impish-platonic-5edf54ffda92@spud> References: <20240410-opulently-epic-8654bdac3422@spud> <20240410-throwing-sandworm-7d03e4e2f4e8@spud> <46925bcd-ad92-4c02-90f3-11da5c627391@ghiti.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wfvFrLcwJu/CsjjT" Content-Disposition: inline In-Reply-To: <46925bcd-ad92-4c02-90f3-11da5c627391@ghiti.fr> --wfvFrLcwJu/CsjjT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 24, 2024 at 10:26:35PM +0200, Alexandre Ghiti wrote: > Hi Conor, >=20 > On 10/04/2024 13:58, Conor Dooley wrote: > > From: Conor Dooley > >=20 > > If validation fails, both prints are made. Skip the success one in the > > failure case. > >=20 > > Fixes: ec5b0f1193ad ("firmware: microchip: add PolarFire SoC Auto Updat= e support") > > Signed-off-by: Conor Dooley > > --- > > drivers/firmware/microchip/mpfs-auto-update.c | 2 ++ > > 1 file changed, 2 insertions(+) > >=20 > > diff --git a/drivers/firmware/microchip/mpfs-auto-update.c b/drivers/fi= rmware/microchip/mpfs-auto-update.c > > index 33343e83373c..298ad21e139b 100644 > > --- a/drivers/firmware/microchip/mpfs-auto-update.c > > +++ b/drivers/firmware/microchip/mpfs-auto-update.c > > @@ -218,10 +218,12 @@ static int mpfs_auto_update_verify_image(struct f= w_upload *fw_uploader) > > if (ret | response->resp_status) { > > dev_warn(priv->dev, "Verification of Upgrade Image failed!\n"); > > ret =3D ret ? ret : -EBADMSG; > > + goto free_message; > > } > > dev_info(priv->dev, "Verification of Upgrade Image passed!\n"); > > +free_message: > > devm_kfree(priv->dev, message); > > free_response: > > devm_kfree(priv->dev, response); >=20 >=20 > This should go into -fixes, but not sure if you take care of this or if > Palmer should, please let me know so that I can remove this from my list = :) Yea, probably this and "firmware: microchip: clarify that sizes and addresses are in hex" should go on fixes. FYI, I usually set the delegate on patchwork for things that I take to me, so generally you should be able to tell from that. Cheers, Conor. --wfvFrLcwJu/CsjjT Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZilyuAAKCRB4tDGHoIJi 0u8sAQDXfCnN72t0usUB/TxsxGQh0meKlPPQxL/1JGYczIUeNAD+OrnpAgicXCAn OWkhvywo60dsKPA2IK3qlkCprCFbkwQ= =oLCZ -----END PGP SIGNATURE----- --wfvFrLcwJu/CsjjT--