Re: [PATCH 3/3] ARM: versatile: Make able to use UART ports for KGDB FIQ debugger

2013-05-17 Thread Anton Vorontsov
Thanks a lot for the review, Thomas! On Fri, May 10, 2013 at 04:17:10PM +0200, Thomas Petazzoni wrote: [...] > > +{ > > + return readl(kgdb_irq_base + VIC_FIQ_STATUS) & (1 << kgdb_irq); > > +} > > + > > +static int __init kgdb_fiq_init(void) > > +{ > > + kgdb_irq_base = __io_address(VERSATILE_

Re: [PATCH 3/3] ARM: versatile: Make able to use UART ports for KGDB FIQ debugger

2013-05-10 Thread Thomas Petazzoni
Dear John Stultz, On Thu, 9 May 2013 17:10:51 -0700, John Stultz wrote: > +static void kgdb_fiq_select(bool on) > +{ > + void __iomem *sel = kgdb_irq_base + VIC_INT_SELECT; > + u32 msk = 1 << kgdb_irq; > + u32 val; > + > + pr_debug("rerouting VIC vector %d to %s\n", kgdb_irq, > +

[PATCH 3/3] ARM: versatile: Make able to use UART ports for KGDB FIQ debugger

2013-05-09 Thread John Stultz
From: Anton Vorontsov If enabled, kernel will able to enter KGDB upon serial line activity on UART ports. Note that even with this patch and CONFIG_KGDB_FIQ is enabled, you still need to pass kgdb_fiq.enable=1 kernel command line option, otherwise UART will behave in a normal way. By default UA

[PATCH 3/3] ARM: versatile: Make able to use UART ports for KGDB FIQ debugger

2013-01-06 Thread Anton Vorontsov
If enabled, kernel will able to enter KGDB upon serial line activity on UART ports. Note that even with this patch and CONFIG_KGDB_FIQ is enabled, you still need to pass kgdb_fiq.enable=1 kernel command line option, otherwise UART will behave in a normal way. By default UART0 is used, but this ca