From: Michael Turquette <mturquette@baylibre.com>
To: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: devicetree@vger.kernel.org,
Krzysztof Kozlowski <k.kozlowski@samsung.com>,
linux-samsung-soc@vger.kernel.org,
Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
dri-devel@lists.freedesktop.org,
Andrzej Hajda <a.hajda@samsung.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
Kukjin Kim <kgene@kernel.org>,
linux-clk@vger.kernel.org,
Marek Szyprowski <m.szyprowski@samsung.com>
Subject: Re: [PATCH 01/10] clk/samsung: exynos5433: add definitions of HDMI-PHY output clocks
Date: Wed, 21 Oct 2015 01:59:40 -0700 [thread overview]
Message-ID: <20151021085940.20687.94974@quantum> (raw)
In-Reply-To: <562622CF.1070906@samsung.com>
Quoting Sylwester Nawrocki (2015-10-20 04:17:35)
> 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.
I skimmed through the code too fast. You're right, its a sentinel/max
value thing which is not part of the ABI.
Pardon the noise. Nothing to see here, move along...
Regards,
Mike
>
> --
> Regards,
> Sylwester
> --
> To unsubscribe from this list: send the line "unsubscribe linux-clk" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2015-10-21 8:59 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
2015-10-21 8:59 ` Michael Turquette [this message]
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
[not found] ` <1445860796-23045-1-git-send-email-a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
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
[not found] ` <562A300F.2000108-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org>
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=20151021085940.20687.94974@quantum \
--to=mturquette@baylibre.com \
--cc=a.hajda@samsung.com \
--cc=b.zolnierkie@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--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=s.nawrocki@samsung.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).