From mboxrd@z Thu Jan 1 00:00:00 1970 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 AFD5F364A4 for ; Fri, 24 Nov 2023 16:48:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="u8y+L/N7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12046C433C8; Fri, 24 Nov 2023 16:48:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700844519; bh=aOSyWxsPCSARKTHyqNLlusRc2HF7ChrOhJn8s86UXsQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=u8y+L/N74Nut5tJxqr8hMdvI0Nj4LKerxwOPf666UaRxC7XLfeNBwhQIA4muf0/sy vL1K57nDKxZDNup4Zhzw4Glcm6i5ZB0GkPMsIDIf4lMP5joqsZcpmE7doL8svoNL1i l6R733FuEeSrG5wDOAErGNTF0YufnEZ3U2jFlVQ/6dbVxsdzt0g3JOLgAeN/soTJ0P VRxuGcN8uoulmVTJE9a16feowMBrT81YnpsUcu2Lo8YuY+mPADkurjx2YCxOzLUdoP HM98Eh5aOdFqMEWg6eYpQrEdxha2pCypYuF1BVXBfD84TWY5SM9uYyHl4K4uUQ06Yb KEihAys3IRodw== Date: Fri, 24 Nov 2023 16:48:34 +0000 From: Simon Horman To: Kory Maincent Cc: Jakub Kicinski , Luis Chamberlain , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Thomas Petazzoni , linux-kernel@vger.kernel.org, Conor Dooley , Andrew Lunn , netdev@vger.kernel.org Subject: Re: [PATCH net-next v3] firmware_loader: Expand Firmware upload error codes with firmware invalid error Message-ID: <20231124164834.GT50352@kernel.org> References: <20231122-feature_firmware_error_code-v3-1-04ec753afb71@bootlin.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231122-feature_firmware_error_code-v3-1-04ec753afb71@bootlin.com> On Wed, Nov 22, 2023 at 02:52:43PM +0100, Kory Maincent wrote: > No error code are available to signal an invalid firmware content. > Drivers that can check the firmware content validity can not return this > specific failure to the user-space > > Expand the firmware error code with an additional code: > - "firmware invalid" code which can be used when the provided firmware > is invalid > > Sync lib/test_firmware.c file accordingly. > > Acked-by: Luis Chamberlain > Acked-by: Greg Kroah-Hartman > Signed-off-by: Kory Maincent > --- > > Changes in v3: > - Add the newly introduced error code to test_firmware.c I verified that the error obvserved in v2 when compiling the above file with clang-16 has been resolved. Link: https://lore.kernel.org/all/20231121173022.3cb2fcad@kernel.org/ Reviewed-by: Simon Horman ...