Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp535835rdb; Fri, 17 Nov 2023 06:07:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IEOCdzQv9TCmqJTvl/73qniWS5/PiFDH/j/ux2LhZTc2smLWf+5FAGxKHLfKsMpUpyr0Jib X-Received: by 2002:a05:6a00:2f08:b0:6be:2901:2cd with SMTP id fe8-20020a056a002f0800b006be290102cdmr16393630pfb.10.1700230064267; Fri, 17 Nov 2023 06:07:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700230064; cv=none; d=google.com; s=arc-20160816; b=OFwuNxKi6UyeZlcqnzW+qHdPgittXByM9y9Hmdr7eaTfbd1jSYLLJu2kDEHU63LtV1 eRKVbGFE0EnNsrVqS2nW3iRtci9LQSaEG2kgLQT6nd8gz8pJToeGl6zxq8E4oNN9+8Da xJxs1xPkJe805NqhraZPaVRHZYwKZAd4N7i91tJUD7xvh10HAnh2yrzV40h9MBeYQrU3 e7/yb0Vr57XwD/gxOLk8du/xoQUHMXrEfQUn9XEdbtDTREWEFdrcV5SGFWdYOaHFg5QV zNi7t/JHMw01JHGQwwANwmylJsAO6at6uZCm2btaumBqqwXnCP3YVQZ4meDoft7pz0zX JPsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MS+xmKtqjDZ/M5t29RFVVypGVB4vFBAUGa6e5AlAOCQ=; fh=gIbNVqIU+rtn1XKa9iMBrd7KqvIvXGYSwHRtGgXfiJw=; b=DICZfJ/uTHaSs5C7BaarPMNRKqNod6nI5Rq4Z+PwSQeo/5fGcxRsouxtGP7xnDl4De Qn9+hUq7bUpryaNZIaM5lcdaDZp8LfAwiSCicoKKdmkgWxO9fmUshHTaYSSNjBtc/zc5 oniTl2DwoAdQi+ARtATIfX63MwQ6sxQo7QJUHvfS3i13SbcfcabXRR7tG8N9kLEr68PG XqJBUd7wHiSRhmwbKnMCLXkSyHfr9LWtXqWZj1U8bwRcf/Rjm2Viibb1RuZ+sfSFN+I5 nffJTCcsypnLOh6kUIrgVCVzfZw2acsH12QrUv2Kf2zLwTdYPKKbSDTrNNDjPyouPwoV MO7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="Q/xnXEcN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id p123-20020a625b81000000b006be322191desi1896876pfb.112.2023.11.17.06.07.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 06:07:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="Q/xnXEcN"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C5ED780A73FF; Fri, 17 Nov 2023 06:06:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231179AbjKQOGx (ORCPT + 99 others); Fri, 17 Nov 2023 09:06:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbjKQOGv (ORCPT ); Fri, 17 Nov 2023 09:06:51 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC0F7C5 for ; Fri, 17 Nov 2023 06:06:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=MS+xmKtqjDZ/M5t29RFVVypGVB4vFBAUGa6e5AlAOCQ=; b=Q/xnXEcNd608d6/bAxOEWOb6Ts apPho17iQjkY8qLuX5F5LWJI5eWVIQ79yYccBBSdw1W0YHJ+dF29mop7mZAMPlRyJXgD2NX9Xhys1 9QkMY/0uKE3fZN0DAkgxo+7P3GxLn5JGk67DARDI4RT1j84v0KbwyW1v+Tm7KEJCzmSI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r3zUa-000Rbp-3x; Fri, 17 Nov 2023 15:06:44 +0100 Date: Fri, 17 Nov 2023 15:06:44 +0100 From: Andrew Lunn To: Greg Kroah-Hartman Cc: Kory Maincent , Luis Chamberlain , Russ Weight , "Rafael J. Wysocki" , Thomas Petazzoni , linux-kernel@vger.kernel.org, Conor Dooley Subject: Re: [PATCH] firmware_loader: Expand Firmware upload error codes with firmware invalid error Message-ID: <548c3b60-60ce-4166-9943-224e03152cc5@lunn.ch> References: <20231117-feature_firmware_error_code-v1-1-92c973a50847@bootlin.com> <2023111720-slicer-exes-7d9f@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2023111720-slicer-exes-7d9f@gregkh> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 17 Nov 2023 06:06:53 -0800 (PST) On Fri, Nov 17, 2023 at 08:45:59AM -0500, Greg Kroah-Hartman wrote: > On Fri, Nov 17, 2023 at 11:27:53AM +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 > > > > Acked-by: Luis Chamberlain > > Acked-by: Greg Kroah-Hartman > > Signed-off-by: Kory Maincent > > --- > > > > This patch was initially submitted as part of a net patch series. > > Conor expressed interest in using it in a different subsystem. > > Consequently, I extracted it from the series and submitted it separately > > to the main tree, driver-core. > > https://lore.kernel.org/netdev/20231116-feature_poe-v1-7-be48044bf249@bootlin.com/ > > So you want me to take it through my tree? Sure, but if you are relying > on this for any other code, it will be a while before it gets into > Linus's tree, not until 6.8-rc1, is that ok? My idea was that you could create a stable branch, which can then be pulled into netdev and arm-soc. If you don't want to do that, we can ask Arnd to take it, and he can create a stable branch which we pull into netdev. Andrew