Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp3404187rdb; Thu, 16 Nov 2023 08:37:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYz4wwPdXaLkJmfe7UTduyvcueIGTelZ0hzdVwoRnqdmKXa0QgcM/AzE6IWTD8d124H2V2 X-Received: by 2002:a05:6a00:2da5:b0:68e:3f0b:5e6f with SMTP id fb37-20020a056a002da500b0068e3f0b5e6fmr16510426pfb.24.1700152652695; Thu, 16 Nov 2023 08:37:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700152652; cv=none; d=google.com; s=arc-20160816; b=slS0Gql5Ujr8Ygv9UpDsbxLe5Sds0KdEGJEZ4tI6Bw0QzXt8PKzEGXA+u8BIFuf+ZE 2HfDcSAmtqR05CcrZtv8l7RCPTTmFiiFpin1nBeeIonIf/YXPLGpLTcSGTl8+X/rcm2A hnv4FwsiuVYr0I2WjykWnTzoOCWNXOAK4DjZ96H6YiVNvuYmZebeirR67DTnssMB0Kyt 5Lwo0vmy8EWMrmjFQB2nqty3hIzDCh9k489Gdz/8IM7RFZJPCdqbEcLaxM4aX/oqAQIE OtTPKpmDYVT4QGhy46F0S+jlyHqbHuJCJNCWReUn0QJHUWW+tFBkX3x/5ayicUdmRvFg y/Ow== 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=ILaY9W3qmO5zULmh/S/7ySRBxngEepXsQ9FvJTowHuE=; fh=04mB984306miECGqdPY1n8HjaMxo7yZprO8G26ozZ9M=; b=Wc5nNyyoV+amClMqTuxnsvc5vjkv0lXIzPU3CFi799lz/LC3+r06gtNVDv/yfJ+Qqe pv9w1ul37xPm3kK4X5RSsW0OnEruM3br1ALp14Ewq1lNBtkX+dBDmfoqFhWuCa8Wxoaz irr283vs5VTllP7x3M/q5LBCY6umegW56CcLHI+Vfyyd4hGj9aNPpqTyTE1q0IDBBvUs vc0Zji029J+ofJHeIShOd/Soycdl2NeEXBTBjItJ/wo824xLEdwKfBVxtUBbiWR+MCd3 x8SFhIsaDa43Rx85UDqLHm0rmPU1Kbd0XQXDb0u+r1ZEJTuFIct9YMUM3ZXxPIdKNJJL Dytw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nEZnt2rc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id q192-20020a632ac9000000b005aba9cdf091si12944816pgq.579.2023.11.16.08.37.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 08:37:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nEZnt2rc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 0909981D80B4; Thu, 16 Nov 2023 08:37:26 -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 S1345022AbjKPQhY (ORCPT + 99 others); Thu, 16 Nov 2023 11:37:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230473AbjKPQhV (ORCPT ); Thu, 16 Nov 2023 11:37:21 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8FE5192 for ; Thu, 16 Nov 2023 08:37:18 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E18AC433C8; Thu, 16 Nov 2023 16:37:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1700152637; bh=QGjuNZrD+uRw5CuViihG4gkRO4nc7+UCIp3DDIGJCWw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nEZnt2rcF36Yic6XVYN9V7YFXGbOoN+z0mEYoVo86GMMaHQNLTfoLmnkzS1r4GHsi wjR01MtYN5Si+JSkGzCStjEzj61iFNifWTQfZVVGci2KIDbHSt9XSIDJbaWHCpWYx5 Oz3dt/QRG2IGVOuZFFn6zsx7zrMf8jKbAnM6Jj0o= Date: Thu, 16 Nov 2023 11:37:13 -0500 From: Greg Kroah-Hartman To: Kory Maincent Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jonathan Corbet , Luis Chamberlain , Russ Weight , "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: <2023111604-visitor-urgency-a97a@gregkh> 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> X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,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]); Thu, 16 Nov 2023 08:37:26 -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 > --- > drivers/base/firmware_loader/sysfs_upload.c | 1 + > include/linux/firmware.h | 2 ++ > 2 files changed, 3 insertions(+) Acked-by: Greg Kroah-Hartman