Re: [PATCH 1/2] libata: add CFA specific identify data words

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sergei Shtylyov wrote:
Jeff Garzik wrote:

Declare and use constants for CFA specific identify data words 162 and 163.

Signed-off-by: Sergei Shtylyov <sshtylyov@xxxxxxxxxxxxx>

   Jeff, have you forgotten about this one too?

Index: linux-2.6/drivers/ata/libata-core.c
===================================================================
--- linux-2.6.orig/drivers/ata/libata-core.c
+++ linux-2.6/drivers/ata/libata-core.c
@@ -1650,8 +1650,8 @@ unsigned long ata_id_xfermask(const u16 /*
          *    Process compact flash extended modes
          */
-        int pio = id[163] & 0x7;
-        int dma = (id[163] >> 3) & 7;
+        int pio = (id[ATA_ID_CFA_MODES] >> 0) & 0x7;
+        int dma = (id[ATA_ID_CFA_MODES] >> 3) & 0x7;
if (pio)
             pio_mask |= (1 << 5);
@@ -2408,7 +2408,8 @@ int ata_dev_configure(struct ata_device /* ATA-specific feature tests */
     if (dev->class == ATA_DEV_ATA) {
         if (ata_id_is_cfa(id)) {
-            if (id[162] & 1) /* CPRM may make this media unusable */
+            /* CPRM may make this media unusable */
+            if (id[ATA_ID_CFA_KEY_MGMT] & 1)
                 ata_dev_printk(dev, KERN_WARNING,
                            "supports DRM functions and may "
                            "not be fully accessable.\n");

This you'll need to resend...

   I wonder why you're telling me this only now

Because you asked "have you forgotten about this one?" on April 8th.

I mean why didn't you tell me to resubmit when you split off the ata.h part of the original patch? I was under impression that you would queue this part too...

It got lost in the confusion, I suppose. I figured you would resubmit when you posted the IDE version.

If you recall, you requested that this go via Bart's tree on March 3rd. Then Bart did a big push without it. So, to prevent delaying you further, I split off the ata.h patch and forwarded that upstream.

	Jeff



--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux