From patchwork Tue Aug 12 12:05:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 35254 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DB9F920540 for ; Tue, 12 Aug 2014 12:05:45 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id vb8sf43349010obc.8 for ; Tue, 12 Aug 2014 05:05:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=LTOUcCSNvr2Z/8SJ5lmAuDRE0bxMLk9f8HSyZSj7DEM=; b=jVXLC/g58MZhwG1jb06gDWNmPqgB0btawl8bhlz7SDKJkPpxqnumoSeEbGZAZoLn7+ zZpe97nDzGIvruBE38nIX6cKGepskKGV2CsvKg+z1tYRYrPvFik0qUnGuKtWR0sylVfH FLTphwdxFdr+wPWJhzH2OCH+FcscCj0DzKE4gRzVBysa0SlY44OHvZbOvseml/6c8m/H 6e9C8oyEp8WxRbjrtblayrehMLt2sg/71nls+DkTf6OK1PfghfUzNxp+qdRtqlMIga7H msUy9FipINl1gcFaadNXHO0KNoZamtDabu8S0CJc2MvVrLJKVlsBa3cLpJH/8c/ZC3Qw G8TA== X-Gm-Message-State: ALoCoQlRZvCeLed2BHYeBRBvp84agddbUFpXOEOHzCs4N/afcWITpGDlcLxZPFCKt5EYfy0UZbQf X-Received: by 10.50.50.130 with SMTP id c2mr14240929igo.4.1407845145367; Tue, 12 Aug 2014 05:05:45 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.81.200 with SMTP id f66ls76776qgd.24.gmail; Tue, 12 Aug 2014 05:05:45 -0700 (PDT) X-Received: by 10.52.0.132 with SMTP id 4mr21610399vde.10.1407845145217; Tue, 12 Aug 2014 05:05:45 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id id4si8042020vdb.100.2014.08.12.05.05.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Aug 2014 05:05:45 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by mail-vc0-f173.google.com with SMTP id hy10so13087780vcb.18 for ; Tue, 12 Aug 2014 05:05:45 -0700 (PDT) X-Received: by 10.52.141.76 with SMTP id rm12mr16331vdb.71.1407845145130; Tue, 12 Aug 2014 05:05:45 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp242725vcb; Tue, 12 Aug 2014 05:05:44 -0700 (PDT) X-Received: by 10.70.37.134 with SMTP id y6mr2500772pdj.33.1407845144222; Tue, 12 Aug 2014 05:05:44 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ku5si15834371pbc.174.2014.08.12.05.05.43 for ; Tue, 12 Aug 2014 05:05:44 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753000AbaHLMFl (ORCPT + 26 others); Tue, 12 Aug 2014 08:05:41 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:63070 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752957AbaHLMFj (ORCPT ); Tue, 12 Aug 2014 08:05:39 -0400 Received: by mail-pa0-f41.google.com with SMTP id rd3so13004333pab.0 for ; Tue, 12 Aug 2014 05:05:38 -0700 (PDT) X-Received: by 10.70.108.194 with SMTP id hm2mr3986928pdb.115.1407845138715; Tue, 12 Aug 2014 05:05:38 -0700 (PDT) Received: from localhost.localdomain ([117.198.92.185]) by mx.google.com with ESMTPSA id gy2sm14406354pbb.50.2014.08.12.05.05.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 12 Aug 2014 05:05:37 -0700 (PDT) From: Srinivas Kandagatla To: linux-mmc@vger.kernel.org Cc: Linus Walleij , Chris Ball , Ulf Hansson , Russell King , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH RFC 5/5] mmc: mmci: move ST specific sdio setup under a condition Date: Tue, 12 Aug 2014 13:05:27 +0100 Message-Id: <1407845127-8448-1-git-send-email-srinivas.kandadgatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1407844950-8072-1-git-send-email-srinivas.kandadgatla@linaro.org> References: <1407844950-8072-1-git-send-email-srinivas.kandadgatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Srinivas Kandagatla This patch moves ST specific sdio setup under a vendor id condition, this will ensure that the ST specfic setup is not done on other vendor like Qualcomm. Originally the issue was detected while testing WLAN ath6kl on IFC6410 board with APQ8064 SOC. Signed-off-by: Srinivas Kandagatla --- drivers/mmc/host/mmci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index 848e2bb..1783be7 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -828,7 +828,8 @@ static void mmci_start_data(struct mmci_host *host, struct mmc_data *data) * otherwise the transfer will not start. The threshold * depends on the rate of MCLK. */ - if (data->flags & MMC_DATA_WRITE && + if (host->hw_designer == AMBA_VENDOR_ST && + data->flags & MMC_DATA_WRITE && (host->size < 8 || (host->size <= 8 && host->mclk > 50000000))) clk = host->clk_reg & ~variant->clkreg_enable;