Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1309752imd; Thu, 1 Nov 2018 13:35:53 -0700 (PDT) X-Google-Smtp-Source: AJdET5fp5MR0O1UhIhtZxRQZqk+nqBiJ50/c3ejmCGHjrcxCVn352A1JfrDCoau/UlR9wlzvBakp X-Received: by 2002:a17:902:28a2:: with SMTP id f31-v6mr9097969plb.312.1541104553741; Thu, 01 Nov 2018 13:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541104553; cv=none; d=google.com; s=arc-20160816; b=OvjZSwF52FwMb4Yge02ta5TjtnoM+k16Dk4ThDH71WJ8gFp3IwiJ05JKXUjPd3/0uL 97PIbGDmwm1RHYL5ZKRQL3FfmuCr4DZY1N52ekkZIZ4wvI5ibQJwGeddQDfc5OeQI3cv PJVaA9l4fPib8qZTgU3YWKz46PFNVWAfYSJaiLSl/6toCETMJJ+Cv2RXhiYIXoWQxefP Tyl0bxAxpd8yQNv9lvDf5H7oRQ8fYn61rfrm/fXCtt+GmAyOh9mOYrEnYWMMtE4OiWl9 2+Bc0b0QSDPaUNn9gQ3uHI5XExjakWgiLnIxXykm/PbNvvIJXGTCfyxPLdFI5/danHBQ 6HEQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=A1ccitTiEnIn0NIxNEiZUO7Pg547IWf6T2kcK+zCA7g=; b=TfF+GDT3w7WnRdWc15xCUJb22aWz7rqEoYz+Ov0Bqk//MyTITau2+t/BZ7XTdzEQAq Zf1FSHTCpW/Qwy2y4s9wKmChqjApPr8/Q9RYBbCdLq9/VIXnafjwWDmwTTNnNk58Xu3T fXQo8JgsD6j/VuexVM/SzIdA5+YCC1d3nKwMQKNiuI8NUx98qtCHqPAB8SGEO6eIaeZx dpFnvVvOmfoXivd9ywFZc2TNBYbkO6aZIVy7XJQPwUWX7kLytUa4+ZfuiArjSPQ/VV5z KHqy2Rjeop+wiuxBAyFPfbErVWyyJ0NfwfZ620pKIb5mHbCMDU1BLmMb8QyYy8N+s4au KHUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VfqdU7e2; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u15-v6si9305749plq.353.2018.11.01.13.35.38; Thu, 01 Nov 2018 13:35:53 -0700 (PDT) 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=@google.com header.s=20161025 header.b=VfqdU7e2; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726307AbeKBFiG (ORCPT + 99 others); Fri, 2 Nov 2018 01:38:06 -0400 Received: from mail-ua1-f65.google.com ([209.85.222.65]:34625 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbeKBFiF (ORCPT ); Fri, 2 Nov 2018 01:38:05 -0400 Received: by mail-ua1-f65.google.com with SMTP id e16so7705652uam.1 for ; Thu, 01 Nov 2018 13:33:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=A1ccitTiEnIn0NIxNEiZUO7Pg547IWf6T2kcK+zCA7g=; b=VfqdU7e2tSu4CFbVigp0aLqLR32bOTcTCJHlhSXC06DiVZRwJ2hanS33beGVXRVwut dyMpBhBu6tMNbQuaLAcSI5H6pUiCuoJGNo7nlhvWK6kwiniqYNGJvMTODL+g0TgrMf2l PGoKXYLXhJ5GPIodzzXl3WCzNXLLs709P8TNRjaI9bsyzUnA84t0dbQMV2lgUQkrue0I mjhNaqGrX/xBw7jsvI8w0VywUVDw2J0YxRwtFGi1Jb61GCCmc49cMdrxxPtqnys4acFn hICeQ5Nh0V8OkiteskvbJgSNDuMRyK+VcJ8G/qjwN/IM3R7QNuyXqc4yPZ7iYC6s9kl9 JRHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=A1ccitTiEnIn0NIxNEiZUO7Pg547IWf6T2kcK+zCA7g=; b=imyQ19FU437mKw8S29rlFAnmALVsHtI92SJe7v+HOZ1kBlvk6oQLY1vFtfUr+cV7Zc 4To2Fy1qib3msQCTpi0Yfm1ltZN/mEFpJ6oQrizJEe8MSttzEMkmGEWWHaFhNNrwQXll JaA8Dppr4AIdz+gKnI8Ci2Ioak/K+RcFwAZx7FswlGoJmU6bB3b1kyKBYydh2Vu3qyUj FjIRC2YlR7PomDAahBS57k904gcbIVwrZ7uN7ISq4CG4BOynQaSVFzEyFNvMrIv2TYdn ZVE09jK7xiMGQ+8Mv1UYGVI6KblyOLJWMKC2hcCb8U++S/Jmcju7nnpqJGZwswcOFUlM lbhQ== X-Gm-Message-State: AGRZ1gIGOJSaMFp0SLrcX9QGj9P1teUv0uZcamqcr2G0NGMzvwBqlh9M TZe+k1V117IvdwcMv/v9IcIb04qh5cqSMYpRiniT6g== X-Received: by 2002:ab0:650e:: with SMTP id w14mr3427660uam.83.1541104413025; Thu, 01 Nov 2018 13:33:33 -0700 (PDT) MIME-Version: 1.0 References: <1541073999-11752-1-git-send-email-vbadigan@codeaurora.org> <1541073999-11752-3-git-send-email-vbadigan@codeaurora.org> In-Reply-To: <1541073999-11752-3-git-send-email-vbadigan@codeaurora.org> From: Doug Anderson Date: Thu, 1 Nov 2018 13:33:21 -0700 Message-ID: Subject: Re: [PATCH V3 2/2] mmc: sdhci-msm: Re-initialize DLL if MCLK is gated dynamically To: vbadigan@codeaurora.org Cc: Adrian Hunter , Ulf Hansson , Rob Herring , Evan Green , Asutosh Das , riteshh@codeaurora.org, stummala@codeaurora.org, sayalil@codeaurora.org, LKML 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 Hi, On Thu, Nov 1, 2018 at 5:08 AM Veerabhadrarao Badiganti wrote: > static const struct sdhci_msm_variant_info sdhci_msm_v5_var = { > .mci_removed = true, > + .restore_dll_config = false, > + .var_ops = &v5_var_ops, > + .offset = &sdhci_msm_v5_offset, > +}; > + > +static const struct sdhci_msm_variant_info sdm845_sdhci_var = { > + .mci_removed = true, > + .restore_dll_config = true, > .var_ops = &v5_var_ops, > .offset = &sdhci_msm_v5_offset, > }; One last thing: are there actually any "v5" controllers that _don't_ require restoring the DLL? Since "sdm845" is currently the only v5 controller maybe just set "restore_dll_config = true" for all v5 controllers and when there's a new v5 controller that doesn't need it then match off the SoC-specific compatible string. As per my review of the bindings patch IMO you should include both the "v5" and the SoC-specific string for SDM845 (and all future SoCs) so you could make the generic v5 case do this... -Doug