* [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410
@ 2014-06-23 20:29 Vasily Khoruzhick
2014-06-23 20:29 ` [PATCH 2/2] clk: samsung: add more aliases for s3c24xx Vasily Khoruzhick
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Vasily Khoruzhick @ 2014-06-23 20:29 UTC (permalink / raw)
To: linux-arm-kernel
There's a several typos in a driver: 2410 instead of S3C2410
and wrong argument to ARRAY_SIZE(). They prevent s3c2410
from properly booting.
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
---
drivers/clk/samsung/clk-s3c2410.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/samsung/clk-s3c2410.c b/drivers/clk/samsung/clk-s3c2410.c
index ba07168..bd9a873 100644
--- a/drivers/clk/samsung/clk-s3c2410.c
+++ b/drivers/clk/samsung/clk-s3c2410.c
@@ -378,7 +378,7 @@ void __init s3c2410_common_clk_init(struct device_node *np, unsigned long xti_f,
if (!np)
s3c2410_common_clk_register_fixed_ext(ctx, xti_f);
- if (current_soc == 2410) {
+ if (current_soc == S3C2410) {
if (_get_rate("xti") == 12 * MHZ) {
s3c2410_plls[mpll].rate_table = pll_s3c2410_12mhz_tbl;
s3c2410_plls[upll].rate_table = pll_s3c2410_12mhz_tbl;
@@ -432,7 +432,7 @@ void __init s3c2410_common_clk_init(struct device_node *np, unsigned long xti_f,
samsung_clk_register_fixed_factor(ctx, s3c2410_ffactor,
ARRAY_SIZE(s3c2410_ffactor));
samsung_clk_register_alias(ctx, s3c2410_aliases,
- ARRAY_SIZE(s3c2410_common_aliases));
+ ARRAY_SIZE(s3c2410_aliases));
break;
case S3C2440:
samsung_clk_register_mux(ctx, s3c2440_muxes,
--
2.0.0
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH 2/2] clk: samsung: add more aliases for s3c24xx 2014-06-23 20:29 [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 Vasily Khoruzhick @ 2014-06-23 20:29 ` Vasily Khoruzhick 2014-06-23 21:24 ` Heiko Stübner 2014-06-30 13:50 ` Tomasz Figa 2014-06-23 21:16 ` [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 Heiko Stübner ` (2 subsequent siblings) 3 siblings, 2 replies; 10+ messages in thread From: Vasily Khoruzhick @ 2014-06-23 20:29 UTC (permalink / raw) To: linux-arm-kernel Without these aliases clock lookup fails in s3c2410fb, s3cmci, s3c2410-nand, s3c24xx-i2s, and i2c-s3c2410 drivers. Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> --- drivers/clk/samsung/clk-s3c2410.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/clk/samsung/clk-s3c2410.c b/drivers/clk/samsung/clk-s3c2410.c index bd9a873..140f473 100644 --- a/drivers/clk/samsung/clk-s3c2410.c +++ b/drivers/clk/samsung/clk-s3c2410.c @@ -152,6 +152,11 @@ struct samsung_clock_alias s3c2410_common_aliases[] __initdata = { ALIAS(HCLK, NULL, "hclk"), ALIAS(MPLL, NULL, "mpll"), ALIAS(FCLK, NULL, "fclk"), + ALIAS(PCLK, NULL, "watchdog"), + ALIAS(PCLK_SDI, NULL, "sdi"), + ALIAS(HCLK_NAND, NULL, "nand"), + ALIAS(PCLK_I2S, NULL, "iis"), + ALIAS(PCLK_I2C, NULL, "i2c"), }; /* S3C2410 specific clocks */ -- 2.0.0 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/2] clk: samsung: add more aliases for s3c24xx 2014-06-23 20:29 ` [PATCH 2/2] clk: samsung: add more aliases for s3c24xx Vasily Khoruzhick @ 2014-06-23 21:24 ` Heiko Stübner 2014-06-30 13:50 ` Tomasz Figa 1 sibling, 0 replies; 10+ messages in thread From: Heiko Stübner @ 2014-06-23 21:24 UTC (permalink / raw) To: linux-arm-kernel Am Montag, 23. Juni 2014, 23:29:10 schrieb Vasily Khoruzhick: > Without these aliases clock lookup fails in s3c2410fb, > s3cmci, s3c2410-nand, s3c24xx-i2s, and i2c-s3c2410 drivers. > > Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Reviewed-by: Heiko Stuebner <heiko@sntech.de> > --- > drivers/clk/samsung/clk-s3c2410.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/drivers/clk/samsung/clk-s3c2410.c > b/drivers/clk/samsung/clk-s3c2410.c index bd9a873..140f473 100644 > --- a/drivers/clk/samsung/clk-s3c2410.c > +++ b/drivers/clk/samsung/clk-s3c2410.c > @@ -152,6 +152,11 @@ struct samsung_clock_alias s3c2410_common_aliases[] > __initdata = { ALIAS(HCLK, NULL, "hclk"), > ALIAS(MPLL, NULL, "mpll"), > ALIAS(FCLK, NULL, "fclk"), > + ALIAS(PCLK, NULL, "watchdog"), > + ALIAS(PCLK_SDI, NULL, "sdi"), > + ALIAS(HCLK_NAND, NULL, "nand"), > + ALIAS(PCLK_I2S, NULL, "iis"), > + ALIAS(PCLK_I2C, NULL, "i2c"), > }; > > /* S3C2410 specific clocks */ ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 2/2] clk: samsung: add more aliases for s3c24xx 2014-06-23 20:29 ` [PATCH 2/2] clk: samsung: add more aliases for s3c24xx Vasily Khoruzhick 2014-06-23 21:24 ` Heiko Stübner @ 2014-06-30 13:50 ` Tomasz Figa 1 sibling, 0 replies; 10+ messages in thread From: Tomasz Figa @ 2014-06-30 13:50 UTC (permalink / raw) To: linux-arm-kernel On 23.06.2014 22:29, Vasily Khoruzhick wrote: > Without these aliases clock lookup fails in s3c2410fb, > s3cmci, s3c2410-nand, s3c24xx-i2s, and i2c-s3c2410 drivers. > > Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> > --- > drivers/clk/samsung/clk-s3c2410.c | 5 +++++ > 1 file changed, 5 insertions(+) Applied as a fix for 3.16. Best regards, Tomasz ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 2014-06-23 20:29 [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 Vasily Khoruzhick 2014-06-23 20:29 ` [PATCH 2/2] clk: samsung: add more aliases for s3c24xx Vasily Khoruzhick @ 2014-06-23 21:16 ` Heiko Stübner 2014-06-25 11:26 ` Tomasz Figa 2014-06-30 13:49 ` Tomasz Figa 3 siblings, 0 replies; 10+ messages in thread From: Heiko Stübner @ 2014-06-23 21:16 UTC (permalink / raw) To: linux-arm-kernel Am Montag, 23. Juni 2014, 23:29:09 schrieb Vasily Khoruzhick: > There's a several typos in a driver: 2410 instead of S3C2410 > and wrong argument to ARRAY_SIZE(). They prevent s3c2410 > from properly booting. > > Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Thanks for catching these. Reviewed-by: Heiko Stuebner <heiko@sntech.de> > --- > drivers/clk/samsung/clk-s3c2410.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/clk/samsung/clk-s3c2410.c > b/drivers/clk/samsung/clk-s3c2410.c index ba07168..bd9a873 100644 > --- a/drivers/clk/samsung/clk-s3c2410.c > +++ b/drivers/clk/samsung/clk-s3c2410.c > @@ -378,7 +378,7 @@ void __init s3c2410_common_clk_init(struct device_node > *np, unsigned long xti_f, if (!np) > s3c2410_common_clk_register_fixed_ext(ctx, xti_f); > > - if (current_soc == 2410) { > + if (current_soc == S3C2410) { > if (_get_rate("xti") == 12 * MHZ) { > s3c2410_plls[mpll].rate_table = pll_s3c2410_12mhz_tbl; > s3c2410_plls[upll].rate_table = pll_s3c2410_12mhz_tbl; > @@ -432,7 +432,7 @@ void __init s3c2410_common_clk_init(struct device_node > *np, unsigned long xti_f, samsung_clk_register_fixed_factor(ctx, > s3c2410_ffactor, > ARRAY_SIZE(s3c2410_ffactor)); > samsung_clk_register_alias(ctx, s3c2410_aliases, > - ARRAY_SIZE(s3c2410_common_aliases)); > + ARRAY_SIZE(s3c2410_aliases)); > break; > case S3C2440: > samsung_clk_register_mux(ctx, s3c2440_muxes, ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 2014-06-23 20:29 [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 Vasily Khoruzhick 2014-06-23 20:29 ` [PATCH 2/2] clk: samsung: add more aliases for s3c24xx Vasily Khoruzhick 2014-06-23 21:16 ` [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 Heiko Stübner @ 2014-06-25 11:26 ` Tomasz Figa 2014-06-30 13:49 ` Tomasz Figa 3 siblings, 0 replies; 10+ messages in thread From: Tomasz Figa @ 2014-06-25 11:26 UTC (permalink / raw) To: linux-arm-kernel Hi Vasily, On 23.06.2014 22:29, Vasily Khoruzhick wrote: > There's a several typos in a driver: 2410 instead of S3C2410 > and wrong argument to ARRAY_SIZE(). They prevent s3c2410 > from properly booting. Thanks for fixing this. I will apply and send to Mike with other fixes. Same for patch 2/2. Best regards, Tomasz ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 2014-06-23 20:29 [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 Vasily Khoruzhick ` (2 preceding siblings ...) 2014-06-25 11:26 ` Tomasz Figa @ 2014-06-30 13:49 ` Tomasz Figa 2014-06-30 14:02 ` Vasily Khoruzhick 3 siblings, 1 reply; 10+ messages in thread From: Tomasz Figa @ 2014-06-30 13:49 UTC (permalink / raw) To: linux-arm-kernel On 23.06.2014 22:29, Vasily Khoruzhick wrote: > There's a several typos in a driver: 2410 instead of S3C2410 > and wrong argument to ARRAY_SIZE(). They prevent s3c2410 > from properly booting. > > Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> > --- > drivers/clk/samsung/clk-s3c2410.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Applied as a fix for 3.16. Best regards, Tomasz ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 2014-06-30 13:49 ` Tomasz Figa @ 2014-06-30 14:02 ` Vasily Khoruzhick 2014-06-30 14:07 ` Tomasz Figa 0 siblings, 1 reply; 10+ messages in thread From: Vasily Khoruzhick @ 2014-06-30 14:02 UTC (permalink / raw) To: linux-arm-kernel On 30 June 2014 15:49:58 Tomasz Figa wrote: > On 23.06.2014 22:29, Vasily Khoruzhick wrote: > > There's a several typos in a driver: 2410 instead of S3C2410 > > and wrong argument to ARRAY_SIZE(). They prevent s3c2410 > > from properly booting. > > > > Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> > > --- > > > > drivers/clk/samsung/clk-s3c2410.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > Applied as a fix for 3.16. Hi Tomasz, I also have clk fixes for s3c24xx touchscreen, framebuffer, adc, usb and nand drivers (to replace clk_enable with clk_prepare_enable and clk_disable with clk_disable_unprepare), Should they be merged through different trees or it's possible to merge them through a single tree? > > Best regards, > Tomasz Regards Vasily ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 2014-06-30 14:02 ` Vasily Khoruzhick @ 2014-06-30 14:07 ` Tomasz Figa 2014-06-30 14:16 ` Vasily Khoruzhick 0 siblings, 1 reply; 10+ messages in thread From: Tomasz Figa @ 2014-06-30 14:07 UTC (permalink / raw) To: linux-arm-kernel Hi Vasily, On 30.06.2014 16:02, Vasily Khoruzhick wrote: > On 30 June 2014 15:49:58 Tomasz Figa wrote: >> On 23.06.2014 22:29, Vasily Khoruzhick wrote: >>> There's a several typos in a driver: 2410 instead of S3C2410 >>> and wrong argument to ARRAY_SIZE(). They prevent s3c2410 >>> from properly booting. >>> >>> Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> >>> --- >>> >>> drivers/clk/samsung/clk-s3c2410.c | 4 ++-- >>> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> Applied as a fix for 3.16. > > Hi Tomasz, > > I also have clk fixes for s3c24xx touchscreen, framebuffer, adc, usb and nand > drivers (to replace clk_enable with clk_prepare_enable and clk_disable with > clk_disable_unprepare), > > Should they be merged through different trees or it's possible to merge them > through a single tree? I'd say they should all go through respective subsystem trees, unless they directly depend on patches I already applied, which is not the case as far as I can see. Best regards, Tomasz ^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 2014-06-30 14:07 ` Tomasz Figa @ 2014-06-30 14:16 ` Vasily Khoruzhick 0 siblings, 0 replies; 10+ messages in thread From: Vasily Khoruzhick @ 2014-06-30 14:16 UTC (permalink / raw) To: linux-arm-kernel On 30 June 2014 16:07:24 Tomasz Figa wrote: > Hi Vasily, > > On 30.06.2014 16:02, Vasily Khoruzhick wrote: > > On 30 June 2014 15:49:58 Tomasz Figa wrote: > >> On 23.06.2014 22:29, Vasily Khoruzhick wrote: > >>> There's a several typos in a driver: 2410 instead of S3C2410 > >>> and wrong argument to ARRAY_SIZE(). They prevent s3c2410 > >>> from properly booting. > >>> > >>> Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> > >>> --- > >>> > >>> drivers/clk/samsung/clk-s3c2410.c | 4 ++-- > >>> 1 file changed, 2 insertions(+), 2 deletions(-) > >> > >> Applied as a fix for 3.16. > > > > Hi Tomasz, > > > > I also have clk fixes for s3c24xx touchscreen, framebuffer, adc, usb and > > nand drivers (to replace clk_enable with clk_prepare_enable and > > clk_disable with clk_disable_unprepare), > > > > Should they be merged through different trees or it's possible to merge > > them through a single tree? > > I'd say they should all go through respective subsystem trees, unless > they directly depend on patches I already applied, which is not the case > as far as I can see. Hm, they aren't necessary for compiling the kernel, but system fails to boot without these patches due to merge of common clk changes for s3c24xx. > Best regards, > Tomasz P.S. Sorry for 2nd mail, Tomasz, I've occassionally omited MLs. ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-06-30 14:16 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-06-23 20:29 [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 Vasily Khoruzhick 2014-06-23 20:29 ` [PATCH 2/2] clk: samsung: add more aliases for s3c24xx Vasily Khoruzhick 2014-06-23 21:24 ` Heiko Stübner 2014-06-30 13:50 ` Tomasz Figa 2014-06-23 21:16 ` [PATCH 1/2] clk: samsung: fix several typos to fix boot on s3c2410 Heiko Stübner 2014-06-25 11:26 ` Tomasz Figa 2014-06-30 13:49 ` Tomasz Figa 2014-06-30 14:02 ` Vasily Khoruzhick 2014-06-30 14:07 ` Tomasz Figa 2014-06-30 14:16 ` Vasily Khoruzhick
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).