Enabling volume set cache depends on the IOA already being initialized, and ready to receive the Cache mode page. This patch changes the order in which the IOA is initialized to make it happen before the initialization of its attached devices.
Signed-off-by: Gabriel Krisman Bertazi <kris...@linux.vnet.ibm.com> Acked-by: Brian King <brk...@linux.vnet.ibm.com> --- iprlib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iprlib.c b/iprlib.c index 7b9536c..3dd5ef2 100644 --- a/iprlib.c +++ b/iprlib.c @@ -9603,10 +9603,11 @@ int ipr_init_ioa(struct ipr_ioa *ioa) if (fixup_improper_devs(ioa)) return -EAGAIN; + init_ioa_dev(&ioa->ioa); + for_each_dev(ioa, dev) ipr_init_dev(dev); - init_ioa_dev(&ioa->ioa); return 0; } -- 2.1.0 ------------------------------------------------------------------------------ _______________________________________________ Iprdd-devel mailing list Iprdd-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iprdd-devel