From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 69AC3C197A0 for ; Thu, 16 Nov 2023 16:31:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231287AbjKPQbB (ORCPT ); Thu, 16 Nov 2023 11:31:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230331AbjKPQbA (ORCPT ); Thu, 16 Nov 2023 11:31:00 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D6CFAD; Thu, 16 Nov 2023 08:30:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=RQpjx3xss5JoP0672H6uZ18yK44pM/h/GVN/t8dBRd0=; b=zUupdeqoR0t918i860g0uC1DqU xxvNzeUzj9F5kUBxyeZT/Ji6cezvSWagc5KeDDX+LUJxjLdII+LM5Z4OjR1e7ZeDKO0B57LgkrP4U 84tuXL/t99DwiMwWpOqQFz2GVc2r3uQCHgomervUIlfFvbj5Vc3WG/pzoA8R0IDBEA0PGPiOxk1kE uAKDACBWI6VqlOIpxcjfC7+pLmEPzHhgn2X0ROtVkzjTxdS1fkOp4jKwg3TNBomRhTcof1rZm4Tdf qJh0F/sd9bKPW+3YXrZ4Epw8wjCYqxE0OSyLSrTZRjkyltKOic7hmuIOEVZW9BEKCiUnPjiXkgER7 a2U6Cgdg==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1r3fGP-003yFA-3A; Thu, 16 Nov 2023 16:30:45 +0000 Date: Thu, 16 Nov 2023 08:30:45 -0800 From: Luis Chamberlain To: Kory Maincent Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Russ Weight , Greg Kroah-Hartman , "Rafael J. Wysocki" , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Petazzoni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH net-next 7/9] firmware_loader: Expand Firmware upload error codes Message-ID: References: <20231116-feature_poe-v1-0-be48044bf249@bootlin.com> <20231116-feature_poe-v1-7-be48044bf249@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231116-feature_poe-v1-7-be48044bf249@bootlin.com> Sender: Luis Chamberlain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 16, 2023 at 03:01:39PM +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 > > Signed-off-by: Kory Maincent Acked-by: Luis Chamberlain Luis