Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp723429ybl; Thu, 22 Aug 2019 04:00:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwFP3jb0+Uxgdvw4VOhAJM13X7EIgzaaOkptQVB2lpyf6vsSMyTh01aDqgCdsgEwP21yyV X-Received: by 2002:aa7:9903:: with SMTP id z3mr4219882pff.200.1566471653750; Thu, 22 Aug 2019 04:00:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566471653; cv=none; d=google.com; s=arc-20160816; b=qR0xRW8K0U05aC7gv2oCilJwMMseYMVCSEUc4VJ3RMoxnKFZObaSkxPh2SYgQWDR/i UyP/aPCn6Bl3R43Fw1fGxJ0eWq/hLYCkwm7Vr9d+HzbgggMbHWFDeLu2UgC7HAjmMblD POtpTIf6JR7UW3H9Kc4U7VpMpxqpD2xrREautD756a16k3hJ4n6quzOHnJ7BfkqpRucj NIIXugy9iXo/VZvUSRysZ7Q94+Huep1izmiTaW0wcZX5JSk9X0RhNpqkAMj7AvSHmr97 8JUC89jVCQQ5w5HrB7n4N/e+VFKV6IT1L2ba4NpGrAKV1+l9GR5kpimMXoB3Fs5R4gKk aI0g== 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=zOEkRYPATcgB1yCjMacSqNwJ3U82U8mp5KIsLfcMY28=; b=vfLQecnzoIyRH9iHesPpXID7c5wQEhrT2pA1UU3SA73D3vD/y0Hp7O2WdjnUULQvnI sGK7KRXHCoLk0kq0eTqPVh9944nPCNR8i2T4il5JCMuEqk409S9rxSI3VqNNNcd/A8cv nlSMNMNEzDlCZXehIDvOt+cf3TQQFOV0sof7QHg7xgO66qZyazejeFs7Bd4ZNR0owD8G 6OuulWs41iVHeKxzGHTUd24YKMiAHTsSAoLiOuYwy+dA0INTym9QrgLOrdPyDSOGvyd6 jJp0vNTNaSJZRS4GZLCg3MVdixc97k+UtMjV6CbPEpa7rmifeUzBHeP3kg5SvrWQ38OW m44Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iTQO3e13; 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 d5si17322771pla.93.2019.08.22.04.00.38; Thu, 22 Aug 2019 04:00: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=@linaro.org header.s=google header.b=iTQO3e13; 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 S1732441AbfHVIfy (ORCPT + 99 others); Thu, 22 Aug 2019 04:35:54 -0400 Received: from mail-ua1-f67.google.com ([209.85.222.67]:40480 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732424AbfHVIfw (ORCPT ); Thu, 22 Aug 2019 04:35:52 -0400 Received: by mail-ua1-f67.google.com with SMTP id s25so1724243uap.7 for ; Thu, 22 Aug 2019 01:35:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zOEkRYPATcgB1yCjMacSqNwJ3U82U8mp5KIsLfcMY28=; b=iTQO3e13zf/MUzDd9p+wT0xyZnSZJKmpc0MO+3AmwLOcd5XqVRyj/uHashtUC1tU8S VfcMWwzjjYjze7X81DYBknIVOrTBAR85/xT5lIMn/JESsw4un2OefwsnSL4eCdfHmncN SMG0X1PnqlDVCqSeyVlFe9kmMbqXfXMZQfLtgvoxXVjaWVbwwyK2U0OqkIddQFjXCR3D wQp6DY3BNBvKrkDEcla2qFca3TWKlMWgE5TKYB8PHtcG1MBFKKU1mo22p+VeCmjmWOJM 5U6+dVUVe737TR9yRHCrPGN8aJ8rTReO768saNGE5IclkVhs0ZKBCyZWi4I4GNXX5Tvy 7xIA== 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=zOEkRYPATcgB1yCjMacSqNwJ3U82U8mp5KIsLfcMY28=; b=eJ+0t2UKeo41V3HusTtM4kK7dsITj6Qmo2OZGC2yMkESpXtZxINzr/WClyCcir/00+ zff/8ouWybEbSjwmWqza12LfWCaqIiAxXfZxPHOr2KL72IHE5We39QLiiExziKxDJaph parl6WDuikcTfevmAbATJViNY1497RzVn0jfPEHeBYvbkZIk7qjqwVg/hZJIoKxESEcY AWmVOF3/3sNTtBTG+ClU0HwtcBwCjuv/iThLmmtSqYneswyFpmkGJBOG2tn4EDx0Baal fqlFn5Ia5Ha/kMV4UarLMrlMmgtn9o4WljXwdrwibALlQOpR6Q5ws/sOC9sVimLTjrIv MABA== X-Gm-Message-State: APjAAAVkNeWIAg++vrwxVnI/Uj78mFzBrwSIWA2ey9a2BDqENHR1oCpk Cq7nzX1lyhJBMXInewMIdvGcZmZUje4vg91xAKB2gQ== X-Received: by 2002:ab0:210f:: with SMTP id d15mr4931543ual.129.1566462951621; Thu, 22 Aug 2019 01:35:51 -0700 (PDT) MIME-Version: 1.0 References: <1566412708-6130-1-git-send-email-shirley.her@bayhubtech.com> In-Reply-To: <1566412708-6130-1-git-send-email-shirley.her@bayhubtech.com> From: Ulf Hansson Date: Thu, 22 Aug 2019 10:35:15 +0200 Message-ID: Subject: Re: [PATCH V8 1/3] mmc: sdhci-pci-o2micro: Change O2 Host PLL and DLL register name To: "Shirley Her (SC)" Cc: "adrian.hunter@intel.com" , "linux-mmc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Chevron Li (WH)" , "Shaper Liu (WH)" , "Louis Lu (TP)" , "Max Huang (SC)" 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 Wed, 21 Aug 2019 at 20:38, Shirley Her (SC) wrote: > > Change O2 Host PLL and DLL register name > > Signed-off-by: Shirley Her It seems like you managed to post the version 8, two times. Is there any difference? Which one should we review? Kind regards Uffe > --- > change in V8: > 1. fix patch format error > > change in V7: > 1. change subject > > change in V6: > 1. change subject and commit message to match the patch > 2. change register name O2_PLL_WDT_CONTROL1 to O2_PLL_DLL_WDT_CONTROL1 > > change in V5: > 1. split 2 patches into 3 patches > 2. make dll_adjust_count start from 0 > 3. fix ret overwritten issue > 4. use break instead of goto > > change in V4: > 1. add a bug fix for V3 > > change in V3: > 1. add more explanation in dll_recovery and execute_tuning function > 2. move dll_adjust_count to O2_host struct > 3. fix some coding style error > 4. renaming O2_PLL_WDT_CONTROL1 TO O2_PLL_DLL_WDT_CONTROL1 > > change in V2: > 1. use usleep_range instead of udelay > 2. move dll_adjust_count to sdhci-pci-o2micro.c > > chagne in V1: > 1. add error recovery function to relock DLL with correct phase > 2. retuning HS200 after DLL locked > --- > drivers/mmc/host/sdhci-pci-o2micro.c | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-pci-o2micro.c b/drivers/mmc/host/sdhci-pci-o2micro.c > index 9dc4548..b3a33d9 100644 > --- a/drivers/mmc/host/sdhci-pci-o2micro.c > +++ b/drivers/mmc/host/sdhci-pci-o2micro.c > @@ -51,7 +51,7 @@ > #define O2_SD_VENDOR_SETTING2 0x1C8 > #define O2_SD_HW_TUNING_DISABLE BIT(4) > > -#define O2_PLL_WDT_CONTROL1 0x1CC > +#define O2_PLL_DLL_WDT_CONTROL1 0x1CC > #define O2_PLL_FORCE_ACTIVE BIT(18) > #define O2_PLL_LOCK_STATUS BIT(14) > #define O2_PLL_SOFT_RESET BIT(12) > @@ -316,23 +316,23 @@ static void sdhci_o2_enable_internal_clock(struct sdhci_host *host) > u32 scratch32; > > /* PLL software reset */ > - scratch32 = sdhci_readl(host, O2_PLL_WDT_CONTROL1); > + scratch32 = sdhci_readl(host, O2_PLL_DLL_WDT_CONTROL1); > scratch32 |= O2_PLL_SOFT_RESET; > - sdhci_writel(host, scratch32, O2_PLL_WDT_CONTROL1); > + sdhci_writel(host, scratch32, O2_PLL_DLL_WDT_CONTROL1); > udelay(1); > scratch32 &= ~(O2_PLL_SOFT_RESET); > - sdhci_writel(host, scratch32, O2_PLL_WDT_CONTROL1); > + sdhci_writel(host, scratch32, O2_PLL_DLL_WDT_CONTROL1); > > /* PLL force active */ > scratch32 |= O2_PLL_FORCE_ACTIVE; > - sdhci_writel(host, scratch32, O2_PLL_WDT_CONTROL1); > + sdhci_writel(host, scratch32, O2_PLL_DLL_WDT_CONTROL1); > > /* Wait max 20 ms */ > timeout = ktime_add_ms(ktime_get(), 20); > while (1) { > bool timedout = ktime_after(ktime_get(), timeout); > > - scratch = sdhci_readw(host, O2_PLL_WDT_CONTROL1); > + scratch = sdhci_readw(host, O2_PLL_DLL_WDT_CONTROL1); > if (scratch & O2_PLL_LOCK_STATUS) > break; > if (timedout) { > @@ -350,9 +350,9 @@ static void sdhci_o2_enable_internal_clock(struct sdhci_host *host) > > out: > /* Cancel PLL force active */ > - scratch32 = sdhci_readl(host, O2_PLL_WDT_CONTROL1); > + scratch32 = sdhci_readl(host, O2_PLL_DLL_WDT_CONTROL1); > scratch32 &= ~O2_PLL_FORCE_ACTIVE; > - sdhci_writel(host, scratch32, O2_PLL_WDT_CONTROL1); > + sdhci_writel(host, scratch32, O2_PLL_DLL_WDT_CONTROL1); > } > > static int sdhci_o2_get_cd(struct mmc_host *mmc) > -- > 2.7.4 >