Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4500270pxb; Thu, 14 Oct 2021 06:29:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxK5v74v5RstSp0NR3l3/1/EJXAu4/nxf2/qgyXcnHoi4VhbTNUopkTZS4+2tKqkY3deOI X-Received: by 2002:a63:de41:: with SMTP id y1mr4241690pgi.93.1634218190521; Thu, 14 Oct 2021 06:29:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634218190; cv=none; d=google.com; s=arc-20160816; b=BKtUyjG6m6I2XMWYulxk0xeAhf8e4Ay74Z8yGIPTxQ7Jds0HsomB7BmYND6/sJFyE3 gGzH0v4Nog/AbXql+x0M7trAgXBfiKpLLz+AcCQTSJ0z6uurdgKxSqx3XgZnUIfxVOjW eFnSRW6Cg/Xjm0xpvrvvdnnhlr+AZFRDgdAyoC/A9XzRLCgJS11U9gnkYX7xTMJtzyt2 VnSxHyntGl0lfnbG1IBtFiAr1Il5NMLSUlQazD4Zak5+6c/7qCL3NFCE0/w/DSCLN1J0 1VuAnJ0ccEn0e5kn6mICLYTmMdCWw9L6a95Lk02f0AHk/Wo9iNFKLFU7pV2bac1MsW3Z 4jRA== 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 :message-id:date:subject:to:from; bh=HlIwDS7+3NteDzxP6NA+dPacZ0KJW9vYajfNA60GAus=; b=ZoNyPxpx4TFOpbsWYeyu4E96B5V7H72YGjr80YjRZcAnoJG0ceagydauXqu5/7bATX b67PYTxC85ooLDmTskZKU32uncAnS9vVklGR3yrvOogPE/a8Wr0O/KQd8rydG+Xki7Ev mhsROFDNZj2KQYzJBOhxD6Ov5e/gMIeradlGUR417lrHtG6hs+zQOWj4UABuRYu/QQPf NwER82Xpm8sZ59Xdc8wa2Xp8rs2jvblruHayvZ+Uj1+sX1StBKCbUdBhFKah/Ud+/egV H1hqhsJaB3xGn9FYAPGd/GOlR89Fb9c028+lTl2fsy1LqUP2WUjAi58PhDKZvflMeWR/ Dsow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z21si3899163pgv.590.2021.10.14.06.29.37; Thu, 14 Oct 2021 06:29:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231538AbhJNN20 (ORCPT + 99 others); Thu, 14 Oct 2021 09:28:26 -0400 Received: from mga02.intel.com ([134.134.136.20]:28810 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231267AbhJNN2T (ORCPT ); Thu, 14 Oct 2021 09:28:19 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10136"; a="214838151" X-IronPort-AV: E=Sophos;i="5.85,372,1624345200"; d="scan'208";a="214838151" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2021 06:26:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,372,1624345200"; d="scan'208";a="626798350" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga001.fm.intel.com with ESMTP; 14 Oct 2021 06:26:12 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id D82AF361; Thu, 14 Oct 2021 16:26:19 +0300 (EEST) From: Andy Shevchenko To: Ulf Hansson , Eric Biggers , Adrian Hunter , Raul E Rangel , Andy Shevchenko , linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Subject: [PATCH v3 0/5] mmc: sdhci-pci: Remove dead code and deduplicate Date: Thu, 14 Oct 2021 16:26:08 +0300 Message-Id: <20211014132613.27861-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It appears that one of the supported platform magically worked with the custom IRQ handler (any hints how?) while having two PCB designs with an opposite CD sense level. Quirking it out reveals the code duplication and dead code. Patch 1 is code deduplication to save few LOCs. Patch 2-5 are dead code removals. In v3: - dropped the fix as it has been applied (Ulf) - added tag (Adrian) - elaborated commit IDs with their short descriptions in patch 3 (Adrian) - corrected dependency in patch 5 (Adrian) In v2: - redone fix to use ->get_cd() instead of quirks (Adrian) - due to above transformed previous clean up to the current patch 2 - added a new patch, i.e. patch 3 - added commit IDs to patch 4 (Adrian) - mentioned dependencies on previous patches in patch 5 and 6 (Adrian) Andy Shevchenko (5): mmc: sdhci: Deduplicate sdhci_get_cd_nogpio() mmc: sdhci: Remove unused prototype declaration in the header mmc: sdhci-pci: Remove dead code (struct sdhci_pci_data et al) mmc: sdhci-pci: Remove dead code (cd_gpio, cd_irq et al) mmc: sdhci-pci: Remove dead code (rst_n_gpio et al) drivers/mmc/host/Makefile | 1 - drivers/mmc/host/sdhci-acpi.c | 14 +-- drivers/mmc/host/sdhci-pci-core.c | 152 +---------------------------- drivers/mmc/host/sdhci-pci-data.c | 6 -- drivers/mmc/host/sdhci-pci.h | 5 - drivers/mmc/host/sdhci.c | 19 ++++ drivers/mmc/host/sdhci.h | 2 +- include/linux/mmc/sdhci-pci-data.h | 18 ---- 8 files changed, 26 insertions(+), 191 deletions(-) delete mode 100644 drivers/mmc/host/sdhci-pci-data.c delete mode 100644 include/linux/mmc/sdhci-pci-data.h -- 2.33.0