From patchwork Tue Nov 26 05:03:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai-Heng Feng X-Patchwork-Id: 1200729 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47MWy81NvZz9sPV; Tue, 26 Nov 2019 16:03:28 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1iZT0W-0004Fo-6X; Tue, 26 Nov 2019 05:03:24 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iZT0V-0004FD-2J for kernel-team@lists.ubuntu.com; Tue, 26 Nov 2019 05:03:23 +0000 Received: from 61-220-137-37.hinet-ip.hinet.net ([61.220.137.37] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iZT0U-0003bU-D2 for kernel-team@lists.ubuntu.com; Tue, 26 Nov 2019 05:03:22 +0000 From: Kai-Heng Feng To: kernel-team@lists.ubuntu.com Subject: [Unstable] [PATCH 1/3] Revert "UBUNTU: SAUCE: mfd: intel-lpss: add quirk for Dell XPS 13 7390 2-in-1" Date: Tue, 26 Nov 2019 13:03:06 +0800 Message-Id: <20191126050308.7225-4-kai.heng.feng@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191126050308.7225-1-kai.heng.feng@canonical.com> References: <20191126050308.7225-1-kai.heng.feng@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1851901 This reverts commit 4aa769b43fa4b472b9cd0266861c215ff5fe6e3d. Signed-off-by: Kai-Heng Feng --- drivers/mfd/intel-lpss.c | 20 ++------------------ include/linux/io.h | 2 -- lib/devres.c | 20 -------------------- 3 files changed, 2 insertions(+), 40 deletions(-) diff --git a/drivers/mfd/intel-lpss.c b/drivers/mfd/intel-lpss.c index eda2458a5665..bfe4ff337581 100644 --- a/drivers/mfd/intel-lpss.c +++ b/drivers/mfd/intel-lpss.c @@ -14,7 +14,6 @@ #include #include #include -#include #include #include #include @@ -129,17 +128,6 @@ static const struct mfd_cell intel_lpss_spi_cell = { static DEFINE_IDA(intel_lpss_devid_ida); static struct dentry *intel_lpss_debugfs; -static const struct dmi_system_id mtrr_large_wc_region[] = { - { - .ident = "Dell Computer Corporation", - .matches = { - DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), - DMI_MATCH(DMI_PRODUCT_NAME, "XPS 13 7390 2-in-1"), - }, - }, - { } -}; - static void intel_lpss_cache_ltr(struct intel_lpss *lpss) { lpss->active_ltr = readl(lpss->priv + LPSS_PRIV_ACTIVELTR); @@ -396,12 +384,8 @@ int intel_lpss_probe(struct device *dev, if (!lpss) return -ENOMEM; - if (dmi_check_system(mtrr_large_wc_region)) - lpss->priv = devm_ioremap_uc(dev, info->mem->start + LPSS_PRIV_OFFSET, - LPSS_PRIV_SIZE); - else - lpss->priv = devm_ioremap(dev, info->mem->start + LPSS_PRIV_OFFSET, - LPSS_PRIV_SIZE); + lpss->priv = devm_ioremap(dev, info->mem->start + LPSS_PRIV_OFFSET, + LPSS_PRIV_SIZE); if (!lpss->priv) return -ENOMEM; diff --git a/include/linux/io.h b/include/linux/io.h index a59834bc0a11..accac822336a 100644 --- a/include/linux/io.h +++ b/include/linux/io.h @@ -64,8 +64,6 @@ static inline void devm_ioport_unmap(struct device *dev, void __iomem *addr) void __iomem *devm_ioremap(struct device *dev, resource_size_t offset, resource_size_t size); -void __iomem *devm_ioremap_uc(struct device *dev, resource_size_t offset, - resource_size_t size); void __iomem *devm_ioremap_nocache(struct device *dev, resource_size_t offset, resource_size_t size); void __iomem *devm_ioremap_wc(struct device *dev, resource_size_t offset, diff --git a/lib/devres.c b/lib/devres.c index ca4a18f71798..6a0e9bd6524a 100644 --- a/lib/devres.c +++ b/lib/devres.c @@ -9,7 +9,6 @@ enum devm_ioremap_type { DEVM_IOREMAP = 0, DEVM_IOREMAP_NC, - DEVM_IOREMAP_UC, DEVM_IOREMAP_WC, }; @@ -40,9 +39,6 @@ static void __iomem *__devm_ioremap(struct device *dev, resource_size_t offset, case DEVM_IOREMAP_NC: addr = ioremap_nocache(offset, size); break; - case DEVM_IOREMAP_UC: - addr = ioremap_uc(offset, size); - break; case DEVM_IOREMAP_WC: addr = ioremap_wc(offset, size); break; @@ -72,22 +68,6 @@ void __iomem *devm_ioremap(struct device *dev, resource_size_t offset, } EXPORT_SYMBOL(devm_ioremap); -/** - * devm_ioremap_uc - Managed ioremap_uc() - * @dev: Generic device to remap IO address for - * @offset: Resource address to map - * @size: Size of map - * - * Managed ioremap_uc(). Map is automatically unmapped on driver detach. - */ -void __iomem *devm_ioremap_uc(struct device *dev, resource_size_t offset, - resource_size_t size) -{ - return __devm_ioremap(dev, offset, size, DEVM_IOREMAP_UC); -} -EXPORT_SYMBOL(devm_ioremap_uc); - - /** * devm_ioremap_nocache - Managed ioremap_nocache() * @dev: Generic device to remap IO address for