Hack to fix not working spindown over Firewire

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-kernel@...>, <linux-scsi@...>
Date: Tuesday, April 29, 2008 - 7:26 pm

Hi folks,

I like the manage_start_stop feature of the SD driver to spin down the
hard disks (SATA and USB) during suspend. However, it didn't work with
my Firewire hard disk.

After some research I found out that I can spin down the disk with
sg_start --pc=2, and spin it up with sg_start --pc=1. I adopted this
into sd_start_stop_device() with the vendor name of the device
hardcoded (see the attached patch) and now my Firewire hard disk spins
down on suspend and spins up on resume.

Is there any chance to get this behaviour without such ugly changes to
the kernel? I had to make it conditional by checking the device as
otherwise the SATA disk reports an error.

Regards,
Tino
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Hack to fix not working spindown over Firewire, Tino Keitel, (Tue Apr 29, 7:26 pm)
Re: Hack to fix not working spindown over Firewire, Stefan Richter, (Wed Apr 30, 9:31 am)
Re: Hack to fix not working spindown over Firewire, Stefan Richter, (Wed Apr 30, 9:36 am)
Re: Clean patch to fix not working spindown over Firewire, Stefan Richter, (Fri May 9, 5:13 pm)
Re: Clean patch to fix not working spindown over Firewire, Stefan Richter, (Fri May 9, 6:02 pm)
Re: Hack to fix not working spindown over Firewire, Tino Keitel, (Wed May 7, 2:00 pm)
Re: Hack to fix not working spindown over Firewire, Stefan Richter, (Fri May 9, 2:32 pm)
Re: Hack to fix not working spindown over Firewire, Stefan Richter, (Sat May 10, 6:53 pm)
Re: Hack to fix not working spindown over Firewire, Stefan Richter, (Sat May 10, 11:31 am)