[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [RFC 17/29] xen/arm: New callback in uart_driver to get device tree interrupt structure



On 04/29/2013 04:46 PM, Ian Campbell wrote:

> On Mon, 2013-04-29 at 00:02 +0100, Julien Grall wrote:
>> The existing function serial_irq doesn't allow to retrieve if the interrupt
>> is edge or level trigger.
>>
>> Use this function to route all serial IRQs to xen.
> 
> All of them? At most we want the one Xen is using, don't we?

My comment is a bit confusing. "all serial IRQs" means all IRQs of UART
registered via serial_register_uart.

Currently Xen on Arm can register zero one one UART (com1).

>> Signed-off-by: Julien Grall <julien.grall@xxxxxxxxxx>
>> ---
>>  xen/arch/arm/gic.c        |   12 ++++++++++++
>>  xen/drivers/char/serial.c |   10 ++++++++++
>>  xen/include/xen/serial.h  |    5 +++++
>>  3 files changed, 27 insertions(+)
>>
>> diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c
>> index bf0c1fd..8085b6e 100644
>> --- a/xen/arch/arm/gic.c
>> +++ b/xen/arch/arm/gic.c
>> @@ -24,6 +24,7 @@
>>  #include <xen/irq.h>
>>  #include <xen/sched.h>
>>  #include <xen/errno.h>
>> +#include <xen/serial.h>
>>  #include <xen/softirq.h>
>>  #include <xen/list.h>
>>  #include <xen/device_tree.h>
>> @@ -497,9 +498,20 @@ void gic_route_ppis(void)
>>  
>>  void gic_route_spis(void)
>>  {
>> +    int seridx;
>> +    const struct dt_irq *irq;
>> +
>>      /* XXX should get these from DT */
>>      /* UART */
>>      gic_route_irq(37, 0, 1u << smp_processor_id(), 0xa0);
> 
> Did you intend to remove this line?

Yes, I let this line to avoid to break xen boot on versatile express.


-- 
Julien

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.