Re: [PATCH] cxl: Ignore CAPI adapters misplaced in switched slots

2016-07-01 Thread Frederic Barrat
Salut Philippe, Le 30/06/2016 13:45, Philippe Bergheaud a écrit : + if (cxl_slot_is_switched(dev)) { + dev_dbg(&dev->dev, "cxl_init_adapter: Ignoring switched slot device\n"); + return -ENODEV; + } I think it would be useful for the user who has insert

Re: [PATCH] cxl: Ignore CAPI adapters misplaced in switched slots

2016-06-30 Thread Ian Munsie
Thanks Philippe - this looks like a decent solution to the problem (and I intend to use this for the upcoming cx4 support as well). Acked-by: Ian Munsie Excerpts from Philippe Bergheaud's message of 2016-06-30 13:45:37 +0200: > One should not attempt to switch a PHB into CAPI mode if there is >

[PATCH] cxl: Ignore CAPI adapters misplaced in switched slots

2016-06-30 Thread Philippe Bergheaud
One should not attempt to switch a PHB into CAPI mode if there is a switch between the PHB and the adapter. This patch modifies the cxl driver to ignore CAPI adapters misplaced in switched slots. Signed-off-by: Philippe Bergheaud --- This patch fixes Bz 142217. drivers/misc/cxl/pci.c | 29 +