On Mon, Feb 15, 2016 at 04:20:45PM +0800, kernel test robot wrote:
0day kernel testing robot got the below dmesg and the first bad commit is
Author: Sudip Mukherjee <sudipm.mukherjee(a)gmail.com>
AuthorDate: Fri Feb 12 18:33:45 2016 +0530
Commit: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
CommitDate: Sun Feb 14 17:43:50 2016 -0800
ppdev: use new parport device model
Modify ppdev driver to use the new parallel port device model.
Signed-off-by: Sudip Mukherjee <sudip(a)vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh(a)linuxfoundation.org>
Can you please send the .config file so that i can reproduce in my local
system and test?
Ying Huang also sent a similar report after posting the patches. I tried
his .config and your scripts to reproduce this but was not able to.
Anyway, this error is not related to this patch, this patch has just
uncovered this error in parport. And will only happen if ppdev tries to
register with parport before parport bus is registered.
Can you please check if the below patch solves the problem:
diff --git a/drivers/parport/share.c b/drivers/parport/share.c
index 3308427..176b2b6 100644
@@ -273,6 +273,9 @@ int __parport_register_driver(struct parport_driver *drv, struct
/* using device model */
+ if (!parport_bus_type.p)
+ return -EAGAIN;
/* initialize common driver fields */
drv->driver.name = drv->name;
drv->driver.bus = &parport_bus_type;