Skip to contentSkip to conversation

libata: allocate ap separately from shost

PATCH Jeff Garzik 1 participant 1 message Apr 17, 2007 1 message not in the archive libata

lore
Share & tools
lore

Jeff Garzik

author Applied
#1 lore raw
In reply to a message not in the archive
Quoted 9 lines · Tejun Heo

Don't embed ap inside shost. Allocate it separately and point it back from shosts's hostdata. This makes port allocation more flexible and allows regular ATA and SAS share host alloc/init paths.

---
 drivers/ata/libata-core.c |   19 ++++++++++++++-----
 include/linux/libata.h    |    2 +-
 2 files changed, 15 insertions(+), 6 deletions(-)

applied patches 1-12 to #upstream.

Yay, libata init model is finally clean!

Thanks,

Jeff