arm: vexpress: move v2m clock init to init_early
PATCH 1/1 arm: vexpress: move v2m clock init to init_early
From: Rob Herring <[email protected]>
Commit 7ff550de99141cbd3be0129d563cc4554fdde9f6 breaks vexpress booting. The v2m clock table needs to be setup in init_early before the timer initialization occurs.
--- arch/arm/mach-vexpress/v2m.c | 15 +++++++-------- include/linux/libata.h | 4 ++-- 2 files changed, 9 insertions(+), 10 deletions(-)
arch/arm/mach-vexpress/v2m.c +7 -8
@@ -46,12 +46,6 @@ static struct map_desc v2m_io_desc[] __initdata = { }, }; -static void __init v2m_init_early (void ) -{ - ct_desc->init_early (); -versatile_sched_clock_init (MMIO_P2V (V2M_SYS_24MHZ ),24000000 ); -} -static void __init v2m_timer_init (void ) {u32 scctrl;
@@ -379,6 +373,13 @@ static struct clk_lookup v2m_lookups[] = { }, }; +static void __init v2m_init_early (void ) +{ + ct_desc->init_early (); +clkdev_add_table (v2m_lookups,ARRAY_SIZE (v2m_lookups)); +versatile_sched_clock_init (MMIO_P2V (V2M_SYS_24MHZ ),24000000 ); +} +static void v2m_power_off (void ) {if (v2m_cfg_write (SYS_CFG_SHUTDOWN |SYS_CFG_SITE_MB ,0 ))
@@ -432,8 +433,6 @@ static void __init v2m_init(void) {int i; -clkdev_add_table (v2m_lookups,ARRAY_SIZE (v2m_lookups)); -platform_device_register (&v2m_pcie_i2c_device);platform_device_register (&v2m_ddc_i2c_device);platform_device_register (&v2m_flash_device);
include/linux/libata.h +2 -2
@@ -53,8 +53,8 @@* compile-time options: to be removed as soon as all the drivers are * converted to the new debugging mechanism */ -#undef ATA_DEBUG/* debugging output */ -#undef ATA_VERBOSE_DEBUG/* yet more debugging output */ +#define ATA_DEBUG /* debugging output */ +#define ATA_VERBOSE_DEBUG /* yet more debugging output */ #undef ATA_IRQ_TRAP/* define to ack screaming irqs */ #undef ATA_NDEBUG/* define to disable quick runtime checks */
Signature · 1 line
1.7.4.1
PATCH 1/1 arm: vexpress: move v2m clock init to init_early
Quoted 10 lines · Rob Herring
From: Rob Herring <[email protected]>
Commit
7ff550de99141cbd3be0129d563cc4554fdde9f6breaks vexpress booting. The v2m clock table needs to be setup ininit_earlybefore the timer initialization occurs.Signed-off-by Rob Herring <[email protected]>--- arch/arm/mach-vexpress/v2m.c | 15 +++++++-------- include/linux/libata.h | 4 ++--
why do you touch the libata?
Best Regads,
J.
PATCH 1/1 arm: vexpress: move v2m clock init to init_early
Quoted 7 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 6 lines · Rob Herring
From: Rob Herring<[email protected]>
Commit
7ff550de99141cbd3be0129d563cc4554fdde9f6breaks vexpress booting. The v2m clock table needs to be setup ininit_earlybefore the timer initialization occurs.
Quoted 5 lines
Quoted 4 lines
Signed-off-by Rob Herring<[email protected]>--- arch/arm/mach-vexpress/v2m.c | 15 +++++++-------- include/linux/libata.h | 4 ++--why do you touch the libata?
Oops. Accidentally picked up some other stuff. Disregard that part.
Rob
PATCH 1/1 arm: vexpress: move v2m clock init to init_early
In reply to Rob HerringQuoted 10 lines · Rob Herring
From: Rob Herring <[email protected]>
Commit
7ff550de99141cbd3be0129d563cc4554fdde9f6breaks vexpress booting. The v2m clock table needs to be setup ininit_earlybefore the timer initialization occurs.Signed-off-by Rob Herring <[email protected]>---
?arch/arm/mach-vexpress/v2m.c | ? 15 +++++++-------- ?include/linux/libata.h ? ? ? | ? ?4 ++--
Apart from the libata.h changes, the patch works for me.
PATCH 1/1 arm: vexpress: move v2m clock init to init_early
In reply to Rob HerringQuoted 44 lines · Rob Herring
From: Rob Herring <[email protected]>
Commit
7ff550de99141cbd3be0129d563cc4554fdde9f6breaks vexpress booting. The v2m clock table needs to be setup ininit_earlybefore the timer initialization occurs.Signed-off-by Rob Herring <[email protected]>--- arch/arm/mach-vexpress/v2m.c | 15 +++++++-------- include/linux/libata.h | 4 ++-- 2 files changed, 9 insertions(+), 10 deletions(-)arch/arm/mach-vexpress/v2m.c +7
-6@@ -46,12 +46,6 @@ static struct map_desc v2m_io_desc[] __initdata = { }, }; -static void __init v2m_init_early (void ) -{ - ct_desc->init_early (); -versatile_sched_clock_init (MMIO_P2V (V2M_SYS_24MHZ ),24000000 ); -} -static void __init v2m_timer_init (void ) {u32 scctrl;@@ -379,6 +373,13 @@ static struct clk_lookup v2m_lookups[] = { }, }; +static void __init v2m_init_early (void ) +{ + ct_desc->init_early (); +clkdev_add_table (v2m_lookups,ARRAY_SIZE (v2m_lookups)); +versatile_sched_clock_init (MMIO_P2V (V2M_SYS_24MHZ ),24000000 ); +} +static void v2m_power_off (void ) {if (v2m_cfg_write (SYS_CFG_SHUTDOWN |SYS_CFG_SITE_MB ,0 ))
arch/arm/mach-vexpress/v2m.c static void __init v2m_init(void) · line 438
Quoted 8 lines
arch/arm/mach-vexpress/v2m.c +0
-2@@ -432,8 +433,6 @@ static void __init v2m_init(void) {int i; -clkdev_add_table (v2m_lookups,ARRAY_SIZE (v2m_lookups)); -platform_device_register (&v2m_pcie_i2c_device);platform_device_register (&v2m_ddc_i2c_device);platform_device_register (&v2m_flash_device);
Disregarding the libata stuff,
Cheers
---Dave
Quoted 23 lines
include/linux/libata.h +2
-2@@ -53,8 +53,8 @@* compile-time options: to be removed as soon as all the drivers are * converted to the new debugging mechanism */ -#undef ATA_DEBUG/* debugging output */ -#undef ATA_VERBOSE_DEBUG/* yet more debugging output */ +#define ATA_DEBUG /* debugging output */ +#define ATA_VERBOSE_DEBUG /* yet more debugging output */ #undef ATA_IRQ_TRAP/* define to ack screaming irqs */ #undef ATA_NDEBUG/* define to disable quick runtime checks */ Signature · 7 lines
1.7.4.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel at lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel