From patchwork Mon Aug 28 14:29:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 111158 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp4918090qge; Mon, 28 Aug 2017 07:29:23 -0700 (PDT) X-Received: by 10.99.178.65 with SMTP id t1mr729524pgo.239.1503930563522; Mon, 28 Aug 2017 07:29:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503930563; cv=none; d=google.com; s=arc-20160816; b=FXmKd9k/U+I2nGJ/6P1FtsXNc4Claq7UKMv1Ab6VI7P3LLeFnYVe4Ahb07aAhXgyG8 3QA3MQ8rL0Qkb6hUgE6nQMeLGjvYhSRXQTeXrPxGwBPtcJ08BMTNx8SDKRU+QocbMv+M ldDTr78b38bEgHYKxXw0tTWtkll6mGSAn9SUemwUia1erlKweNowD1xDWX9yGDudP4y/ XSQ+SmmAepYAVQUN0dAuJp+BgKz0ICMYK0GLXmSiCUfBoFqN1J0i0txKHMuSzSsvfNtc 3RIgQCJs/I0pIU007wAy4Nik8U9kwOIun1k7FfC2XMXUBy/EWZeSR6ZpC3fd2YvgvaCy 67iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Esd0NM6+wXqvsSZQJAzZvMrNKB5K8FTDVSG9DHc7OGc=; b=LzaIU1J4xOl+TSCdkr5msEOBmHtBT1qI2YKBrhA9XB2pn1v4b5ixKcX+dC1DacUixu SXbGCtcsfY9t/sFJsg/u0MvMyc7OFWOf0SXUBPvwDMDx9p+jtMx9vTr33VcogU1olMNq 4XqoQ2uOhd7vuj5gtkwIojjRmO62Fd1CE19tqgHoQ7vO9grRzmI5eWcwEyxhG3iQfwq3 JlqmU2YP++/w403RgagzbMsmkpIeywpYdj1Kl2hJ5uQH7DEOFrZNJ7Pu2qL0L4+dZE09 w38e1DLTuCMm4OcgTeZNUkdY367ASrJZXfHNjgynDcL/Krg/sQaxDj7vNzq37p+gQvb7 2mug== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=olQy7XPj; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b184si356597pgc.709.2017.08.28.07.29.23; Mon, 28 Aug 2017 07:29:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=olQy7XPj; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751215AbdH1O3W (ORCPT + 6 others); Mon, 28 Aug 2017 10:29:22 -0400 Received: from mail-wr0-f180.google.com ([209.85.128.180]:37102 "EHLO mail-wr0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751184AbdH1O3U (ORCPT ); Mon, 28 Aug 2017 10:29:20 -0400 Received: by mail-wr0-f180.google.com with SMTP id n37so2156005wrf.4 for ; Mon, 28 Aug 2017 07:29:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=WLaWZSNfler/XjE3X6NuOM7hIEYp0jyV/Nh+wSRzxVU=; b=olQy7XPjCx71Bokiv+CNaCeQnOYFhiAA7g0gt5cMYbyqoBtbHhp5N7l3TiAwj8Re02 zdTKzrSZWCNl6qaRqVeFbPFh/sn517GzFtYkTY1mdW+lenCbbewosxfglxXV+UMTN+xL 9Fm/P7q7/5yywybQQNcbk8VWqn3VCpaVOQfqfamWgydG69iCMt5qX+DAcsomM8pXR/vD BmSrXmRoLT+mktYBeqo5k/RMpibFe/Y9VJH14IpLY58wRgC+volKJiGlL9C1yenY6SgP RGmubtzMFd7RGiiy/xQGPXUzzeFtL18iQ2NaJFw+RSD45PuhyP0ctNUCZIILNxfu1pGR KX9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WLaWZSNfler/XjE3X6NuOM7hIEYp0jyV/Nh+wSRzxVU=; b=VEl12FyEWjNgp5zIjDDg/HhX/R3XUAtTsbQ2SjH0k/NrT6zIReEN+wBrlBsrFHW6rN bV7opzHuICtclBYwKJ1F9zZIrqMIB11BQBPBeQXqaLD+MJLxhz0nXf27BAeRkjvA5ysW t7QmvYFsMjtT4MDWb/4peysLQfzw7mNIGATViiYuFh8DFRSx6ikEHo3bYbuwqKTjRKMT NoC49hwbXwuDmw4OKbR83C/5qshQjm4FpkwaLo6d1nDkWgKbDdsQKSml8L7U2cOmi50n 0AWJzq+GV2rYF/Vg81pm1fQoXPwTeDtrTklgYJLvugxSmVQA9ia4E45Fkodwj/5NCuHv Ycrw== X-Gm-Message-State: AHYfb5gEjOa7rPAGyjs0YgRKqk8sEAPN57rYgwiSXn4IUrvi+GlwjOHy kpHQKlk6i28SRiMs X-Received: by 10.223.169.18 with SMTP id u18mr612206wrc.1.1503930559481; Mon, 28 Aug 2017 07:29:19 -0700 (PDT) Received: from localhost.localdomain (uluru.liltaz.com. [163.172.81.188]) by smtp.googlemail.com with ESMTPSA id z39sm604792wrz.61.2017.08.28.07.29.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Aug 2017 07:29:18 -0700 (PDT) From: Jerome Brunet To: Ulf Hansson , Kevin Hilman , Carlo Caione Cc: Jerome Brunet , linux-mmc@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 00/13] mmc: meson-gx: driver fixups and upgrades Date: Mon, 28 Aug 2017 16:29:02 +0200 Message-Id: <20170828142915.27020-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.9.5 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org The patchset features several bugfixes, rework and upgrade for the meson-gx MMC driver. The main goal is to improve readability and enable new high speed modes, such as eMMC DDR52 and sdcard UHS modes up to SDR50 (100Mhz) SDR104 is not working with a few cards on the p200 and the libretech-cc. I suspect that 200Mhz might be a bit too fast for the PCB of these boards, adding noise to the signal and eventually breaking the communication with some cards. The same cards are working well on a laptop or the nanopi-k2 at 200Mhz. This series has been tested on gxbb-p200, gxbb-nanopi-k2 and gxl-s905x-libretech-cc Changes since v2 [1]: * Drop patches 1 to 3: Applied. * Drop patch 4: Debug stuff which should not have been sent. * Added fix to previous patch 3: If the clock register is not initialized before registering the clk with CCF, the framework will complain about an illegal divider value. This had gone unnoticed because it was later fixed by the clock init rework. Ulf, I know it is getting late but it would be nice if patch #1 of this v3 could go with 3 patches you already applied. The rest can wait for the following cycle. Changes since v1 [0]: * Reorder patches to have fixes first, then rework and finally enhancements. * Use CCF to manage clock phases [0]: https://lkml.kernel.org/r/20170804174353.16486-1-jbrunet@baylibre.com [1]: https://lkml.kernel.org/r/20170821160301.21899-1-jbrunet@baylibre.com Jerome Brunet (13): mmc: meson-gx: initialize sane clk default before clock register mmc: meson-gx: cfg init overwrite values mmc: meson-gx: rework set_ios function mmc: meson-gx: rework clk_set function mmc: meson-gx: rework clock init function mmc: meson-gx: fix dual data rate mode frequencies mmc: meson-gx: work around clk-stop issue mmc: meson-gx: simplify interrupt handler mmc: meson-gx: implement card_busy callback mmc: meson-gx: use CCF to handle the clock phases mmc: meson-gx: implement voltage switch callback mmc: meson-gx: change default tx phase mmc: meson-gx: rework tuning function drivers/mmc/host/meson-gx-mmc.c | 710 ++++++++++++++++++++++++++++------------ 1 file changed, 493 insertions(+), 217 deletions(-) -- 2.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html