rpms/kernel/F-7 linux-2.6-libata-unbreak-smart.patch, NONE, 1.1 kernel-2.6.spec, 1.3282, 1.3283

Dave Jones (davej) fedora-extras-commits at redhat.com
Mon Jul 16 15:26:26 UTC 2007


Author: davej

Update of /cvs/pkgs/rpms/kernel/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv30306

Modified Files:
	kernel-2.6.spec 
Added Files:
	linux-2.6-libata-unbreak-smart.patch 
Log Message:
* Mon Jul 16 2007 Dave Jones <davej at redhat.com>
- Unbreak SMART on libata.


linux-2.6-libata-unbreak-smart.patch:

--- NEW FILE linux-2.6-libata-unbreak-smart.patch ---
Fix reported task file values in sense data

ata_tf_read was setting HOB bit when lba48 command was submitted, but
was not clearing it before reading "normal" data.  Maybe it would be
better to just clear HOB bit immediately after reading upper halves
for lba48 command, but I just decided to clear HOB bit in each
ata_tf_read...

Signed-off-by: Petr Vandrovec <petr at vandrovec.name>

---
commit de1eff411670a3e5dfadcc281754cb26035779fa
tree 5fbcc8f667a34aa9688ce3aa19b9c92944a12862
parent c2e8a9b937eb84d1b712874f458790d2df25641a
author Petr Vandrovec <petr at vandrovec.name> Sat, 14 Jul 2007 05:11:03 -0700
committer root <root at gwy.hsd1.ca.comcast.net> Sat, 14 Jul 2007 05:11:03 -0700

 drivers/ata/libata-sff.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c
index a74afea..507ab69 100644
--- a/drivers/ata/libata-sff.c
+++ b/drivers/ata/libata-sff.c
@@ -196,6 +196,7 @@ void ata_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
 {
 	struct ata_ioports *ioaddr = &ap->ioaddr;
 
+	iowrite8(tf->ctl, ioaddr->ctl_addr);
 	tf->command = ata_check_status(ap);
 	tf->feature = ioread8(ioaddr->error_addr);
 	tf->nsect = ioread8(ioaddr->nsect_addr);


Index: kernel-2.6.spec
===================================================================
RCS file: /cvs/pkgs/rpms/kernel/F-7/kernel-2.6.spec,v
retrieving revision 1.3282
retrieving revision 1.3283
diff -u -r1.3282 -r1.3283
--- kernel-2.6.spec	16 Jul 2007 13:40:19 -0000	1.3282
+++ kernel-2.6.spec	16 Jul 2007 15:25:54 -0000	1.3283
@@ -565,8 +565,9 @@
 Patch660: linux-2.6-libata-ali-atapi-dma.patch
 Patch661: linux-2.6-libata-ich8m-add-pciid.patch
 Patch662: linux-2.6-ata-update-noncq.patch
-Patch670: linux-2.6-ata-quirk.patch
-Patch671: linux-2.6-libata-sb700-sata-ids.patch
+Patch663: linux-2.6-ata-quirk.patch
+Patch664: linux-2.6-libata-sb700-sata-ids.patch
+Patch665: linux-2.6-libata-unbreak-smart.patch
 Patch680: git-wireless-dev.patch
 Patch681: git-iwlwifi.patch
 Patch682: linux-2.6-rtl8187.patch
@@ -1207,6 +1208,8 @@
 ApplyPatch linux-2.6-ata-quirk.patch
 # add more ati sb700 ids to the ahci driver
 ApplyPatch linux-2.6-libata-sb700-sata-ids.patch
+# Unbreak SMART on libata.
+ApplyPatch linux-2.6-libata-unbreak-smart.patch
 
 # Add the rtl8187 driver from upstream (remove after update to 2.6.22-git1)
 ApplyPatch linux-2.6-rtl8187.patch
@@ -2175,6 +2178,9 @@
 
 %changelog
 * Mon Jul 16 2007 Dave Jones <davej at redhat.com>
+- Unbreak SMART on libata.
+
+* Mon Jul 16 2007 Dave Jones <davej at redhat.com>
 - Disable warnings that trigger due to disabled USB suspend.
 
 * Fri Jul 13 2007 Chuck Ebbert <cebbert at redhat.com>




More information about the scm-commits mailing list