From patchwork Tue Dec 19 05:38:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sinan Kaya X-Patchwork-Id: 10122533 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D5EC2603B5 for ; Tue, 19 Dec 2017 05:57:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C64DA28D01 for ; Tue, 19 Dec 2017 05:57:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BA9AB28DE5; Tue, 19 Dec 2017 05:57:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E02D028DD1 for ; Tue, 19 Dec 2017 05:57:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=lDeDBd3OsguZcLrAGPpHJXWlJGCDVR6fwKaahGdpHq8=; b=W8Ip+aJ4UaIu1zlYFKIAO7R4XC XQgnQqvwb3DxnGlf93QYDr5WpI6euMWr4Z1PQ/MvlNYDJ7QlNmNPXMD/hCYNqZEtXwPJ6NflGgnui WmtImGW/G5GZVai8sRZjfi2WaDZ6M7OQ6tsJfT6yVtIIyAHyx+ekiH+e9wnO6m/DERlaJu0a435Br 59AAKaqWBK/mg11aGKU2ZZF9EstYsDJKoJuvNnYDXJytVI6CyB6KkmVgzdu61XEn50qUoPafH72VT jgO+/XbGBWwjhhuwhdIFqcdkWE0xDY6lcAujDgNRqF/e4MWBNOQcoFODxRV6VCCVEwARbTOP3hUFZ 9TU3Ib0w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eRAtx-0001oG-I9; Tue, 19 Dec 2017 05:57:17 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eRAsp-00084n-0o for linux-arm-kernel@bombadil.infradead.org; Tue, 19 Dec 2017 05:56:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=xQg+zPWNE9VdQrPSDVATe+IWBxJgdyHcpoHlqYzFob0=; b=G0/fS0C8nd+obEt/MLwyuDg4l KFKPIpD6VoXZeTjblrVD1vx0NZiZOgc/knKfrPQofd/WuvKQSNNNB95LWzfcDfqTfof0TMqMa4aVC 9PxWC7w2/o+fHLLQ4190zgX6+NS3SwKtuLjUmPXG5eFTZVXhk+g85nTGvog7O+27zPxpiY10pjyQ7 DvQE/LjMaElEOSorlAdeHBokDUkFy5uhel+2MzfSE/rxv1EQqzXI+oeAqf0t2er7mRZBhB9MDNecZ FQNgGsmodpyCb6WR53dO2C0kmYHpVI6DoO5ySadv2tXwFl2tWgTqmnzMn5UYc150S2d4OAZznqC/0 pWbcQBSYw==; Received: from smtp.codeaurora.org ([198.145.29.96]) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eRAd7-0001O1-75 for linux-arm-kernel@lists.infradead.org; Tue, 19 Dec 2017 05:39:56 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id AA4A460B17; Tue, 19 Dec 2017 05:39:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1513661981; bh=NXWqNtyGdGxvQpzzddL4FIbs/BwGdBsAioXrYOBWy7s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nwlbwhYLFT3T62SlyAW0mTn1vmAQ++NBk04/dXmlBR+9au4ppSVdCEkZGmWAW9HKR mLObxL2MRuqLborNPYanj5KdJbSxMAP0SiKAlWZUzrQlTnwoLWKkJed9qsr7v3F5J3 0eEFr5hOVx5LaddpKW1Uy9yMCI5Dw3PSY128BA6k= Received: from drakthul.qualcomm.com (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: okaya@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 059106024A; Tue, 19 Dec 2017 05:39:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1513661981; bh=NXWqNtyGdGxvQpzzddL4FIbs/BwGdBsAioXrYOBWy7s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nwlbwhYLFT3T62SlyAW0mTn1vmAQ++NBk04/dXmlBR+9au4ppSVdCEkZGmWAW9HKR mLObxL2MRuqLborNPYanj5KdJbSxMAP0SiKAlWZUzrQlTnwoLWKkJed9qsr7v3F5J3 0eEFr5hOVx5LaddpKW1Uy9yMCI5Dw3PSY128BA6k= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 059106024A Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=okaya@codeaurora.org From: Sinan Kaya To: linux-pci@vger.kernel.org, timur@codeaurora.org Subject: [PATCH V4 25/26] i7300_idle: remove unused file Date: Tue, 19 Dec 2017 00:38:01 -0500 Message-Id: <1513661883-28662-26-git-send-email-okaya@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1513661883-28662-1-git-send-email-okaya@codeaurora.org> References: <1513661883-28662-1-git-send-email-okaya@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171219_053953_567305_8A6669ED X-CRM114-Status: GOOD ( 18.83 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kate Stewart , Greg Kroah-Hartman , linux-arm-msm@vger.kernel.org, open list , Sinan Kaya , Philippe Ombredanne , Thomas Gleixner , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP i7300_idle.h is not being called by any source file and contains calls to pci_get_bus_and_slot() that we are trying to deprecate. Remove unused file. Signed-off-by: Sinan Kaya --- include/linux/i7300_idle.h | 84 ---------------------------------------------- 1 file changed, 84 deletions(-) delete mode 100644 include/linux/i7300_idle.h diff --git a/include/linux/i7300_idle.h b/include/linux/i7300_idle.h deleted file mode 100644 index 4dbe651..0000000 --- a/include/linux/i7300_idle.h +++ /dev/null @@ -1,84 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0 */ - -#ifndef I7300_IDLE_H -#define I7300_IDLE_H - -#include - -/* - * I/O AT controls (PCI bus 0 device 8 function 0) - * DIMM controls (PCI bus 0 device 16 function 1) - */ -#define IOAT_BUS 0 -#define IOAT_DEVFN PCI_DEVFN(8, 0) -#define MEMCTL_BUS 0 -#define MEMCTL_DEVFN PCI_DEVFN(16, 1) - -struct fbd_ioat { - unsigned int vendor; - unsigned int ioat_dev; - unsigned int enabled; -}; - -/* - * The i5000 chip-set has the same hooks as the i7300 - * but it is not enabled by default and must be manually - * manually enabled with "forceload=1" because it is - * only lightly validated. - */ - -static const struct fbd_ioat fbd_ioat_list[] = { - {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_IOAT_CNB, 1}, - {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_IOAT, 0}, - {0, 0} -}; - -/* table of devices that work with this driver */ -static const struct pci_device_id pci_tbl[] = { - { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_FBD_CNB) }, - { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) }, - { } /* Terminating entry */ -}; - -/* Check for known platforms with I/O-AT */ -static inline int i7300_idle_platform_probe(struct pci_dev **fbd_dev, - struct pci_dev **ioat_dev, - int enable_all) -{ - int i; - struct pci_dev *memdev, *dmadev; - - memdev = pci_get_bus_and_slot(MEMCTL_BUS, MEMCTL_DEVFN); - if (!memdev) - return -ENODEV; - - for (i = 0; pci_tbl[i].vendor != 0; i++) { - if (memdev->vendor == pci_tbl[i].vendor && - memdev->device == pci_tbl[i].device) { - break; - } - } - if (pci_tbl[i].vendor == 0) - return -ENODEV; - - dmadev = pci_get_bus_and_slot(IOAT_BUS, IOAT_DEVFN); - if (!dmadev) - return -ENODEV; - - for (i = 0; fbd_ioat_list[i].vendor != 0; i++) { - if (dmadev->vendor == fbd_ioat_list[i].vendor && - dmadev->device == fbd_ioat_list[i].ioat_dev) { - if (!(fbd_ioat_list[i].enabled || enable_all)) - continue; - if (fbd_dev) - *fbd_dev = memdev; - if (ioat_dev) - *ioat_dev = dmadev; - - return 0; - } - } - return -ENODEV; -} - -#endif