Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2421143ybi; Mon, 17 Jun 2019 04:38:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuSwlpKoEVOhQx5jFjqdv8CE0vgsOa0nKOcbj4W5Bxb79U+2VgrncnjEf87mKYJ75RFknX X-Received: by 2002:a62:750c:: with SMTP id q12mr93808715pfc.59.1560771511757; Mon, 17 Jun 2019 04:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560771511; cv=none; d=google.com; s=arc-20160816; b=O8GpofVJLIPxrUDy2PeSczf32GHlnuvMG/XN3SRhzwmfVnYKJHZMC6yeO15x5u2ig6 TKqcFW0E1axh2IQATzW5tACEFuz0/kDYu3GZDOqJJMLQX6OGNDH3jo5IeykG+gHpa4XF StSS0Wh1rRYrkGfPBsPlWdt1XYgcWFfnprN6GDdofDzaZ4CkoQSXDW6rn6V87XlbpWr+ iRu46ZKs5KYgChfGBjROzAwIZEYWHg10cImSkhYhJPO20rjAe9luwhV6ahLyR7z8rRge 0tX7a9HspOq6upnE6pnKdh/LnFf9dH/pXQroUdqGKkHKbXCEbRBbkkMhfYVmRpXuuxgk EHzQ== 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=nSqieASavyS4hAmtN+rUBOJEe/7rLoXSKUZrznGx70k=; b=yuQA/Qiwgdk+RibZscIUTG22FhVMJoMelxBdfPaAcwCBdG1Da57Olq2YgitzUH8Q5d BJ4/XU0omTntR3f+7uKuMqF+MsADGCtdZ53tVizq4EAvkX91ihCv4gwYxeNrrldtT1oB UppvmyAfA6JhxZG0XcMy5ohOxx8Fa6TJ7nG2YXd6qBhqc/csvVkOrf99vNYXtGdcie0Q H08x4nx2jeYSur9pn+Zrdl4XMpFfAp16+ziEjxo8iXxhZvYnj0FEMdqsnSr3VPD/DkLc qnySqmd4PoCoRjAO+X9E9WrynAOumJQegmtCqLMjJKHRlkNk30OuLi5w7V+3QgNw0f3t zCig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Wd26W2ri; 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 a63si10566018pla.348.2019.06.17.04.38.17; Mon, 17 Jun 2019 04:38:31 -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=Wd26W2ri; 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 S1728391AbfFQLgC (ORCPT + 99 others); Mon, 17 Jun 2019 07:36:02 -0400 Received: from mail-vs1-f65.google.com ([209.85.217.65]:46748 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728384AbfFQLgA (ORCPT ); Mon, 17 Jun 2019 07:36:00 -0400 Received: by mail-vs1-f65.google.com with SMTP id l125so5844356vsl.13 for ; Mon, 17 Jun 2019 04:36:00 -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=nSqieASavyS4hAmtN+rUBOJEe/7rLoXSKUZrznGx70k=; b=Wd26W2riDHjXKZhtVVDjaHoRTCo3KoqecNJUxQy7SdCiyicfZtJoeym4YslYZT5z8v 58FAKGSTKivZqRWpfOAzDJ4Pr9XgSsidHnKMLgqKgyZvBC52+7FTVUkntYHFZ+f6bjuY l89inADrQtD0oHbROqE0XItxwIjwx5CpmrjJGpVRGKB9buM78uT9I97VIelAf7DlT2lT IrzctmCvBIV/jHMH0bbeLC2q10Al44VCam3QbtG3HOlv/RZPBUVtPIS6wgTpwhZ1yJUg L+g4CPHP/OQwONR3R31FLXGfe0NaHXDBM42kCPs+TNNlXRODzovt82/ksNWfvBBhB3S4 fLaA== 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=nSqieASavyS4hAmtN+rUBOJEe/7rLoXSKUZrznGx70k=; b=fjOVJdh2rbysiWPedrKNgTx2PFFH9qweWtY9H2DRjBir1xYTfEEl0YVBALQorgvKGm sXWkBWkkUBsZSvXO2cpJPEk3FjD59eQxM7a+ouvfKxZeGvTnRjzwVzKQX7QxtDFeTp+V E1L4qE/FTi1UbUTMYns4VG/VHLBCsf7/MVj2acO/u0KH/lDze2rHmk+dNco+uvNz5nuq wTzA90HJN7GMUuwq6YQxyunamQXeWCno63bdVGdlMGwUlfU1oqMTl4SO7a7GM0URKdmO GL/+6tCbe2jvuZiVCQABRpYmzp05hXpZZDYD3HdeNjGxAJP2fSLryo5Fn0WyQtkGBrR0 z5Yw== X-Gm-Message-State: APjAAAWVG4LgZpEIoi8HpK5nDLrgKO/36FFczBtGSK3zX9kBxXhP3yxM tLuh4eWRuyA2obv3VNw0VAuoelhWt2gkFijrX96cUQ== X-Received: by 2002:a67:7a90:: with SMTP id v138mr11500943vsc.200.1560771359908; Mon, 17 Jun 2019 04:35:59 -0700 (PDT) MIME-Version: 1.0 References: <20190614082954.39648-1-yinbo.zhu@nxp.com> <20190614082954.39648-2-yinbo.zhu@nxp.com> In-Reply-To: <20190614082954.39648-2-yinbo.zhu@nxp.com> From: Ulf Hansson Date: Mon, 17 Jun 2019 13:35:23 +0200 Message-ID: Subject: Re: [PATCH v1] mmc: sdhci-of-esdhc: use 1/2 periperhal clock for ls1028a To: Yinbo Zhu Cc: Adrian Hunter , Xiaobo Xie , Jiafei Pan , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , Yangbo Lu 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 Fri, 14 Jun 2019 at 10:28, Yinbo Zhu wrote: > > From: Yangbo Lu > > LS1028A used 1/2 periperhal clock as one reference clock. > > Signed-off-by: Yangbo Lu Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/sdhci-of-esdhc.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/drivers/mmc/host/sdhci-of-esdhc.c b/drivers/mmc/host/sdhci-of-esdhc.c > index c56c7d413a09..4dd43b1adf2c 100644 > --- a/drivers/mmc/host/sdhci-of-esdhc.c > +++ b/drivers/mmc/host/sdhci-of-esdhc.c > @@ -1048,11 +1048,12 @@ static void esdhc_init(struct platform_device *pdev, struct sdhci_host *host) > /* > * esdhc->peripheral_clock would be assigned with a value > * which is eSDHC base clock when use periperal clock. > - * For ls1046a, the clock value got by common clk API is > - * peripheral clock while the eSDHC base clock is 1/2 > - * peripheral clock. > + * For some platforms, the clock value got by common clk > + * API is peripheral clock while the eSDHC base clock is > + * 1/2 peripheral clock. > */ > - if (of_device_is_compatible(np, "fsl,ls1046a-esdhc")) > + if (of_device_is_compatible(np, "fsl,ls1046a-esdhc") || > + of_device_is_compatible(np, "fsl,ls1028a-esdhc")) > esdhc->peripheral_clock = clk_get_rate(clk) / 2; > else > esdhc->peripheral_clock = clk_get_rate(clk); > -- > 2.17.1 >