Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Lack of ibm,io-events not that important!

The ibm,io-events code is a bit verbose with its error messages.
Reverse the reporting so we only print when we successfully enable
I/O event interrupts.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

authored by

Anton Blanchard and committed by
Benjamin Herrenschmidt
53876e38 8aa6d359

+3 -5
+3 -5
arch/powerpc/platforms/pseries/io_event_irq.c
··· 212 212 struct device_node *np; 213 213 214 214 ioei_check_exception_token = rtas_token("check-exception"); 215 - if (ioei_check_exception_token == RTAS_UNKNOWN_SERVICE) { 216 - pr_warning("IO Event IRQ not supported on this system !\n"); 215 + if (ioei_check_exception_token == RTAS_UNKNOWN_SERVICE) 217 216 return -ENODEV; 218 - } 217 + 219 218 np = of_find_node_by_path("/event-sources/ibm,io-events"); 220 219 if (np) { 221 220 request_event_sources_irqs(np, ioei_interrupt, "IO_EVENT"); 221 + pr_info("IBM I/O event interrupts enabled\n"); 222 222 of_node_put(np); 223 223 } else { 224 - pr_err("io_event_irq: No ibm,io-events on system! " 225 - "IO Event interrupt disabled.\n"); 226 224 return -ENODEV; 227 225 } 228 226 return 0;