From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Michael Turquette <mturquette@baylibre.com>
Cc: Andrzej Hajda <a.hajda@samsung.com>,
Inki Dae <inki.dae@samsung.com>,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
dri-devel@lists.freedesktop.org, linux-clk@vger.kernel.org,
linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org,
Kukjin Kim <kgene@kernel.org>,
Krzysztof Kozlowski <k.kozlowski@samsung.com>,
Hyungwon Hwang <human.hwang@samsung.com>
Subject: Re: [PATCH 01/10] clk/samsung: exynos5433: add definitions of HDMI-PHY output clocks
Date: Tue, 20 Oct 2015 13:17:35 +0200 [thread overview]
Message-ID: <562622CF.1070906@samsung.com> (raw)
In-Reply-To: <20151020103416.20687.40409@quantum>
On 20/10/15 12:34, Michael Turquette wrote:
>> diff --git a/include/dt-bindings/clock/exynos5433.h b/include/dt-bindings/clock/exynos5433.h
>> > index 5bd80d5..4f0d566 100644
>> > --- a/include/dt-bindings/clock/exynos5433.h
>> > +++ b/include/dt-bindings/clock/exynos5433.h
>> > @@ -765,7 +765,10 @@
>> > #define CLK_SCLK_RGB_VCLK 109
>> > #define CLK_SCLK_RGB_TV_VCLK 110
>> >
>> > -#define DISP_NR_CLK 111
>> > +#define CLK_PHYCLK_HDMIPHY_PIXEL_CLKO_PHY 111
>> > +#define CLK_PHYCLK_HDMIPHY_TMDS_CLKO_PHY 112
>> > +
>> > +#define DISP_NR_CLK 113
>
> Why break compatibility with older DTBs?
I used to be resistant to changing those _NR_CLK defines
in the past but then realized they are not part of the DT ABI.
These defines are used only in drivers and affect only size
of the provider's allocated clock array. The confusion may be
caused by the fact that the whole header is shared by the kernel
source and dts.
$ git grep -l _NR_CLK arch/arm/boot/dts drivers/clk/samsung/
drivers/clk/samsung/clk-exynos-clkout.c
drivers/clk/samsung/clk-exynos3250.c
drivers/clk/samsung/clk-exynos4.c
drivers/clk/samsung/clk-exynos4415.c
drivers/clk/samsung/clk-exynos5250.c
drivers/clk/samsung/clk-exynos5260.c
drivers/clk/samsung/clk-exynos5410.c
drivers/clk/samsung/clk-exynos5420.c
drivers/clk/samsung/clk-exynos5433.c
drivers/clk/samsung/clk-exynos5440.c
drivers/clk/samsung/clk-exynos7.c
There is no *_NR_CLK in any dts file.
New kernel will work will older DTB, the driver will just
register more clocks, which will not be dereferenced anywhere
in older dtb.
--
Regards,
Sylwester
next prev parent reply other threads:[~2015-10-20 11:18 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-20 9:22 [PATCH 00/10] drm/exynos/decon5433: add support to DECON-TV Andrzej Hajda
2015-10-20 9:22 ` [PATCH 01/10] clk/samsung: exynos5433: add definitions of HDMI-PHY output clocks Andrzej Hajda
2015-10-20 10:34 ` Michael Turquette
2015-10-20 10:40 ` Marek Szyprowski
2015-10-20 11:17 ` Sylwester Nawrocki [this message]
2015-10-21 8:59 ` Michael Turquette
2015-10-20 9:22 ` [PATCH 02/10] clk/samsung: exynos5433: add pclk_decon clock Andrzej Hajda
2015-10-20 12:19 ` Krzysztof Kozlowski
2015-10-20 9:22 ` [PATCH 03/10] drm/exynos/decon5433: add PCLK clock Andrzej Hajda
2015-10-20 9:22 ` [PATCH 04/10] dt-bindings: video: add PCLK clock entry to exynos5433-decon Andrzej Hajda
2015-10-20 12:24 ` Krzysztof Kozlowski
2015-10-20 12:41 ` Andrzej Hajda
2015-10-20 12:48 ` Krzysztof Kozlowski
2015-10-20 12:50 ` Sylwester Nawrocki
2015-10-20 9:22 ` [PATCH 05/10] drm/exynos/decon5433: fix timing registers writes Andrzej Hajda
2015-10-20 9:22 ` [PATCH 06/10] drm/exynos/decon5433: add function to set particular register bits Andrzej Hajda
2015-10-20 9:22 ` [PATCH 07/10] drm/exynos/decon5433: merge different flag fields Andrzej Hajda
2015-10-20 9:22 ` [PATCH 08/10] drm/exynos/decon5433: remove duplicated initialization Andrzej Hajda
2015-10-20 9:22 ` [PATCH 09/10] dt-bindings: video: exynos5433-decon: add bindings for DECON-TV Andrzej Hajda
2015-10-20 12:30 ` Krzysztof Kozlowski
2015-10-20 12:53 ` Andrzej Hajda
2015-10-20 12:55 ` Krzysztof Kozlowski
2015-10-26 11:59 ` [PATCH v2 " Andrzej Hajda
2015-10-28 1:06 ` Krzysztof Kozlowski
2015-11-13 14:46 ` Rob Herring
2016-01-14 10:36 ` Andrzej Hajda
2016-01-14 10:49 ` Inki Dae
2016-01-17 23:45 ` Krzysztof Kozlowski
2016-01-18 9:54 ` Inki Dae
2016-01-18 10:12 ` Andrzej Hajda
2016-01-19 6:34 ` Inki Dae
2015-10-20 9:22 ` [PATCH 10/10] drm/exynos/decon5433: add support " Andrzej Hajda
2015-10-23 11:55 ` Inki Dae
2015-10-23 13:03 ` Andrzej Hajda
2015-10-23 15:05 ` Inki Dae
2015-10-20 12:20 ` [PATCH 00/10] drm/exynos/decon5433: add support to DECON-TV Krzysztof Kozlowski
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=562622CF.1070906@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=a.hajda@samsung.com \
--cc=b.zolnierkie@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=human.hwang@samsung.com \
--cc=inki.dae@samsung.com \
--cc=k.kozlowski@samsung.com \
--cc=kgene@kernel.org \
--cc=kyungmin.park@samsung.com \
--cc=linux-clk@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=mturquette@baylibre.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).