linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* libata hotplug question
@ 2009-11-30  6:04 Benjamin Herrenschmidt
  2009-11-30 23:44 ` Benjamin Herrenschmidt
  2009-11-30 23:46 ` Tejun Heo
  0 siblings, 2 replies; 15+ messages in thread
From: Benjamin Herrenschmidt @ 2009-11-30  6:04 UTC (permalink / raw)
  To: linux-ide

So pata_macio is starting to look good, it even suspends and resumes on
a couple of test laptops, now is time to sort out the last piece of the
puzzle, which is the hotplug media-bay.

The old code use to call directly into drivers/ide ide_port_scan()
etc... from within the mediabay driver. Pretty filthy.

I'm changing that to something that's even simpler: the macio_driver
gets a new callback for plug/unplug events from the bay, so it will be
easy to keep the old driver do whatever drivers/ide cruft it wants
locally and do something different in libata.

Now, for libata, I haven't totally figured out what to do though.

It seems like when the state "changes", I can do something like ahci and
call ata_ehi_hotplugged() followed by something like ata_port_freeze()
to kick the EH... at least that's my rough understanding.

But I don't quite get how to inform libata that the part has or has not
something plugged in it. I thought about playing with the probe_mask but
it looks like ata_eh_link_autopsy() will reset that since I'm PATA, not
SATA and thus have no sata_scr_read()...

Any suggestion here ?

Cheers,
Ben.




^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-12-01  5:58 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-30  6:04 libata hotplug question Benjamin Herrenschmidt
2009-11-30 23:44 ` Benjamin Herrenschmidt
2009-11-30 23:48   ` Tejun Heo
2009-12-01  0:05     ` Benjamin Herrenschmidt
2009-12-01  2:43     ` Benjamin Herrenschmidt
2009-12-01  4:51       ` Tejun Heo
2009-12-01  5:24         ` Benjamin Herrenschmidt
2009-12-01  5:17       ` Benjamin Herrenschmidt
2009-12-01  5:22         ` Tejun Heo
2009-12-01  5:30           ` Benjamin Herrenschmidt
2009-12-01  5:34             ` Tejun Heo
2009-12-01  5:39               ` Benjamin Herrenschmidt
2009-12-01  5:57                 ` Benjamin Herrenschmidt
2009-12-01  5:35           ` Benjamin Herrenschmidt
2009-11-30 23:46 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).