Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1548684rwb; Wed, 16 Nov 2022 20:44:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf6F6fHL24CzUoWKKKqgr3hzCmT/vXF3EX1vymDfdPV8JlUDStFHTZUOYcGIfeJIATK3fbDk X-Received: by 2002:a17:906:7848:b0:7ad:b286:72da with SMTP id p8-20020a170906784800b007adb28672damr779194ejm.152.1668660242098; Wed, 16 Nov 2022 20:44:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668660242; cv=none; d=google.com; s=arc-20160816; b=h2PWmD7Cpma/VMBtP6QcIbMzS7Ae98kvBHeKUBP4YdRnMLaZOE++AmomAd8d8DKAbG qk2ooP0WdhN76jyQzNcDdttPdAS16h58FgK1mYgJn/JbIEV9QrCJCbdn7k77RiS4uxlz XfF7PtKcI+/HXsOpfj4kiYNr5YYhyjoihuc/p1sxRt7Fb5VEUtWJF28cIN5GngxBZb8+ adjcy31pWzBhfAB9BuegcCuZfoJtwUbAeL+LyMzs0+Iy5wpY4c+GctA3FIhL+SeistAz jmQ10cSJVtblLC3Hj13UO71LVCl8O6UJfkB5dscKGeydjTR/Ecb6ljz4dyBxoX2OHBkX rxvA== 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=oatQLEH1561L20qyiyevNMI//GrryrjtjKVSINeJhKE=; b=S9DHZZ9VLnKGPONoqh7hKbafywBgEPx5AJxS4ub6iAl6quXvRbuGfxVK79xJJBTOIl pxcnTKcpbIwzE6LpkakXYwosA2JXu4Xi9mA3VbqEsJhIXpMFfVZmq20XfVt4Iw/SLt3X VBCdjdRj+Eo01gvBv68jdfY06X74WWpPL80d66o7uicj9oNkRoTyEUyBnjSEpERbmIKL ZdwSZQMnwOReewu1RLNYSNqa51e7dRB/JLiFFodwueqitYmpszI/uxGtJphF7FMiJn6l B6C8d3seoKYDptex0uYZTL0OpQEEp0XTtwKT/GqsPbW2Bbpl3wJpyHswZSjdRp2/jQgt oIYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="ljJ4G/V2"; 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 z10-20020a05640235ca00b004618cd22f7bsi54683edc.142.2022.11.16.20.43.40; Wed, 16 Nov 2022 20:44:02 -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="ljJ4G/V2"; 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 S239166AbiKQECy (ORCPT + 91 others); Wed, 16 Nov 2022 23:02:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238829AbiKQEBB (ORCPT ); Wed, 16 Nov 2022 23:01:01 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 925C029C89; Wed, 16 Nov 2022 20:01:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668657660; x=1700193660; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Gmza1G150+4XD9IZbY/Rx3JOOXuaXvwwojOF2IVVSDM=; b=ljJ4G/V21n2qBczG5xDDIrbw1lQd60vB8/Aq6Bm56Tl0a5LiPHldSH3c pQytHmCfXFntWgiHrWs9sWpKpEklHlB4tmD1OyPamURkjaR4+pRE0oBgB 6TAAUPrj/5Zw8ALz3hMyL4wCLmQCC3fNUPGxu+behi0CjyJ7A/pZF4PgQ i9WQy14ZxjBZyvLi2IQK8bDADgwgBLr4wczqaF/Py77FGcr3O88NUe9VJ uMHXLoLGZDAdqQEc1N6Oe0XUrsC2p7eaIzu5dIh03j9+wlHtGEiBKkIZv c9FLfHc8NaPL5wBhiVw1AyVsB/eTWnJtsLYMWasxwjFGUzUt+/k0M0T/p w==; X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="292455980" X-IronPort-AV: E=Sophos;i="5.96,169,1665471600"; d="scan'208";a="292455980" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2022 20:01:00 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10533"; a="590462715" X-IronPort-AV: E=Sophos;i="5.96,169,1665471600"; d="scan'208";a="590462715" Received: from jithujos.sc.intel.com ([172.25.103.66]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Nov 2022 20:00:59 -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 v3 13/16] platform/x86/intel/ifs: Remove reload sysfs entry Date: Wed, 16 Nov 2022 19:59:32 -0800 Message-Id: <20221117035935.4136738-14-jithu.joseph@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221117035935.4136738-1-jithu.joseph@intel.com> References: <20221107225323.2733518-1-jithu.joseph@intel.com> <20221117035935.4136738-1-jithu.joseph@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 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_PASS,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 Reviewed-by: Sohil Mehta Reviewed-by: Hans de Goede 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