Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5184617ybl; Tue, 10 Dec 2019 01:51:32 -0800 (PST) X-Google-Smtp-Source: APXvYqxROeJJ/BI4eHwiR59nBQ+TLabxACWqqmN2rR5LmtNojIpYTQFeqLg0mKMW9Pu8X/Dipljz X-Received: by 2002:aca:31c8:: with SMTP id x191mr3112211oix.25.1575971492154; Tue, 10 Dec 2019 01:51:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575971492; cv=none; d=google.com; s=arc-20160816; b=taeqC7NPCGcH5/X3PkRYHAME2NmlUWyCEXQbMNxZ+NDRsg/9Q21lK4iSfPNJwGfPUf PG3yKzuYxiHNgn+nCjQi4P+qTiTOqmlHeriLhw3wr1wS34kL0PPo0v3nbDn9+8fUKnoo JI5EBBk1jXVIPTNt1tS+IK9s2WTcHgN8LMCx9yJROxiSGebuu4BUDNoPZrWbrlOdcgU0 lKReV/deVFFFtNpS1mJEfahxABZVTwQbH7eqHtz1OuqRzTES7BpE7UzrTC275tHvL05N NyTTs34VsE0P3yN75EEOc0WGmwm94NoRnHklnIewjDGmsJha0PxlC53yCIt1kg6wLNql VE3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3/2/4TqPWi9y2MRMMJxSgZoD8FE5fToV9VA4meBh3OA=; b=mKv4PbqGmYtivty4tgNFu4YKDZIP6XUCWp5MW4ts19cMnt7BaSt/aBcOGTJCwf213k KJQbdfoF9+Z132/BthhaWhMsGOkVaw/fOKCbcpzbpw6Zr6t2gC9gP6EXZQpdhIAc7R78 t118PzW+1OWAZVEdzWm7TMPBzaM0f50Jkc9LgLrvcJ+EPUygDcTUTM0CZ4mV3QkBt9p1 k9Xi6vOWTiBrmMekw3NrCoRfzZJxZy6L14dTAhdVk7BgybN2AEaExdlLYm30DD1y2X08 nXtV91OfeTEqzWR9KY3y3E5Pe5N7uc6vHUxvjQaqajUTa8xlmNa50jYo33S5UOyDegnG /Wmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Q8dAHncS; 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 n84si1533551oib.157.2019.12.10.01.51.19; Tue, 10 Dec 2019 01:51:32 -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=Q8dAHncS; 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 S1727222AbfLJJuu (ORCPT + 99 others); Tue, 10 Dec 2019 04:50:50 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:37864 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbfLJJuu (ORCPT ); Tue, 10 Dec 2019 04:50:50 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id xBA9odiL055607; Tue, 10 Dec 2019 03:50:39 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1575971439; bh=3/2/4TqPWi9y2MRMMJxSgZoD8FE5fToV9VA4meBh3OA=; h=From:To:CC:Subject:Date; b=Q8dAHncSrM3uAXx+oqmTTbaP2ZM5fvhRt4JtSZEqGol6IwcOqZPp/qoBlDx7vIOhy 6zY1XNZTbZnHKMI6e7YF6hulKH24u7KAUbJo7EKBlzQyObS2KncALKfEFMZfoNqGLr 4UBZgD2MzPUBTYyTStApIt+MznIqqof6lUqJoYvg= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xBA9odNO018132 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 10 Dec 2019 03:50:39 -0600 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 10 Dec 2019 03:50:39 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 10 Dec 2019 03:50:39 -0600 Received: from a0230074-OptiPlex-7010.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id xBA9oZVj048503; Tue, 10 Dec 2019 03:50:36 -0600 From: Faiz Abbas To: , , CC: , , , , , , Subject: [PATCH v3 0/7] Port am335 and am437 devices to sdhci-omap Date: Tue, 10 Dec 2019 15:21:44 +0530 Message-ID: <20191210095151.15441-1-faiz_abbas@ti.com> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain 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 The following add driver patches for porting TI's am335x and am437x devices to the sdhci-omap driver. This involves adding external DMA support to sdhci (first 3 patches from Chunyan) plus some miscellaneous patches to take care of deviations of the controllers from the sdhci model. DT changes will be posted in a separate series. Untested versions of Chunyan's patches were posted before[1]. Tested on: am335x-evm, am335x-boneblack, am335x-sk, am437x-gpevm, am43xx-gpevm, am437x-idk, dra7xx-evm, dra72x-evm. I need some help with testing all the other beaglebone variants and SDIO Wifi cards. v3: 1. Dropped patch 1 because the tasklet was removed by Adrian in an earlier series. 2. Added dma bindings in sdhci-omap as optional properties. 3. Rebased on top of latest mainline. v2: 1. sdhci is using two bottom halves. One threaded_rq for card detect and a tasklet for finishing mmc requests. Patch 1 removes the tasklet and moves its function to the threaded_irq. This enables me to terminate_sync() in sdhci_request_done() 2. Factored out common code for between the normal adn external dma case 3. Using existing API sdhci_data_timeout_irq for disabling DTO during erase commands. 4. Fixed subject line for dt-bindings patch. [1] https://patchwork.kernel.org/project/linux-mmc/list/?series=54897 Chunyan Zhang (3): dt-bindings: sdhci-omap: Add properties for using external dma mmc: sdhci: add support for using external DMA devices mmc: sdhci-omap: Add using external dma Faiz Abbas (4): mmc: sdhci: Add quirk for disabling DTO during erase command mmc: sdhci-omap: Add DISABLE_DTO_FOR_ERASE Quirk dt-bindings: sdhci-omap: Add am335x and am437x specific bindings mmc: sdhci-omap: Add am335x and am437x specific compatibles .../devicetree/bindings/mmc/sdhci-omap.txt | 11 + drivers/mmc/host/Kconfig | 4 + drivers/mmc/host/sdhci-omap.c | 27 +- drivers/mmc/host/sdhci.c | 290 ++++++++++++++++-- drivers/mmc/host/sdhci.h | 10 + 5 files changed, 313 insertions(+), 29 deletions(-) -- 2.19.2