From patchwork Thu Dec 14 13:09:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 121929 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp6787117qgn; Thu, 14 Dec 2017 05:12:44 -0800 (PST) X-Google-Smtp-Source: ACJfBouyngJnvRr4T4okE5McNZKETKExQCViWYjuO3oAiOCccColhe6pFNycPMGtMJkQEeESZv4I X-Received: by 10.99.127.91 with SMTP id p27mr8448394pgn.1.1513257164828; Thu, 14 Dec 2017 05:12:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513257164; cv=none; d=google.com; s=arc-20160816; b=lQTputS6vA8vpJ9vNLNVkbiuXtD/zqpn2uPmslmbRSy2a0LS4ttilf0KM+YcpKk6LB FDMGp/+18OBOzehupAeTDXqDb/DphHKsyA0QTQFu/7/xQta0IpfKkwwtLJzXCE5nQYOK 2/t45Fk4lLt+CSsDPfIWCaEf6CMmW0rtEDEzcN6Lfwr7EU3tML6wzRxIhVnzRaZ/k9U5 W1WMGmUMMpQmqIhRCrzYCAXhHPYXN2R8skEwMVsYgT1QgS1RtSwcNrfGQkKtpKi1wu+O Eran4NcVOocr0Y8stoDvKRBwLwHaSFJs/wWT7tIQTbLMj/zygnMH0i8IFKPfiX2VeNlY zcnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=nRUyNtjfyBvQA996fRrYSTpPTfAAn7OKqLgDZjbwgMc=; b=ZI8msIDpG3yQszttGNprq6EL3XBXrjD/ztbD++dfj8KO/TAFm9neGs5DzSE6rCfL7K LbG4p+X2FRjfGz5L/+dNRUX1xr7fLs8GOuqa47Y4RFCwPz667ZInuGUWX44jbCbMQHTW QdvcW4KCqriCP26D6jLewvn+0oH6c7WE5R3pFzJYFrN2jHpPKi+xho6uusosibfnRqN+ ZzSI78dXoCrmst8nBbw6IVwvybp0St0+r9Btu55w/UQ99hwPxG9vgOny+jCI9wkygaPY IJTRVMb0wstSaHHUPOjJgq6p56ehxijQm7TGJmctn6NQKZ1KGRXbKs/fR3vcqkXlRE7T dxAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=u4s4qEyx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5si2892253pgq.124.2017.12.14.05.12.44; Thu, 14 Dec 2017 05:12:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=u4s4qEyx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752716AbdLNNMl (ORCPT + 20 others); Thu, 14 Dec 2017 08:12:41 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:22200 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752303AbdLNNMi (ORCPT ); Thu, 14 Dec 2017 08:12:38 -0500 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id vBEDAZGi022233; Thu, 14 Dec 2017 07:10:35 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1513257035; bh=9CcIPRF0g+hQeJ/4wuKkOyylM9yS6KnlnNI1GZJ/8GE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=u4s4qEyxNTQECeG+Zqs12x8t76KtJ8ZsyHrp2/q5pVTUfs7XdWfjVNLAN14CAYDwH 8IP61Ye4xfSXkHnKpf0scZMUpatMWP7QJC5G3WqiPIERUZDiVOAL9Yxea9GZiYbJLi vRGhw0V8gij1NYpmLPnzMsA9myPcoePD5Y9LooiA= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id vBEDAU4j020428; Thu, 14 Dec 2017 07:10:30 -0600 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Thu, 14 Dec 2017 07:10:29 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Thu, 14 Dec 2017 07:10:29 -0600 Received: from a0393678ub.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id vBED9wdT032017; Thu, 14 Dec 2017 07:10:26 -0600 From: Kishon Vijay Abraham I To: Ulf Hansson , Rob Herring , Tony Lindgren , Adrian Hunter CC: Mark Rutland , Russell King , , , , , , , Subject: [PATCH 07/12] mmc: sdhci_omap: Fix sdhci-omap quirks Date: Thu, 14 Dec 2017 18:39:36 +0530 Message-ID: <20171214130941.26666-8-kishon@ti.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171214130941.26666-1-kishon@ti.com> References: <20171214130941.26666-1-kishon@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove SDHCI_QUIRK_BROKEN_CARD_DETECTION quirk as gpio card detection is supported in sdhci-omap. Add SDHCI_QUIRK2_PRESET_VALUE_BROKEN quirk as setting preset values loads incorrect CLKD values (for UHS modes). Remove SDHCI_QUIRK2_NO_1_8_V quirk as sdhci-omap now supports UHS modes. Signed-off-by: Kishon Vijay Abraham I --- drivers/mmc/host/sdhci-omap.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) -- 2.11.0 diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c index 594e41200d8a..6dee275b2e57 100644 --- a/drivers/mmc/host/sdhci-omap.c +++ b/drivers/mmc/host/sdhci-omap.c @@ -755,13 +755,12 @@ static int sdhci_omap_set_capabilities(struct sdhci_omap_host *omap_host) } static const struct sdhci_pltfm_data sdhci_omap_pdata = { - .quirks = SDHCI_QUIRK_BROKEN_CARD_DETECTION | - SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK | + .quirks = SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK | SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN | SDHCI_QUIRK_NO_HISPD_BIT | SDHCI_QUIRK_BROKEN_ADMA_ZEROLEN_DESC, - .quirks2 = SDHCI_QUIRK2_NO_1_8_V | - SDHCI_QUIRK2_ACMD23_BROKEN | + .quirks2 = SDHCI_QUIRK2_ACMD23_BROKEN | + SDHCI_QUIRK2_PRESET_VALUE_BROKEN | SDHCI_QUIRK2_RSP_136_HAS_CRC, .ops = &sdhci_omap_ops, };