Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp366846pxb; Tue, 19 Oct 2021 04:40:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbIiVScA4fs4FPfmFTuc1FfYWKz7qsuKqm+NJv1gDJtt/RAOUzkdlFb/JN9lozA9pqfPpC X-Received: by 2002:a50:9d49:: with SMTP id j9mr52301511edk.39.1634643605594; Tue, 19 Oct 2021 04:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634643605; cv=none; d=google.com; s=arc-20160816; b=0ZwiIDVdCF5oOs0mGS7ffJ5dijXegV6Qf6u0B7uDLY3F70rzALO/Y++mAkV/5GIblS WXAugMXTK+FISU9laPVQITvnu6W/ofi3Ph1qTwYHA6tQT9SlSimSoOXy2BMrIWd9I9qU s86L/yBad5V3INzwzVrtuWBvXrR5GoyjlHf3FZBnICYC3UXkBwS3gZLH5+pFS4MFA57c o2LukbVvibzy+vAh+8exWfczwAmiaB1aMkL9rfrkx302qxHWcWU85Yk0WpC/o9VUYl4X n5jYgtYwLkcdCOCrtyZY5yActvYr/q16Mv4cBm/0T66JrPWVa7U0+5Me4vdbewz+Z3Nd KJPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CwfDNTxztsaFFsnMzgXIH5wS3ZyzclKxra1KT8MNpgQ=; b=hVhjg7BH/poIpCs0j8N/IBiNtzwIsBUssvgoqH+1ahIT5qg4QrP4CI3cPA/DHrQks3 /u1Lh+ZLO4T8TGtjnIixbvitylS1/B3NV6ty1v95enqXRQJWdb8IW+MRr9TTMZHZB18g wt67o0kic/f/tTk793iSMcWnt67x2eOKGORcJnGYnqV1wOT8urocN64DZ5Ztm+87xi9M kOjLxZJ3rt/8SRdKQR8z3dy9j7HlAp39iF5rQ0anmfSVIZnlSDGaF5RVaYGxXWdQGHAa jSUULiqrDgH2TuKwwK7+PgfRX2XSceCy/S/9zyyOVYuwrEjH3MrXq5fiTavn1yK9mBA/ /cEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Djlw03UN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di4si22181274edb.89.2021.10.19.04.39.42; Tue, 19 Oct 2021 04:40:05 -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; dkim=pass header.i=@linaro.org header.s=google header.b=Djlw03UN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235376AbhJSLjj (ORCPT + 99 others); Tue, 19 Oct 2021 07:39:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235400AbhJSLji (ORCPT ); Tue, 19 Oct 2021 07:39:38 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D5B7C061746 for ; Tue, 19 Oct 2021 04:37:25 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id t9so6806500lfd.1 for ; Tue, 19 Oct 2021 04:37:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CwfDNTxztsaFFsnMzgXIH5wS3ZyzclKxra1KT8MNpgQ=; b=Djlw03UNXO1XUB5rvTWozOrTXI61Rd2t0/E0T3eVHz5A8+A+LdKVUkFga+7BShD5RF hE6Ghz7dGz6XUAqj0UTOE8KKqUR+60Jg0PmdsA/NAi87fldmewCRm34XhEmbIPqR7GWb w1Z42F1t/SSUAtkq2JVqkjsYGJ5kgQiMHCaElfzQalkMXq+8DU3ZUV5Bnx9rnD1TXkZo BpPV96vUysgEL7Y+FOYQITxwwVufBP027CnMgVWHyfblYcycIE4St/wm8T35mzgeYMbg YgS9xRDofO0VlOqFvX6Ph7whGNH3mwGsU8l8aNrjcpG8X9fs+yC4Bg/hNA3R5dvFUmRA P1cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CwfDNTxztsaFFsnMzgXIH5wS3ZyzclKxra1KT8MNpgQ=; b=BxLarfR+uzJVrHpdML9vG67qRJI0QBOMDBjhBiHfH46alNojHHsgVsdxXVYAPxXCiZ p1CFe9gCDNjrSVipGmMM9gTZe3XS4BF29oNaw6cEApcpuaae1owkjPGgWiaWCpgwgMpD 5TEa8MGR0/hkuSCrGfuaM3YUavjPgMZkO3Ao4dskOC1lAKoVFe635/Zu4HMm0b1sQgVW jZpFGmRToLlKvkY/JEMTc6OXVz5eus9oSiECXSyN6DcfaS2fdz2FKzg5MuZDMtfFulQZ 0QilL3CGO5qhohOrNqfrAAh2t0gJszf/TDCtWo0wZEPxz3Oy2Ns/RPlpNzwn70c2BsqV mZLA== X-Gm-Message-State: AOAM533ZxJtcnIOxPh3soiQRH/7caOx6Wh5AyPdaKVJ1ny6g72zWkYnD B4y2KvTOpbTLbo75B2Q+hL0Q2iroNjMzByYGESJrdf/QNfw= X-Received: by 2002:a05:6512:32c5:: with SMTP id f5mr5717565lfg.373.1634643443626; Tue, 19 Oct 2021 04:37:23 -0700 (PDT) MIME-Version: 1.0 References: <20211014132613.27861-1-andriy.shevchenko@linux.intel.com> In-Reply-To: <20211014132613.27861-1-andriy.shevchenko@linux.intel.com> From: Ulf Hansson Date: Tue, 19 Oct 2021 13:36:47 +0200 Message-ID: Subject: Re: [PATCH v3 0/5] mmc: sdhci-pci: Remove dead code and deduplicate To: Andy Shevchenko Cc: Eric Biggers , Adrian Hunter , Raul E Rangel , Linux Kernel Mailing List , linux-mmc Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Oct 2021 at 15:26, Andy Shevchenko wrote: > > 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 > Applied for next, thanks! Kind regards Uffe