*new* readl_infinite_loops: check for hotplug bugs which could cause hangs
commit867696d037e997ffa0b07ed84cb825e0479dcf7e
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 28 Jan 2014 00:19:36 +0000 (28 03:19 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Tue, 28 Jan 2014 00:19:36 +0000 (28 03:19 +0300)
tree2f1e8b0d8cb26573628cde35a473daedf200b065
parenta05392caf5ea7444aa1d43b6d6a140a08fad4079
*new* readl_infinite_loops: check for hotplug bugs which could cause hangs

I've a device is pulled then readl() returns ((uint)-1).  A lot of code
doesn't check for that and does:

while (readl() & 0x80)
;

If the device has been pulled then that will loop forever.  Thanks to
Joe Lawrence, for suggesting this.

Reported-by: Joe Lawrence <joe.lawrence@stratus.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_list.h
check_readl_infinite_loops.c [new file with mode: 0644]