All of lore.kernel.org
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij@linaro.org>
To: Chanho Park <chanho61.park@samsung.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	Andi Shyti <andi@etezian.org>, Mark Brown <broonie@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Alim Akhtar <alim.akhtar@samsung.com>,
	devicetree@vger.kernel.org, linux-spi@vger.kernel.org,
	linux-samsung-soc@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v3 2/4] spi: s3c64xx: support custom value of internal clock divider
Date: Thu, 30 Jun 2022 11:07:25 +0200	[thread overview]
Message-ID: <CACRpkdadUF8iQhhpO53VgbY0NBqJsmW7sXGUayN4+LrRYouwVA@mail.gmail.com> (raw)
In-Reply-To: <20220629102304.65712-3-chanho61.park@samsung.com>

On Wed, Jun 29, 2022 at 12:27 PM Chanho Park <chanho61.park@samsung.com> wrote:

> Modern exynos SoCs such as Exynos Auto v9 have different internal clock
> divider, for example "4". To support this internal value, this adds
> clk_div of the s3c64xx_spi_port_config and assign "2" as the default
> value to existing s3c64xx_spi_port_config.
>
> Signed-off-by: Chanho Park <chanho61.park@samsung.com>

I don't really see why this divider value should be hard-coded like this.

I guess it is some default value, that's OK I guess, then call it:

> + * @clk_div: Internal clock divider
> +       int     clk_div;

clk_div_default

And the documentation should say "clock divider to be used
by default unless a specific clock frequency is configured"

Yours,
Linus Walleij

WARNING: multiple messages have this Message-ID (diff)
From: Linus Walleij <linus.walleij@linaro.org>
To: Chanho Park <chanho61.park@samsung.com>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	Andi Shyti <andi@etezian.org>,  Mark Brown <broonie@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	 Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Alim Akhtar <alim.akhtar@samsung.com>,
	 devicetree@vger.kernel.org, linux-spi@vger.kernel.org,
	 linux-samsung-soc@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v3 2/4] spi: s3c64xx: support custom value of internal clock divider
Date: Thu, 30 Jun 2022 11:07:25 +0200	[thread overview]
Message-ID: <CACRpkdadUF8iQhhpO53VgbY0NBqJsmW7sXGUayN4+LrRYouwVA@mail.gmail.com> (raw)
In-Reply-To: <20220629102304.65712-3-chanho61.park@samsung.com>

On Wed, Jun 29, 2022 at 12:27 PM Chanho Park <chanho61.park@samsung.com> wrote:

> Modern exynos SoCs such as Exynos Auto v9 have different internal clock
> divider, for example "4". To support this internal value, this adds
> clk_div of the s3c64xx_spi_port_config and assign "2" as the default
> value to existing s3c64xx_spi_port_config.
>
> Signed-off-by: Chanho Park <chanho61.park@samsung.com>

I don't really see why this divider value should be hard-coded like this.

I guess it is some default value, that's OK I guess, then call it:

> + * @clk_div: Internal clock divider
> +       int     clk_div;

clk_div_default

And the documentation should say "clock divider to be used
by default unless a specific clock frequency is configured"

Yours,
Linus Walleij

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2022-06-30  9:07 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20220629102527epcas2p4ab04f91877e5f744c4a4e37827d19ce8@epcas2p4.samsung.com>
2022-06-29 10:23 ` [PATCH v3 0/4] spi support for Exynos Auto v9 SoC Chanho Park
2022-06-29 10:23   ` Chanho Park
     [not found]   ` <CGME20220629102527epcas2p21c9ba830afdf5ec5a8afde4707206186@epcas2p2.samsung.com>
2022-06-29 10:23     ` [PATCH v3 1/4] spi: s3c64xx: support loopback mode Chanho Park
2022-06-29 10:23       ` Chanho Park
     [not found]   ` <CGME20220629102527epcas2p42e99f44d529d215623bd0e12a082d1dd@epcas2p4.samsung.com>
2022-06-29 10:23     ` [PATCH v3 2/4] spi: s3c64xx: support custom value of internal clock divider Chanho Park
2022-06-29 10:23       ` Chanho Park
2022-06-29 10:52       ` Andi Shyti
2022-06-29 10:52         ` Andi Shyti
2022-06-29 11:13       ` Krzysztof Kozlowski
2022-06-29 11:13         ` Krzysztof Kozlowski
2022-06-29 11:36       ` Mark Brown
2022-06-29 11:36         ` Mark Brown
2022-06-30  9:07       ` Linus Walleij [this message]
2022-06-30  9:07         ` Linus Walleij
2022-06-30  9:16       ` Linus Walleij
2022-06-30  9:16         ` Linus Walleij
2022-07-01  7:08         ` Chanho Park
2022-07-01  7:08           ` Chanho Park
     [not found]   ` <CGME20220629102527epcas2p17d7347cf06341193ec91b5f892e69217@epcas2p1.samsung.com>
2022-06-29 10:23     ` [PATCH v3 3/4] dt-bindings: samsung,spi: define exynosautov9 compatible Chanho Park
2022-06-29 10:23       ` Chanho Park
     [not found]   ` <CGME20220629102527epcas2p19e967e3647084cbfad1bff0b9390b4ad@epcas2p1.samsung.com>
2022-06-29 10:23     ` [PATCH v3 4/4] spi: s3c64xx: add spi port configuration for Exynos Auto v9 SoC Chanho Park
2022-06-29 10:23       ` Chanho Park
2022-06-29 14:44   ` [PATCH v3 0/4] spi support " Mark Brown
2022-06-29 14:44     ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CACRpkdadUF8iQhhpO53VgbY0NBqJsmW7sXGUayN4+LrRYouwVA@mail.gmail.com \
    --to=linus.walleij@linaro.org \
    --cc=alim.akhtar@samsung.com \
    --cc=andi@etezian.org \
    --cc=broonie@kernel.org \
    --cc=chanho61.park@samsung.com \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.