From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: jgarzik@pobox.com
Cc: bzolnier@gmail.com, linux-ide@vger.kernel.org
Subject: Re: [PATCH 1/2] libata: add CFA specific identify data words
Date: Wed, 08 Apr 2009 15:46:59 +0400 [thread overview]
Message-ID: <49DC8EB3.4040404@ru.mvista.com> (raw)
In-Reply-To: <200903032029.29073.sshtylyov@ru.mvista.com>
Sergei Shtylyov wrote:
> Declare and use constants for CFA specific identify data words 162 and 163.
> Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
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");
MBR, Sergei
next prev parent reply other threads:[~2009-04-08 11:46 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-03 17:29 [PATCH 1/2] libata: add CFA specific identify data words Sergei Shtylyov
2009-03-04 4:56 ` Jeff Garzik
2009-03-04 7:03 ` Jeff Garzik
2009-04-08 11:46 ` Sergei Shtylyov [this message]
2009-04-08 13:24 ` Jeff Garzik
2009-04-13 16:48 ` Sergei Shtylyov
2009-04-13 16:51 ` Jeff Garzik
2009-04-13 16:58 ` Sergei Shtylyov
2009-04-13 17:16 ` Jeff Garzik
2009-04-13 19:42 ` Bartlomiej Zolnierkiewicz
2009-04-13 20:28 ` Jeff Garzik
2009-04-13 21:32 ` Bartlomiej Zolnierkiewicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49DC8EB3.4040404@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=bzolnier@gmail.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).