From patchwork Mon Oct 8 13:25:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Veerabhadrarao Badiganti X-Patchwork-Id: 10630771 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8223914BD for ; Mon, 8 Oct 2018 13:26:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB14C292B0 for ; Mon, 8 Oct 2018 13:26:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF5C5292CA; Mon, 8 Oct 2018 13:26:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58045292B0 for ; Mon, 8 Oct 2018 13:26:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726243AbeJHUhi (ORCPT ); Mon, 8 Oct 2018 16:37:38 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:40056 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726386AbeJHUhh (ORCPT ); Mon, 8 Oct 2018 16:37:37 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 3E6B860C1D; Mon, 8 Oct 2018 13:25:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539005154; bh=r4c2LBWcQUqNfoc/+eia3nhTZigkN4tZrn48lgBZsbI=; h=From:To:Cc:Subject:Date:From; b=OlayLbttBNEH8vDd0lUdcjCGMxT2aeTnNYNbVofVGE3nqkpCDfEpMUIQK2mgokrfy VaUNqIOyyoauXSTmyPaQdjjrV6nMSC1GET0lkgyAd1dK86fM0LV4xUdc/APiNB56OO mK5F2WE3TMC0U7rVpBZUcyxJzlUirbc3lSqW1Hsw= Received: from vbadigan-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vbadigan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6673060769; Mon, 8 Oct 2018 13:25:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539005153; bh=r4c2LBWcQUqNfoc/+eia3nhTZigkN4tZrn48lgBZsbI=; h=From:To:Cc:Subject:Date:From; b=kZ8J6ZOJv0AffY3bSfCeIZpSBzYfe1Ax0C2DSbpXBBPeJzwzqFkl7tjtWFZhCMuPk NLq4Jr3uX6SuDmY5dnzuaKxxnf238gK5624s4rxuwp6sKVTN2hkbSnoKjT/Dnd7LJ0 CHX+5RRVSO/febSdbLZoNWWImKQ4Ulenq3yy0A6Q= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6673060769 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=vbadigan@codeaurora.org From: Veerabhadrarao Badiganti To: adrian.hunter@intel.com, ulf.hansson@linaro.org, robh+dt@kernel.org, evgreen@chromium.org, dianders@google.com Cc: asutoshd@codeaurora.org, riteshh@codeaurora.org, stummala@codeaurora.org, sayalil@codeaurora.org, linux-mmc@vger.kernel.org, linux-arm-msm@vger.kernel.org, Veerabhadrarao Badiganti Subject: [PATCH V2 0/2] Re-initialize DLL when MCLK is gated dynamically Date: Mon, 8 Oct 2018 18:55:36 +0530 Message-Id: <1539005138-32560-1-git-send-email-vbadigan@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP On few SDHCI-MSM controllers, the host controller's clock tuning circuit may go out of sync if controller clocks are gated which eventually, result in data CRC and command CRC/timeout errors. To fix this issue, the DLL needs to be re-initialized and restored with its old settings once clocks are ungated. Changes since V1: - Replaced dt flag with a dt compatible string to indicate SHDCI-MSM controller varients which need this fix. - Moved the DLL settings restoration logic from request context to platform driver runtime pm context. Tested on: sdm845 Requies patch series:"[PATCH V2 0/3] Internal voltage control for platform drivers" Veerabhadrarao Badiganti (2): dt-bindings: mmc: sdhci-msm: Add new compatible string for sdcdc10 DLL mmc: sdhci-msm: Re-initialize DLL if MCLK is gated dynamically .../devicetree/bindings/mmc/sdhci-msm.txt | 4 ++ drivers/mmc/host/sdhci-msm.c | 67 +++++++++++++++++++++- 2 files changed, 69 insertions(+), 2 deletions(-)