Skip to content

fix libata-sff and pata_cmd64x to not crash on boot on parisc

James Bottomley linux-ide linux-parisc 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2libata-sff: remove hardcoded requirement for two portsdrivers/ata/libata-sff.c include/linux/libata.h+55 -210 replies
2/2pata_cmd64x: fix crash on boot with disabled secondary portdrivers/ata/pata_cmd64x.c+19 -31 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] fix libata-sff and pata_cmd64x to not crash on boot on parisc

currently libata-sff is completely ignoring the enabled/disabled status of the interfaces. This is a real problem on parisc because if you touch a non responding memory area (i.e. a disabled interface) you crash the box.

Fix this up by restoring the enablebits logic to the pata_cmd64x driver. To do this, libata-sff has to be modified not to probe both ports if we don't have them. This is done by reintroducing IDE_HFLAG_SINGLE flag as ATA_HOST_SFF_SINGLE_PORT which drivers can use to condition libata-sff port probing.

James

---

James Bottomley (2):
libata-sff: remove hardcoded requirement for two ports
pata_cmd64x: fix crash on boot with disabled secondary port

 drivers/ata/libata-sff.c  |   75 ++++++++++++++++++++++++++++++++------------
 drivers/ata/pata_cmd64x.c |   22 +++++++++++--
 include/linux/libata.h    |    1 +
 3 files changed, 74 insertions(+), 24 deletions(-)
Signature · 1 line
1.7.4.1