From patchwork Sat Nov 19 16:24:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 23277 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp779533wrr; Sat, 19 Nov 2022 08:24:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf5vIM2DQhfQ6PqWYba4PDbEZjCOuWVojlloDC6NZmpaS6EnW9doSgtFXgB0D7WONKSw+gh8 X-Received: by 2002:a63:fc49:0:b0:476:941a:8582 with SMTP id r9-20020a63fc49000000b00476941a8582mr11208482pgk.321.1668875083679; Sat, 19 Nov 2022 08:24:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668875083; cv=none; d=google.com; s=arc-20160816; b=v+G13XkcWRTIE0Kfa1u4JdCPAdnfWQr7NBZIPP5x79i3E35osfIRImYxU54qNNB2C6 drzTEshJ1GqiqAmhF6hDJIvdrzso0lhHoF0x2/JmTm3/B3cKRDHBGX6ZuB6XiT+9/9p5 qk4YfvsvRdBS2NwuOKkmWA/stwhlS6AqlN/iM/VeSq0yK51DS03BMdhSzqsgOmMyNba6 1mIiJBeD2r3vW62/n6DDxVV4iu3oqXhP4NQo9djcALH05WFJv6qXtq+Haj1CNRbeIGE+ JbDdPBvv5yXuhLcojGEz9yXIMAWZPfjz4P7HaNdrKiHT+fEOToLxUOY5bxY3V5fZlx3S 3duA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=5AS5Z+BBmecwdSUivSO62SfVuMhcWxNStj6XBmnAtfA=; b=r4o0g7MKzXfw3xMLCbE23ehviGWsTc08b1Y4mfaZlz04AFFninbLcd13RfVt7duRY8 0LpG+8/jUssRePJQpxSOUvDMERHtAAA0NtR3t+I5mS7InjHZBpfa2oQVPJV/CJoP85CI oBwxNlomExEnH7LZGRZx0HFw56xvgb/jr9gA8Q6PO84rrhzRK+yEo1C8eoprt0YhOc5n lY1kuK7dNcCNZ9cUnzcfLdPv22rJOQo9lqe20eSsug3ypwyFMTCBnHp9F4NYtzUuHab5 eZikR954/D9Ejy7OZyMq4L+EZ0A+g3MuWt0EamrKg5JKTA+s7/zDO6/lJ1V5JJjbMTn8 lSJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xVXMdFjJ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s10-20020a17090aba0a00b002180fb55c0asi9026283pjr.154.2022.11.19.08.24.31; Sat, 19 Nov 2022 08:24:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=xVXMdFjJ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231388AbiKSQYI (ORCPT + 99 others); Sat, 19 Nov 2022 11:24:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232895AbiKSQYE (ORCPT ); Sat, 19 Nov 2022 11:24:04 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8B82326D4; Sat, 19 Nov 2022 08:24:03 -0800 (PST) Date: Sat, 19 Nov 2022 16:24:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1668875042; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5AS5Z+BBmecwdSUivSO62SfVuMhcWxNStj6XBmnAtfA=; b=xVXMdFjJ9V4dIlbifdGWCutNp8/aEU4rRHkrJFTqz8pDk+8kbYMq8L+k2rrRDrjQvpeVBr fGLlxGjTDREueW8X61Z4MGNO9FTCsn7FMH05zNNsTcaaGbAnmJHwPh55OXTYnM4x6winHP jsz/8C2Dz4u2MUE2rkzifr9CzDEmv9ABDgIhDiDxI/OortVJmwm/YDT+5lKdA2KRPX85y1 L4bbg6rARJNojV1rm9BllFVht/9TWA4aG49AG2POuZlWHCD2Judlc6tilFl1hG5Vl3kGZq oIzh7Li4I+PQbysbBe0jxghUAir4fMiGW5QkuXkgM9mPFFSJwhMuehLlhvOcOw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1668875042; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5AS5Z+BBmecwdSUivSO62SfVuMhcWxNStj6XBmnAtfA=; b=3+MMmdGmM2N2JOtuVxy4kpsn1fLTa0nE3ZUVWpSfw5KSSd8sL2rt1SIP5HxIRfUzegy3Fs 7clBbIyZxsDeoFDA== From: "tip-bot2 for Jithu Joseph" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/microcode] platform/x86/intel/ifs: Remove reload sysfs entry Cc: Jithu Joseph , Borislav Petkov , Tony Luck , Sohil Mehta , Hans de Goede , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221117035935.4136738-14-jithu.joseph@intel.com> References: <20221117035935.4136738-14-jithu.joseph@intel.com> MIME-Version: 1.0 Message-ID: <166887504113.4906.18024308117030745196.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747331272330861188?= X-GMAIL-MSGID: =?utf-8?q?1749942359708490107?= The following commit has been merged into the x86/microcode branch of tip: Commit-ID: bf835ee852be38e9fab1fdb330eccdd9728aec34 Gitweb: https://git.kernel.org/tip/bf835ee852be38e9fab1fdb330eccdd9728aec34 Author: Jithu Joseph AuthorDate: Wed, 16 Nov 2022 19:59:32 -08:00 Committer: Borislav Petkov CommitterDate: Sat, 19 Nov 2022 11:23:53 +01:00 platform/x86/intel/ifs: Remove reload sysfs entry Reload sysfs entry will be replaced by current_batch, drop it. Signed-off-by: Jithu Joseph Signed-off-by: Borislav Petkov Reviewed-by: Tony Luck Reviewed-by: Sohil Mehta Reviewed-by: Hans de Goede Link: https://lore.kernel.org/r/20221117035935.4136738-14-jithu.joseph@intel.com --- drivers/platform/x86/intel/ifs/sysfs.c | 29 +------------------------- 1 file changed, 29 deletions(-) diff --git a/drivers/platform/x86/intel/ifs/sysfs.c b/drivers/platform/x86/intel/ifs/sysfs.c index 65dd6fe..e077910 100644 --- a/drivers/platform/x86/intel/ifs/sysfs.c +++ b/drivers/platform/x86/intel/ifs/sysfs.c @@ -88,34 +88,6 @@ static ssize_t run_test_store(struct device *dev, static DEVICE_ATTR_WO(run_test); /* - * Reload the IFS image. When user wants to install new IFS image - */ -static ssize_t reload_store(struct device *dev, - struct device_attribute *attr, - const char *buf, size_t count) -{ - struct ifs_data *ifsd = ifs_get_data(dev); - bool res; - - - if (kstrtobool(buf, &res)) - return -EINVAL; - if (!res) - return count; - - if (down_interruptible(&ifs_sem)) - return -EINTR; - - ifs_load_firmware(dev); - - up(&ifs_sem); - - return ifsd->loaded ? count : -ENODEV; -} - -static DEVICE_ATTR_WO(reload); - -/* * Display currently loaded IFS image version. */ static ssize_t image_version_show(struct device *dev, @@ -136,7 +108,6 @@ static struct attribute *plat_ifs_attrs[] = { &dev_attr_details.attr, &dev_attr_status.attr, &dev_attr_run_test.attr, - &dev_attr_reload.attr, &dev_attr_image_version.attr, NULL };