From patchwork Mon Aug 21 07:41:27 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: 110498 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp941205qge; Mon, 21 Aug 2017 00:43:02 -0700 (PDT) X-Received: by 10.84.196.129 with SMTP id l1mr18097312pld.337.1503301382697; Mon, 21 Aug 2017 00:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503301382; cv=none; d=google.com; s=arc-20160816; b=jMTKvw9KW4ZAkBgN8qck4KmyvywBSGu+/PEHx2I9Iarx+uvhhwf9U4ACzwyF6V39P6 ZGzmx8nMSIt+ptZVa7zoHzZaG0BwLbBd2GWlGaYwf09M+Ddjj4/h/V/Geap+6c8Ul+zX 4zFZgHsnOTZd6eI+zjhDRIIbgOkFRVVeuvU0ynmnyGy6cH2i7zi+ouLI2tDuzh2p1kIl 1MGOC8h4ZkWjgFf9WFKJanZa7PIq5+pkVQEDOSgDuJhL5z2biTsavsJvAEZACAb51TPc yk06/8ygSENxYAb6qmLR3StTe08KJkpLGx1F31XN6wVfPIcvEnod5/h9v7JhK/zOs5zN /q9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature:arc-authentication-results; bh=RyAqJNpFmqPr/P9D+QALRHi3O3i84uWTXK3SE1ZmrOk=; b=Q7JlWuXH+XCF8aYHkb19dsWEQa25TMeFia9vHG/KZIsgOaLT41KAHT1j9vFhWPdH15 Xq8/2+6PkeVt42Zoat6aKk9DhxsjHXjOCGNipvJfzsahw26wzgrdRaJfnOSekKNDs/fB 5dxxwIsSWY0SRIritZLguZmcYQo7Qqr4j4W5zypScKedfGjhMemMcenHsjYc6RVVAKSN +e3eFwr+hIfmzHS3Ubb/dRitihXgKRxI+dB9LzWivoCbtQRlOTp590+R3iZ7iubZ5yjL lvnGsAJmtDuJjsD5dyJOzGfy3SDSwsT6fNnJUuIrvXRE3+qjWzex85us08HUTuLhMN1I lISg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=DhJMCXBF; 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 h3si7625620pld.341.2017.08.21.00.43.02; Mon, 21 Aug 2017 00:43:02 -0700 (PDT) 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=DhJMCXBF; 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 S1752572AbdHUHm7 (ORCPT + 26 others); Mon, 21 Aug 2017 03:42:59 -0400 Received: from lelnx194.ext.ti.com ([198.47.27.80]:35913 "EHLO lelnx194.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751718AbdHUHm0 (ORCPT ); Mon, 21 Aug 2017 03:42:26 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v7L7fhm4025608; Mon, 21 Aug 2017 02:41:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1503301303; bh=/H5qDB1yMlZQeZV0rpkqDxz3vA2qapoHvM1gXVZnpuc=; h=From:To:CC:Subject:Date; b=DhJMCXBF48HpjWuTIUz7fihl/bViy3AQ8nZPLdAB9Y1u+nHoFps6HDqDikJjhWVYW BgTBhVlhy8qf/DXW4WSI26LPr0GB5a+U26G9xCPyxX3uyvL38Fx0I+I5mh0ZqRlDKT lEiy3zDm0+YlRw5D0TOstIta8O9UGTI81QB5umVY= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v7L7fhTp025139; Mon, 21 Aug 2017 02:41:43 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Mon, 21 Aug 2017 02:41:43 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Mon, 21 Aug 2017 02:41:43 -0500 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 v7L7fdNO030136; Mon, 21 Aug 2017 02:41:39 -0500 From: Kishon Vijay Abraham I To: Ulf Hansson , Adrian Hunter CC: Rob Herring , Tony Lindgren , Sekhar Nori , Russell King , Ravikumar Kattekola , , , , , , Kishon Vijay Abraham I Subject: [PATCH 0/5] mmc: Add OMAP SDHCI driver Date: Mon, 21 Aug 2017 13:11:27 +0530 Message-ID: <20170821074132.4622-1-kishon@ti.com> X-Mailer: git-send-email 2.11.0 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 This is the first step in deprecating omap_hsmmc driver completely and moving to sdhci-omap driver which uses the sdhci library. This series adds a new SDHCI quirk to indicate MMC_RSP_136 has CRC (since sdhci in OMAP has CRC) Apart from the quirk, sdhci-omap has it's own callbacks to set_clock (clock divider programming is different from generic sdhci) , set_power, set_bus_width, set_bus_mode and platform_send_init_74_clocks. These callback functions are implemented based on omap_hsmmc driver. The sdhci-omap driver supports only the high speed mode and UHS/HS200 mode will be added in a later series. It has been tested only in boards having DRA7 SoCs like dra7-evm, dra72-evm, am571x-idk, am572x-idk, am57xx-evm. (Tested only eMMC and SD. SDIO support will be added later). The plan is to fully convert DRA7 SoC to use SDHCI driver and then convert other legacy platforms to use SDHCI. Next Steps: *) Add UHS support to sdhci-omap *) Add SDIO support *) Add support for older TI platforms Changes from v1: *) Remove the quirks and instead use sdhci_omap specific callbacks for set_power, set_busmode etc. *) Add a patch from Adrian to tidy reading 136-bit responses I've also pushed the entire series along with dependent dt patches @ https://github.com/kishon/linux-wip.git sdhci_omap_v1 (in case someone wants to test) Adrian Hunter (1): mmc: sdhci: Tidy reading 136-bit responses Kishon Vijay Abraham I (4): mmc: sdhci: Add quirk to indicate MMC_RSP_136 has CRC dt-bindings: ti-omap-hsmmc: Document new compatible for sdhci omap mmc: sdhci-omap: Add OMAP SDHCI driver MAINTAINERS: Add TI OMAP SDHCI Maintainer .../devicetree/bindings/mmc/ti-omap-hsmmc.txt | 1 + MAINTAINERS | 6 + drivers/mmc/host/Kconfig | 12 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/sdhci-omap.c | 629 +++++++++++++++++++++ drivers/mmc/host/sdhci.c | 31 +- drivers/mmc/host/sdhci.h | 2 + 7 files changed, 672 insertions(+), 10 deletions(-) create mode 100644 drivers/mmc/host/sdhci-omap.c -- 2.11.0