Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755593AbcDDP12 (ORCPT ); Mon, 4 Apr 2016 11:27:28 -0400 Received: from eusmtp01.atmel.com ([212.144.249.242]:15900 "EHLO eusmtp01.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755447AbcDDP10 (ORCPT ); Mon, 4 Apr 2016 11:27:26 -0400 From: Ludovic Desroches To: , CC: , , , Ludovic Desroches Subject: [PATCH v2 0/3] SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST removal Date: Mon, 4 Apr 2016 17:27:52 +0200 Message-ID: <1459783675-7798-1-git-send-email-ludovic.desroches@atmel.com> X-Mailer: git-send-email 2.5.0 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1423 Lines: 38 Hi, I have recently observed that the quirk SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST I have introduced doesn't fix all the bugs relative to the internal clock disabling while configuring the SD clock. This delay was introduced because of a re-synchronisation done when disabling the internal clock. Unfortunately, we can still have clock stabilization bug even if it occurs rarely. Moreover, trying to use presets, disabling the internal clock causes an unexpected switch to the base clock. It should be solved on next revision of the chip. For those reasons plus the non acceptance of new quirks, I have decided to remove it and to implement my own set_clock() function. In ordrer to reduce code duplication with the sdhci set_clock function, I moved some of the code in a new sdhci_compute_clock_config() function. Regards Changes: - v2: - sdhci_compute_clock_config uses a returned value instead of an out-parameter to provide the clock configuration. Ludovic Desroches (3): mmc: sdhci: introduce sdhci_compute_clock_config mmc: sdhci-of-at91: implement specific set_clock function mmc: sdhci: removal of SDHCI_QUIRK2_NEED_DELAY_AFTER_INT_CLK_RST drivers/mmc/host/sdhci-of-at91.c | 48 ++++++++++++++++++++++++++++++++++++++-- drivers/mmc/host/sdhci.c | 31 +++++++++++++++++--------- drivers/mmc/host/sdhci.h | 6 +---- 3 files changed, 67 insertions(+), 18 deletions(-) -- 2.5.0