Re: [PATCH 2/7] sparc32,leon: add support for extended interrupt controller

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

 



Hi Daniel.

A few nits that I missed during the private review.

> +#define LEON_IMASK (&leon3_irqctrl_regs->mask[0])
> +#define LEON_IACK (&leon3_irqctrl_regs->iclear)

Hiding these behind macros may not make code more obvious.
But I am not strongly about it.

> +#define LEON_DO_ACK_HW 1
>  
> -/* Return the IRQ of the pending IRQ on the extended IRQ controller */
> -int sparc_leon_eirq_get(int eirq, int cpu)
> +/* Return the last ACKed IRQ by the Extended IRQ controller. It has already
> + * been (automatically) ACKed when the CPU takes the trap.
> + */
In general - nice to see the improved comments

>  /* The extended IRQ controller has been found, this function registers it */
> -void sparc_leon_eirq_register(int eirq)
> +void leon_eirq_setup(unsigned int eirq)
>  {
> -	int irq;
> +	unsigned long mask, oldmask;
> +	int veirq;

veirq is used for an unsigned int value later.
Use "unsigned int" to avoid mixing signed/unsigned.

	Sam
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux