From patchwork Mon Feb 11 16:36:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Ball X-Patchwork-Id: 2125021 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id CC2B83FCA4 for ; Mon, 11 Feb 2013 16:36:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757870Ab3BKQg3 (ORCPT ); Mon, 11 Feb 2013 11:36:29 -0500 Received: from void.printf.net ([89.145.121.20]:36050 "EHLO void.printf.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757854Ab3BKQg2 (ORCPT ); Mon, 11 Feb 2013 11:36:28 -0500 Received: from c-76-24-28-220.hsd1.ma.comcast.net ([76.24.28.220] helo=octavius.laptop.org) by void.printf.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1U4wMl-0000Zz-5X; Mon, 11 Feb 2013 16:36:27 +0000 From: Chris Ball To: Stephen Warren Cc: linux-mmc@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH REPOST] mmc: bcm2835: set SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK References: <1360382187-26296-1-git-send-email-swarren@wwwdotorg.org> Date: Mon, 11 Feb 2013 11:36:24 -0500 In-Reply-To: <1360382187-26296-1-git-send-email-swarren@wwwdotorg.org> (Stephen Warren's message of "Fri, 8 Feb 2013 20:56:27 -0700") Message-ID: <87k3qest87.fsf@octavius.laptop.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org Hi Stephen, On Fri, Feb 08 2013, Stephen Warren wrote: > SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK does basically the same as > implementing struct sdhci_ops .get_timeout_clock, so simply set that > quirk and remove the custom code to simplify the driver. > > Reported-by: Lars-Peter Clausen > Signed-off-by: Stephen Warren This conflicts with Lars-Peter's larger patch, which I just merged -- I could merge the changes from both, which reduces your patch to this: Thanks, - Chris. diff --git a/drivers/mmc/host/sdhci-bcm2835.c b/drivers/mmc/host/sdhci-bcm2835.c index 1e97b89..8ffea05 100644 --- a/drivers/mmc/host/sdhci-bcm2835.c +++ b/drivers/mmc/host/sdhci-bcm2835.c @@ -133,11 +133,11 @@ static struct sdhci_ops bcm2835_sdhci_ops = { .read_b = bcm2835_sdhci_readb, .get_max_clock = sdhci_pltfm_clk_get_max_clock, .get_min_clock = bcm2835_sdhci_get_min_clock, - .get_timeout_clock = sdhci_pltfm_clk_get_max_clock, }; static struct sdhci_pltfm_data bcm2835_sdhci_pdata = { - .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION, + .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION | + SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK, .ops = &bcm2835_sdhci_ops, };