Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp977468ybl; Mon, 2 Dec 2019 22:43:00 -0800 (PST) X-Google-Smtp-Source: APXvYqydnEmJ0js8qHGJOx50S35Eojm+s8QgixBl9c34LKeh45Lv5CGyVO/ExqYIZxqci1OPgS4g X-Received: by 2002:a05:6808:24e:: with SMTP id m14mr2477148oie.168.1575355380130; Mon, 02 Dec 2019 22:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575355380; cv=none; d=google.com; s=arc-20160816; b=fHqC2g5URUXiCYmeZx5FBZaz5oQczGqlWP4ZkvlwR88iwWlDnWxPmRhMA4hByuhfTz G9zBj4Tvdk1uXpIF2kLQOo2U9YjpqtfYtNKtybqDTDgGnvRlS6ur2MtTihWtFH8Qnzds GQZbBVqBVz4hQ+Oq73F+MxlXaGBgsb3NUrjMjUor6Q5eum8bIwA8L96QR3UTlU48Ftnz Wy4HBNunN4jFTrLwwXZfdB2syyR7EH69fYpFG7gWrIBezOoq1YEhsDA4EoRefzorBoeZ h20rShsIOhPfEYyvNfADFCzFJ+tdOtD7fIi93yrVF4fR7XLEyHMuKmnBQR9nOK3/vb5W /kOA== 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:dkim-filter; bh=d1TaPWKkweQ1rY/9jQKGxR8RbctwUl4ZdBH262gE6Ek=; b=s7MZBm99ilwJ5JsGNtxvsAIrqzBzBiQ7K0JaPDcXcuIxGF63D/VLj3pNAmxCm5iDlp lHM0jTPr/bul9678xFpbhxOE8PVBRy7jBo489gXW0X31kbqvtsifJvV+ipX3aj+6SGEZ NlpAcym51RmV9Ywf/khuSrdVQzXL1I266+x1HTSiFbVCsiswmaN3BWT/tV4ThgzDkV++ p8Gm++4qy9r3EOwtLty4Qo90ZHTFLiN4OZddequDgeCQcXT/x/UW+k9UvEuh+sO0UURO cGg7+Ofu6plA1j8V3LTUDfTOYcOiN9HkqU9nrFTUj0qqQ7UBBPXGtIGxi/OgaSTc3czc nxiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=SwoYHX5o; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o91si797968ota.206.2019.12.02.22.42.48; Mon, 02 Dec 2019 22:43:00 -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=@nifty.com header.s=dec2015msa header.b=SwoYHX5o; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727314AbfLCGmP (ORCPT + 99 others); Tue, 3 Dec 2019 01:42:15 -0500 Received: from conssluserg-03.nifty.com ([210.131.2.82]:35687 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726521AbfLCGmP (ORCPT ); Tue, 3 Dec 2019 01:42:15 -0500 Received: from mail-vs1-f48.google.com (mail-vs1-f48.google.com [209.85.217.48]) (authenticated) by conssluserg-03.nifty.com with ESMTP id xB36fxQx002046; Tue, 3 Dec 2019 15:41:59 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com xB36fxQx002046 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1575355319; bh=d1TaPWKkweQ1rY/9jQKGxR8RbctwUl4ZdBH262gE6Ek=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=SwoYHX5ogHo9RL8Nc+N0vXtoMdM8NTbmdzHaNGMQ8mkQAHOL/krz6QWLr4Vn72MfY OSPm4OaSQgfPeghIdjSFPVKurVV4Xy94Oj7MQBwgH6ptJ3vMjxhRLLFZXS4PWfmiUA H+3M1wPKDdPRfYCJbv7nrR6FEeXsW80r09rOsxFGVYzix4//vA5PBuTlv4w82VJSwZ M5twJrrM7vL8yd/iXmHzDlkHiEL/XxvPOAOlfcQLae//PzwCdFxrjI3Ydqbt6OlzOj iOEKDYVL4rR3wZYDxQ1Q7KHFhcrD7JIXTDhePJ04lvB2YzzFcbU8l0X3mVkYKj0Htg ARgPMppx73Zbg== X-Nifty-SrcIP: [209.85.217.48] Received: by mail-vs1-f48.google.com with SMTP id n27so1685569vsa.0; Mon, 02 Dec 2019 22:41:59 -0800 (PST) X-Gm-Message-State: APjAAAVWGdEYYebf8uWhcG94343K8IDlsICABzwOHU0u7SyVDdGc97NC kfP/TqR3ynAKgV8wsW4MRT+DhUI/2SfjNU0ou8g= X-Received: by 2002:a67:f6c2:: with SMTP id v2mr1763077vso.54.1575355318341; Mon, 02 Dec 2019 22:41:58 -0800 (PST) MIME-Version: 1.0 References: <1575000968-19434-1-git-send-email-hayashi.kunihiko@socionext.com> In-Reply-To: <1575000968-19434-1-git-send-email-hayashi.kunihiko@socionext.com> From: Masahiro Yamada Date: Tue, 3 Dec 2019 15:41:22 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] clk: uniphier: Add SCSSI clock gate for each channel To: Kunihiko Hayashi Cc: Michael Turquette , Stephen Boyd , linux-clk , linux-arm-kernel , Linux Kernel Mailing List , Masami Hiramatsu , Jassi Brar 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, Nov 29, 2019 at 1:16 PM Kunihiko Hayashi wrote: > > SCSSI has clock gates for each channel in the SoCs newer than Pro4, > so this adds missing clock gates for channel 1, 2 and 3. And more, this > moves MCSSI clock ID after SCSSI. > > Signed-off-by: Kunihiko Hayashi > --- Fixes: ff388ee36516 ("clk: uniphier: add clock frequency support for SPI") Acked-by: Masahiro Yamada > drivers/clk/uniphier/clk-uniphier-peri.c | 13 ++++++++----- > 1 file changed, 8 insertions(+), 5 deletions(-) > > diff --git a/drivers/clk/uniphier/clk-uniphier-peri.c b/drivers/clk/uniphier/clk-uniphier-peri.c > index 9caa529..3e32db9 100644 > --- a/drivers/clk/uniphier/clk-uniphier-peri.c > +++ b/drivers/clk/uniphier/clk-uniphier-peri.c > @@ -18,8 +18,8 @@ > #define UNIPHIER_PERI_CLK_FI2C(idx, ch) \ > UNIPHIER_CLK_GATE("i2c" #ch, (idx), "i2c", 0x24, 24 + (ch)) > > -#define UNIPHIER_PERI_CLK_SCSSI(idx) \ > - UNIPHIER_CLK_GATE("scssi", (idx), "spi", 0x20, 17) > +#define UNIPHIER_PERI_CLK_SCSSI(idx, ch) \ > + UNIPHIER_CLK_GATE("scssi" #ch, (idx), "spi", 0x20, 17 + (ch)) > > #define UNIPHIER_PERI_CLK_MCSSI(idx) \ > UNIPHIER_CLK_GATE("mcssi", (idx), "spi", 0x24, 14) > @@ -35,7 +35,7 @@ const struct uniphier_clk_data uniphier_ld4_peri_clk_data[] = { > UNIPHIER_PERI_CLK_I2C(6, 2), > UNIPHIER_PERI_CLK_I2C(7, 3), > UNIPHIER_PERI_CLK_I2C(8, 4), > - UNIPHIER_PERI_CLK_SCSSI(11), > + UNIPHIER_PERI_CLK_SCSSI(11, 0), > { /* sentinel */ } > }; > > @@ -51,7 +51,10 @@ const struct uniphier_clk_data uniphier_pro4_peri_clk_data[] = { > UNIPHIER_PERI_CLK_FI2C(8, 4), > UNIPHIER_PERI_CLK_FI2C(9, 5), > UNIPHIER_PERI_CLK_FI2C(10, 6), > - UNIPHIER_PERI_CLK_SCSSI(11), > - UNIPHIER_PERI_CLK_MCSSI(12), > + UNIPHIER_PERI_CLK_SCSSI(11, 0), > + UNIPHIER_PERI_CLK_SCSSI(12, 1), > + UNIPHIER_PERI_CLK_SCSSI(13, 2), > + UNIPHIER_PERI_CLK_SCSSI(14, 3), > + UNIPHIER_PERI_CLK_MCSSI(15), > { /* sentinel */ } > }; > -- > 2.7.4 > -- Best Regards Masahiro Yamada