]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pata_cm64x: fix boot crash on parisc
authorJames Bottomley <James.Bottomley@suse.de>
Sun, 24 Apr 2011 19:30:14 +0000 (14:30 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:20:51 +0000 (11:20 -0400)
commit898f983bd1517922d7b9c06b856de51720fd253c
treefc54523b5f0796947f919ed1b5e6d57bd3f0538e
parent52df3ade75b2359ec54db84769a36f1f2125dc52
pata_cm64x: fix boot crash on parisc

commit 9281b16caac1276817b77033c5b8a1f5ca30102c upstream.

The old IDE cmd64x checks the status of the CNTRL register to see if
the ports are enabled before probing them.  pata_cmd64x doesn't do
this, which causes a HPMC on parisc when it tries to poke at the
secondary port because apparently the BAR isn't wired up (and a
non-responding piece of memory causes a HPMC).

Fix this by porting the CNTRL register port detection logic from IDE
cmd64x.  In addition, following converns from Alan Cox, add a check to
see if a mobility electronics bridge is the immediate parent and forgo
the check if it is (prevents problems on hotplug controllers).

Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/ata/pata_cmd64x.c
include/linux/pci_ids.h