Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3399362rdb; Thu, 16 Nov 2023 08:31:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6dGJoMCHyvBKMttaw1fIsQQNKnw7k5JjIvjZwSRoN5Bbj5MdnCr0KuLgbptVtyhosThbZ X-Received: by 2002:a05:6830:1bdc:b0:6d6:3926:9a2b with SMTP id v28-20020a0568301bdc00b006d639269a2bmr9247253ota.26.1700152273922; Thu, 16 Nov 2023 08:31:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700152273; cv=none; d=google.com; s=arc-20160816; b=Rmx+7GsSl8QbxpRORVoLUoVt7YgQETVDVJeIChKJJoYQx4hv9K+DxIAK4opiypG7r5 x2Dsyn6xGdbPB0X/VTqp/ofHYPZ8Z8pfQn3o5CV4ZPBVJfFoU7kVhfFRKWD5W0kJPa1a 8tRAbemI0RNHao0D4C3KI/loU6fRp4t1Qko96STqeGYW2wGaTEDsWrXSIfm0D6jqAYBl tBR/PmJtr8ccLTlXCuuVs8QGRON+JKNRayRvNlU2ZLaVlAwc19saE0zVc6ksvdEDtyRs i56wDYr7GnsadZ6XE0ySGTkYqnzuJGVX8McfgRyRz53AYezDDfv1fbyCqtJTslQu+qKA WE4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=RQpjx3xss5JoP0672H6uZ18yK44pM/h/GVN/t8dBRd0=; fh=NPZcIsbxYDZd1aTjL1fp2lgBoOabxAlgpO9kORq+hCA=; b=TvtBiFzEcQw6RNIveTaFV82cO+CMk2LYad9sxopI2Cpm5VNkvKyKMXlsI9CNlFihzS aUtYLMwRtT98Y0d7FByS8SmK/qNMfOQXkrDj66T332/Fd/LhCpVI+WjZqYMpOWLiWVVg XZJQArpl4pPI2d7dt+NBik9UjosWlur1aEKy3lcgifKrwCGc8qLGVkQ4CW9HBOFl+omz Sfhuon+Hj3WhXtsJf3fZs+wtDdpscEKD0EBowM4EpukcSPPO9d8XMfo/sPd8LYaWtZcv BlznaWfa+3F0U//GIvshqvpm7Qq8/+pOalpkCv8B6fc3Et1mHfAMr+s8N9sKXstov/8M 56rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=zUupdeqo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id dq4-20020a0568300ec400b006ce4610204bsi4475163otb.163.2023.11.16.08.31.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 08:31:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=zUupdeqo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id BDAD68122F1C; Thu, 16 Nov 2023 08:31:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231238AbjKPQbB (ORCPT + 99 others); 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 X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 16 Nov 2023 08:31:10 -0800 (PST) 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