Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp480696ybe; Wed, 4 Sep 2019 02:54:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqyCMU9HN/FZykq+T2PK5XCd8ORxxU+Yk+O0I8s8syGN3r06DxM/kK82ZP8BYAI9li0yXVkb X-Received: by 2002:aa7:870c:: with SMTP id b12mr6577934pfo.122.1567590883469; Wed, 04 Sep 2019 02:54:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567590883; cv=none; d=google.com; s=arc-20160816; b=xIFeoa+LNEFf0SnxGr2b/e1mT6H0Uf5nqF46a5p9qRK5hIQKndbACQXYoh3hOmTfmQ gph7ZXspEeSGcZpa2p2S76SGxNXkUzhN6UeQeZvcV1nIgNOcmfSwkDKpW6yqYF0a0soR qAyQ7AMTYln2ZVZAHKDvXmKlUxu0jJ69gkZEhFXqfDWgVHz/C4fusd3rDTQPIBaxoytw gVNWOLz15lnP2LYoqfEEn3FfWBRl57oNiJVctvSG4yL4i3bmnZtx0Kdcyr9b6znqpKKh lWEvrFHlihHPscFnaRcggFCFOAS0dC/0LpG/VjJLflX+C9Pa4Vp7EPFm4HFa01bgP3oH Bndw== 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=0EBgbCuBQmwJw3c0KzWyXPiGxZ+LZk1J5Qq98Q0y1Rg=; b=oTxEp82wz+4oKr+30NjL9YwbygtKw1tLaFEOsxUGg/TVGeumb1XfjvVcb8I+6Q9jhn VY1gItNI1RryqzoL1ubg7QvYfpbBu7htuVCnqZYkLJIGa077L8XIqB7MBKPlvY2qPbz8 vCDaAZvftB69LJXdQ74MsEUzoFTSDFOl18I9b17kxAzqDVI9yl/WkYOih+L/ZrhSFhij vag5EgclGDdXv8SU9WAja272g4+s+t9DDARjqc0J95p1NND0w7I43vHNEd7fVMjgFeqr eGeMgimMRWfcjj4DPnmrIuBhylmoLElOuPf7QuK8IsX1363mA5CHlDNJNAGDooSlwB5D mFgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ee5A1aWL; 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 66si13972301pfb.238.2019.09.04.02.54.27; Wed, 04 Sep 2019 02:54:43 -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=Ee5A1aWL; 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 S1729129AbfIDJxh (ORCPT + 99 others); Wed, 4 Sep 2019 05:53:37 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:45734 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726486AbfIDJxh (ORCPT ); Wed, 4 Sep 2019 05:53:37 -0400 Received: by mail-vs1-f68.google.com with SMTP id j25so13303352vsq.12 for ; Wed, 04 Sep 2019 02:53:36 -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=0EBgbCuBQmwJw3c0KzWyXPiGxZ+LZk1J5Qq98Q0y1Rg=; b=Ee5A1aWLCsbyGGzkjTb7nQ4sGxkRejpT4vfKZOuLJ/fuCfE+m4T4xfRzOnHFpJfUJo yXW8KuknGFoCW003Yuj0MppGtZwyJekuDJ26xLfmX8nM/SPLqDSUOZC+ABOykmulOwpS Xl/jFXKX4N+UF5D2PujYQZ7kX6IwbsLtjoCEfaOWZnfIxM7ecq/6yLHfJjZ8unWhk/+j 43QK1fmeHeWyk0+5DRYV6gzf30cCDAx4MRDcRwVDHBhfdmrlWJv64aWjbBWubr/t4+ta Hj2AZMerNI9W4bPajbr7JdpRknfFTsqR9r6mQ27qWDw1HnvA4hz03fnVj0JaeIqXOsqB iKug== 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=0EBgbCuBQmwJw3c0KzWyXPiGxZ+LZk1J5Qq98Q0y1Rg=; b=YbSuPpD65D6hJX9vqOju7qfyjHeePRRxVHe3ogKLgmfWdmDeZKw8K54+KN15c4y8RZ ygiAMBH8Kd6oK/2kOlRiKxg07uV/47djf8zqx18rvF6Yjop1ct2kLdW2E40xFGssWj/b evxgbSDuGA5OhF7VtDEmZ6p/YAy4vjeG1mmkdQlQDbeHyYrIDidlQCUIGOwrRFuneONT rGtPyhHo/khZSexrMOtxz84U6tSA5pgODvic2OK2VeRJa0usL/MeZRo+OSMyHUgZRYtF vo9x6k57TSV6FUjFrcoreujBijYu6PxrExiiXLrR9tV+SZzYfFV73A/GPbjDJS5Cvacw rIDg== X-Gm-Message-State: APjAAAXqtDs12vI5ZAQ0FUefQ+yXE3JlemE6qCU/Hzchgmz0h/ZDiSZs /TuXb0oW4Pp/BKIQR3FM88T7zbafpBYCI53wbmBtRw== X-Received: by 2002:a67:e2cf:: with SMTP id i15mr9188834vsm.165.1567590815885; Wed, 04 Sep 2019 02:53:35 -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: Wed, 4 Sep 2019 11:52:58 +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 Applied for next, thanks! 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 >