Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp441777imu; Tue, 20 Nov 2018 01:31:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/XHCPz3f8nRSOyKQ+0TWceXzh2K6TDqVBSL+XYa2SvSGXHPtq4WJrTRqGrs2r622ImcrXVI X-Received: by 2002:a65:4904:: with SMTP id p4mr1244241pgs.384.1542706285282; Tue, 20 Nov 2018 01:31:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542706285; cv=none; d=google.com; s=arc-20160816; b=yC36u9tkDCRr922ovwbwzXhYikqLPP+ZgggxHHVW8C5CxSxvSQTvdWdsQ1JVgEugy4 VprRdNDlPbNSkEK20C85y1sXZAff+gHuDbeErS475uHA4VnMoYMlo9iD7iKhJQNQZv56 m0Qaez3RG/byJrc4VIyi70GWd6bF+TYOLzXDdQmU4V9Uuv77Z6Mp0JXlE0M8ZgKnYa+0 oz8yGR0hVKpgIj0uB0wf7tbwCO57mcxxdLY3Y1Ol3sjqF0O5QOKct2vYzBXnFqhPB2MM abrgUgXSiAkNvmgreVk0I8cDEZDDoFpZbcclUslUhbNbdxczk1jxjG/vOZmTA9/Djn1f A74A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=pjRZ0FxO3QXbv2zYC/8xWUIkc6CGCIT/aoU9vJaW2gI=; b=T2j3Y47b0raxKVIX7kfCpHcBw3DBrKIEmr6hhzY6mhFExjcmlCJaOE90/CD7UTUOWN nujVtU/Y+eLgim83/+JJ8ta6nThI8YgIk/YjYDt9p13hrGwlbUa4xo+GJTQKYm5huezY KOXS7hXw03nooWF82d+PEIXxTecBXZcqw54rJHVTYzj513l4TB2rtAWAS/LXTF73wFEv Hb1zr8LBq4RJN60xSKbPPqNY/QTgpgtB0b/j+3RXLWyHVeDLeazXcX/0dBbh4BQR8ZAw qW7qQrphvRbyNtctIjIiBsQs14ZM1qexXEtZfc1KJ6MbiQe4Mp5W+aOpq1N01cj24T43 4xIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HDLVCs0n; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z79-v6si3746504pfi.9.2018.11.20.01.31.10; Tue, 20 Nov 2018 01:31:25 -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=@linaro.org header.s=google header.b=HDLVCs0n; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727842AbeKTT6o (ORCPT + 99 others); Tue, 20 Nov 2018 14:58:44 -0500 Received: from mail-it1-f193.google.com ([209.85.166.193]:56000 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727599AbeKTT6n (ORCPT ); Tue, 20 Nov 2018 14:58:43 -0500 Received: by mail-it1-f193.google.com with SMTP id o19so2335734itg.5 for ; Tue, 20 Nov 2018 01:30:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pjRZ0FxO3QXbv2zYC/8xWUIkc6CGCIT/aoU9vJaW2gI=; b=HDLVCs0nt9q2lmhKUjmAT/A/0mU1Nbdv1Q/DdD0MeMvdAN0rxzKwUVALRFdADG+wqF oUFZ28qf3or9HJkJvGei98jXrmuCd1pIM8J7L6v/XGB3eRklR3ZRdPgxmo6p8QBBrbC3 9t5Wbe5z9hZwZdEHLL1QdaJHLuBgTUGiBWuXA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=pjRZ0FxO3QXbv2zYC/8xWUIkc6CGCIT/aoU9vJaW2gI=; b=iEGwQN76kF1LgiHYNuMtzsVt/cae26XXjI9J2qLPBGXomgL5s8V5fEgHCp5PcuAXZi zOA2AIY48umAzYnxthkZK5183V7lRrhlEt6/ZnXtF+BGFSOXCpJrnYmzBMSkfBYQfqqa p5U6bGozSbhq/Yj3QRY9bhhQ6/LD4/UiZ6+vria5keoVDQ1RmT3K7+FLu2p2oFdLlU7E BCM2SoD7z3OADcOFTW8NSRfUItDD2lPDNYVZOpSY3vkMNb8Kh0dg6yPwIcSMWoKKmR1d lASpNdo+0Jtdnbuczu90SJd0t9HlTMKcm6zo5dMM+pCVoJ2mjy4J8bbxxqk6slm3wSOy Ox+g== X-Gm-Message-State: AGRZ1gIEt2dOINCTwMEvZCtJ+jINoCFIjemZ4XoR7EmoOifoyB9Lhx2+ lw5pB6juO9OEugu23dAOt8/xK+VxBCXI0t2nR4qKCQ== X-Received: by 2002:a24:d4:: with SMTP id 203-v6mr1452646ita.26.1542706233287; Tue, 20 Nov 2018 01:30:33 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a02:70c8:0:0:0:0:0 with HTTP; Tue, 20 Nov 2018 01:29:52 -0800 (PST) In-Reply-To: <1542005537-19154-1-git-send-email-vbadigan@codeaurora.org> References: <1542005537-19154-1-git-send-email-vbadigan@codeaurora.org> From: Ulf Hansson Date: Tue, 20 Nov 2018 10:29:52 +0100 Message-ID: Subject: Re: [PATCH V5 0/2] Re-initialize DLL when MCLK is gated dynamically To: Veerabhadrarao Badiganti Cc: Adrian Hunter , Rob Herring , Evan Green , Doug Anderson , Asutosh Das , Harjani Ritesh , Sahitya Tummala , Sayali Lokhande , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , linux-arm-msm , DTML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12 November 2018 at 07:52, Veerabhadrarao Badiganti wrote: > 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. SDHC cotroller on SDM845 SOC > has this limitation. > > Changes since V4: > - Exactly same as V3, posted multiple mails for V4. > So to avoid confusion updating it as V5. > > Changes since V3: > - Introduced SoC specific dt compatible string for sdhci-msm > controller > - Moved the condition which checks whether tuning is needed or > not, to a common function. > > Changes since V2: > - Removed an unused variable. > - Renamed the newly introduced flags to be more meaningful. > - Added new dt compatible string for SDM845 SOC. > > 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 > Veerabhadrarao Badiganti (2): > dt-bindings: mmc: sdhci-msm: Add SoC-specific compatible strings > mmc: sdhci-msm: Re-initialize DLL if MCLK is gated dynamically > > .../devicetree/bindings/mmc/sdhci-msm.txt | 21 ++++-- > drivers/mmc/host/sdhci-msm.c | 78 +++++++++++++++++++--- > 2 files changed, 84 insertions(+), 15 deletions(-) Applied for next, thanks! Kind regards Uffe