[PATCH 5/5] UBUNTU: SAUCE: Enable earlyprintk via the PL011.
Andy Whitcroft
apw at canonical.com
Thu Nov 7 14:24:34 UTC 2013
On Wed, Nov 06, 2013 at 03:34:47PM +0100, Paolo Pisati wrote:
> From: Manoj Iyer <manoj.iyer at canonical.com>
>
> BugLink: http://bugs.launchpad.net/bugs/1248233
>
> Because there's no defined device tree binding for earlyprintk UART, tweak
> the kernel a bit, the kernel doesn't ever add the clock to its list, and
> then it refuses to probe for the PL011.
>
> Author: Peter Maydell <peter.maydell at linaro.org>
> Reviewed-by: Chritoffer Dall <christoffer.dall at linaro.org>
> Signed-off-by: Manoj Iyer <manoj.iyer at canonical.com>
> Signed-off-by: Paolo Pisati <paolo.pisati at canonical.com>
> ---
> arch/arm/mach-virt/virt.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/mach-virt/virt.c b/arch/arm/mach-virt/virt.c
> index b184e57..2b6aceb 100644
> --- a/arch/arm/mach-virt/virt.c
> +++ b/arch/arm/mach-virt/virt.c
> @@ -21,11 +21,13 @@
> #include <linux/of_irq.h>
> #include <linux/of_platform.h>
> #include <linux/smp.h>
> +#include <linux/clk-provider.h>
>
> #include <asm/mach/arch.h>
>
> static void __init virt_init(void)
> {
> + of_clk_init(NULL);
> of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
> }
Looks safe enough. Is this going upstream?
-apw
More information about the kernel-team
mailing list