Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2571492rwb; Mon, 7 Nov 2022 15:09:01 -0800 (PST) X-Google-Smtp-Source: AMsMyM7lwhIbsPakjIMi/fIop6DhdT+ZI4R+wPusQkbWJse3QGOZw+XySJtEz8PwtVDu6KJoMOsB X-Received: by 2002:a05:6402:322:b0:463:ba70:42de with SMTP id q2-20020a056402032200b00463ba7042demr36722442edw.380.1667862541326; Mon, 07 Nov 2022 15:09:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667862541; cv=none; d=google.com; s=arc-20160816; b=YDT3/kXwLJHeVo13wDRtDcklwnD4UX2dE7aerhZKh0lB4NSBAYKT5ID2MYAweW+36H tzHuT/K3qfbxvlv4fzeXkLKWzhDUz0dUod4d5dJe0Ur+7AYoqTEVKqUUl/oCFU+KAOGU 8ansdvtCSYCQrZm2Iql/tnuMOSU3SCY4Ri1W/JiwuEDC1EtulCRbFp+KxzMinaigtrgG mLTxvARsqOEa8I0UhpUPOBy4bJ8UL/skfRPT++Use3spWnHqem0UYwCmSTwLF8EsCuOC g0QBBv8/nEH3DdAeshkuOKe/WHDXj93J4el/jB6FHLhT1Z5XD56IjhLOON0kpxkW8V79 Sh7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5+xUC75pc7XrJUptIRS+LUax3plYbE0tQGAA58sW+vk=; b=OVEIq40rZAem8RAZAo0vlSjo+bV4XSgr8T82ZaZTmtlJj3+yXxLVhBCIW40kSjpfa2 UoQLtaR8b8C+1l6/tUVHmaq+vTAYglKb1gC6/nv8lqYf4/oBOwc+erBmuPdBf8onTBkT /qRawzf9k00xTqgD+5AiYOxJhsxcYzxR6VVF5XDsZ77eFWQ0cfjFlm/wlAcxngRtot1J Qc1wVM0FeY0GrKZiOPS7CQxSsC/hJcqJZtkIcayghSlVqn3vqzSUJdR3FGkV3z9e5kBw N1VhiwD5r1FiXk/4I/f+xoBPU9dG0sPFni/kAOXcyAlOzp7PFK+fWz9wDvWXnYhjD4Ev 9MMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BZcnB+Cx; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d21-20020a056402517500b00461e95b2721si8510764ede.129.2022.11.07.15.08.39; Mon, 07 Nov 2022 15:09:01 -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=@intel.com header.s=Intel header.b=BZcnB+Cx; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232854AbiKGWzg (ORCPT + 91 others); Mon, 7 Nov 2022 17:55:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232712AbiKGWyt (ORCPT ); Mon, 7 Nov 2022 17:54:49 -0500 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EEE62935D; Mon, 7 Nov 2022 14:54:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667861689; x=1699397689; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=w7zyU0EMZtiBlCMi0pWV2TZ8XEkOY6y3ce2a9bhJ6dI=; b=BZcnB+CxME1goxSDHKYZq6aUQTYRBlC0FG3CyYZHi7R42k3ZLnXUStjX zamkIxAGfDwMnLWs+b2r5St3lIepPgG/6A93inKwD4ZVmgojRLU7GYuSj 2cPMuXoD0tOlzRU+Pk+fgcqH9aAP4LAvxbqoxNMvhwR//OCyKmaM7H5f9 PaIyJY12Mng4cYUw5RhHzcqoS5kBo/oRVaUaQb8mhfcqCKeGVQCcdRrmH WJupKc7xxJQFW03BfxAChGrwXO7pktE8BlraFvHLTMxoaFv1IG1ibwAv3 obDbZXPMw9x87+MpCJZHzz6BaqqXYAZskuML6QW0Q/7kfPsWeL8wguhKU g==; X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="293911839" X-IronPort-AV: E=Sophos;i="5.96,145,1665471600"; d="scan'208";a="293911839" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 14:54:49 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="811012991" X-IronPort-AV: E=Sophos;i="5.96,145,1665471600"; d="scan'208";a="811012991" Received: from jithujos.sc.intel.com ([172.25.103.66]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 14:54:48 -0800 From: Jithu Joseph To: hdegoede@redhat.com, markgross@kernel.org Cc: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, gregkh@linuxfoundation.org, jithu.joseph@intel.com, ashok.raj@intel.com, tony.luck@intel.com, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, patches@lists.linux.dev, ravi.v.shankar@intel.com, thiago.macieira@intel.com, athenas.jimenez.gonzalez@intel.com, sohil.mehta@intel.com Subject: [PATCH v2 11/14] platform/x86/intel/ifs: Remove reload sysfs entry Date: Mon, 7 Nov 2022 14:53:20 -0800 Message-Id: <20221107225323.2733518-12-jithu.joseph@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221107225323.2733518-1-jithu.joseph@intel.com> References: <20221021203413.1220137-1-jithu.joseph@intel.com> <20221107225323.2733518-1-jithu.joseph@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE 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 Reload sysfs entry will be replaced by current_batch, drop it. Reviewed-by: Tony Luck Signed-off-by: Jithu Joseph --- 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 65dd6fea5342..e077910c5d28 100644 --- a/drivers/platform/x86/intel/ifs/sysfs.c +++ b/drivers/platform/x86/intel/ifs/sysfs.c @@ -87,34 +87,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. */ @@ -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 }; -- 2.25.1