Skip to contentSkip to conversation

powerpc/mpic: Properly set default triggers

PATCH In review Benjamin Herrenschmidt 1 participant 1 message Apr 20, 2012 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 powerpc/mpic: Properly set default triggers

This gets rid of the unused default senses array, and replaces the incorrect use of IRQ_TYPE_NONE with the new IRQ_TYPE_DEFAULT for the initial set_trigger() call when mapping an interrupt.

This in turn makes us read the HW state and update the irq desc accordingly.

---
 arch/powerpc/include/asm/mpic.h |   18 -----------------
 arch/powerpc/sysdev/mpic.c      |   42 ++++++++++++++++++++++++++++-----------
 2 files changed, 30 insertions(+), 30 deletions(-)
arch/powerpc/include/asm/mpic.h +0 -18
index c65b929..c9f698a 100644
@@ -275,9 +275,6 @@ struct mpic
 	unsigned int		isu_mask;
 	/* Number of sources */
 	unsigned int		num_sources;
-	/* default senses array */
-	unsigned char		*senses;
-	unsigned int		senses_count;
 
 	/* vector numbers used for internal sources (ipi/timers) */
 	unsigned int		ipi_vecs[4];
@@ -415,21 +412,6 @@ extern struct mpic *mpic_alloc(struct device_node *node,
 extern void mpic_assign_isu(struct mpic *mpic, unsigned int isu_num,
 			    phys_addr_t phys_addr);
 
-/* Set default sense codes
- *
- * @mpic:	controller
- * @senses:	array of sense codes
- * @count:	size of above array
- *
- * Optionally provide an array (indexed on hardware interrupt numbers
- * for this MPIC) of default sense codes for the chip. Those are linux
- * sense codes IRQ_TYPE_*
- *
- * The driver gets ownership of the pointer, don't dispose of it or
- * anything like that. __init only.
- */
-extern void mpic_set_default_senses(struct mpic *mpic, u8 *senses, int count);
-
 
 /* Initialize the controller. After this has been called, none of the above
  * should be called again for this mpic
arch/powerpc/sysdev/mpic.c +30 -12

70 lines not on this page · raw message