Remove useless patch that will never be used.
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / queues / ibm-acpi / ibm-acpi_add_Ultrabay_support_for_the_T60p_ThinkPad.patch
blob5374ab4683c50eaf691bb32633ba25f1c3ecb26d
1 commit a20a162d4b0b2873a57b440ab0d8a5dc46c6fc53
2 Author: Theodore Ts'o <tytso@mit.edu>
3 Date: Sun Dec 31 14:53:49 2006 -0200
5 ACPI: ibm-acpi: add Ultrabay support for the T60p ThinkPad
7 The following patch adds support for obtaining the status and ejecting
8 Ultrabay devices for the T60p Thinkpad; my guess is that it probably
9 works on T60 Thinkpads and probably more recent Lenovo latops as well.
11 With the 2.03 BIOS I have been able to eject a SATA drive in an Ultrabay
12 carrier by using the command:
14 "echo 1 > /sys/class/scsi_device/1:0:0:0/device/delete"
16 and upon re-inserting the it back into the device and issuing the
17 command:
19 "echo 0 0 0 > /sys/class/scsi_host/host1/scan"
21 have the device appear again. (With the 1.02 BIOS the device does not
22 function when re-inserted, even after a warm boot; a cold reboot is
23 required to store the Ultrabay device's functionality.)
25 More complicated Ultrabay eject and insert scripts can be found on the
26 ThinkWiki, although it's important to comment out the "hdparm -Y" as it
27 apparently doesn't work or do anything, and causes the eject process to
28 hang for about a minute.
30 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
31 Cc: Whoopie <whoopie79@gmx.net>
32 Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
34 diff --git a/drivers/acpi/ibm_acpi.c b/drivers/acpi/ibm_acpi.c
35 index 1a0ed3d..a7463d5 100644
36 --- a/drivers/acpi/ibm_acpi.c
37 +++ b/drivers/acpi/ibm_acpi.c
38 @@ -159,7 +159,8 @@ IBM_HANDLE(dock, root, "\\_SB.GDCK", /* X30, X31, X40 */
39 #endif
40 IBM_HANDLE(bay, root, "\\_SB.PCI.IDE.SECN.MAST", /* 570 */
41 "\\_SB.PCI0.IDE0.IDES.IDSM", /* 600e/x, 770e, 770x */
42 - "\\_SB.PCI0.SATA.SCND.MSTR", /* T60, X60, Z60 */
43 + "\\_SB.PCI0.SATA.SCND.MSTR", /* T60, X60, Z60, SATA mode? */
44 + "\\_SB.PCI0.IDE0.PRIM.MSTR", /* T60p, IDE mode? */
45 "\\_SB.PCI0.IDE0.SCND.MSTR", /* all others */
46 ); /* A21e, R30, R31 */