<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.linux.ide">
    <title>gmane.linux.ide</title>
    <link>http://blog.gmane.org/gmane.linux.ide</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52177"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52176"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52175"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52174"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52173"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52172"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52171"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52170"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52169"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52168"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52167"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52166"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52165"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52164"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52163"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52162"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52160"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52159"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52158"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.linux.ide/52157"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52177">
    <title>The $1,549 per day ZERO traffic system (UPDATE) Recommends Advanced Sports to you</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52177</link>
    <description>&lt;pre&gt;Email        :sniperxsystem&amp;lt; at &amp;gt;support.com
Friend Name  :Friend
Friend Email :linux-ide&amp;lt; at &amp;gt;vger.kernel.org
comment      :

Listen to this... pretty crazy...

So many people rushed to download this 
$530k/year system yesterday...

That they crashed the ENTIRE server!

=&amp;gt;&amp;gt;http://www.sniperxsystem.com/?code=4fbea9cb964f6&amp;lt;&amp;lt;=

(The site was down ALL day) Pretty crazy. 

... The "ghetto" video alone has sent shockwaves 
through the Clickbank community.

Can you believe THIS guy's one of Clickbanks
biggest super affiliates?

=&amp;gt;&amp;gt;http://www.sniperxsystem.com/?code=4fbea9cb964f6&amp;lt;&amp;lt;=

Talk soon

P.S. This is **BRAND NEW**...

It works and it's made $1,549.87 a DAY for 
the past 739 days in a ROW!

No PPC, no PPV, no CPA, no so-called 'push
button softwares' scams, no 'loopholes'...

Something TOTALLY different.

Check it out (fast, while it's still open):

=&amp;gt;&amp;gt;http://www.sniperxsystem.com/?code=4fbea9cb964f6&amp;lt;&amp;lt;=




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

&lt;/pre&gt;</description>
    <dc:creator>sniperxsystem&lt; at &gt;support.com</dc:creator>
    <dc:date>2012-05-25T01:31:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52176">
    <title>Re: ATA errors corrupt other I/O &amp; set / readonly</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52176</link>
    <description>&lt;pre&gt;Sorry I missed your response initially. Please use reply-to-all.

On 05/19/2012 10:56 PM, Felix Miata wrote:

/var/log/messages contains non-kernel logging as well, but it sometimes 
doesn't show all log messages output in dmesg.


It's possible you may be able to use a previously-opened SSH login from 
another machine to see dmesg output even if the process running on the 
console is stalled due to an I/O problem. Also, you could try booting 
from a USB live image so that any ATA issues won't prevent the system 
from reading executables.


I haven't tested but AFAICS, using libata.force=1.5Gbps should force 1.5 
Gbps on all ports.


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

&lt;/pre&gt;</description>
    <dc:creator>Robert Hancock</dc:creator>
    <dc:date>2012-05-25T01:03:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52175">
    <title>Re: [PATCH 3.3.y] libata: forbid port runtime pm by default, fixing regression</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52175</link>
    <description>&lt;pre&gt;
Now applied, thanks for letting me know.

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo&amp;lt; at &amp;gt;vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

&lt;/pre&gt;</description>
    <dc:creator>Greg KH</dc:creator>
    <dc:date>2012-05-24T17:30:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52174">
    <title>[Bug 12290] hda: ide_cd_check_ireason: wrong transfer direction!</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52174</link>
    <description>&lt;pre&gt;https://bugzilla.kernel.org/show_bug.cgi?id=12290


Alan &amp;lt;alan&amp;lt; at &amp;gt;lxorguk.ukuu.org.uk&amp;gt; changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED




&lt;/pre&gt;</description>
    <dc:creator>bugzilla-daemon&lt; at &gt;bugzilla.kernel.org</dc:creator>
    <dc:date>2012-05-24T12:18:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52173">
    <title>[Bug 12290] hda: ide_cd_check_ireason: wrong transfer direction!</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52173</link>
    <description>&lt;pre&gt;https://bugzilla.kernel.org/show_bug.cgi?id=12290


Alan &amp;lt;alan&amp;lt; at &amp;gt;lxorguk.ukuu.org.uk&amp;gt; changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |alan&amp;lt; at &amp;gt;lxorguk.ukuu.org.uk
         Resolution|                            |OBSOLETE
         Regression|---                         |No




&lt;/pre&gt;</description>
    <dc:creator>bugzilla-daemon&lt; at &gt;bugzilla.kernel.org</dc:creator>
    <dc:date>2012-05-24T12:18:40</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52172">
    <title>Activate your free commission shop now Recommends Advanced Sports to you</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52172</link>
    <description>&lt;pre&gt;Email        :kimtan&amp;lt; at &amp;gt;gmail.com
Friend Name  :Friend
Friend Email :linux-ide&amp;lt; at &amp;gt;vger.kernel.org
comment      :

Hey,

Your commission shop is ready.
Activate your free commission shop now:

==&amp;gt; http://bit.ly/KUXNMS

In a few minutes, your commission shop will be ready, 
attracting buyers from all around the world.

And each shop is designed to suck commissions and sales 
for you automatically. 

This is the first time this revolutionary technique is applied.

So don't delay. Activate your commission shop now:

==&amp;gt; http://bit.ly/KUXNMS

Sincerely,
Kim Tan



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

&lt;/pre&gt;</description>
    <dc:creator>kimtan&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2012-05-24T11:58:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52171">
    <title>Activate your free commission shop now Recommends Advanced Sports to you</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52171</link>
    <description>&lt;pre&gt;Email        :kimtan&amp;lt; at &amp;gt;gmail.com
Friend Name  :Friend
Friend Email :linux-ide&amp;lt; at &amp;gt;vger.kernel.org
comment      :

Hey,

Your commission shop is ready.
Activate your free commission shop now:

==&amp;gt; http://bit.ly/KUXNMS

In a few minutes, your commission shop will be ready, 
attracting buyers from all around the world.

And each shop is designed to suck commissions and sales 
for you automatically. 

This is the first time this revolutionary technique is applied.

So don't delay. Activate your commission shop now:

==&amp;gt; http://bit.ly/KUXNMS

Sincerely,
Kim Tan



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

&lt;/pre&gt;</description>
    <dc:creator>kimtan&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2012-05-24T06:02:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52170">
    <title>Re: [git patches] libata updates for 3.5</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52170</link>
    <description>&lt;pre&gt;
Bogus tag/upstream-linus deleted, and push script updated.  This is the 
head of the new output:

Please pull 2fff27512600f9ad91335577e485a8552edb0abf from
git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev.git 
tags/upstream-linus

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

&lt;/pre&gt;</description>
    <dc:creator>Jeff Garzik</dc:creator>
    <dc:date>2012-05-23T23:47:48</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52169">
    <title>Re: [git patches] libata updates for 3.5</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52169</link>
    <description>&lt;pre&gt;
No. Look closers.

You've created a tag called "tag/upstream-linus", and that's the one
you asked me to pull.

But looking at gitweb, there is *also* a tag called just
"upstream-linus", and that's the one you probably *meant* me to pull.

If you had asked me to pull "tags/upstream-linus" (note: "tags/" vs
"tag/"), that would have indicated that it's in the "tags" namespace
and I would have gotten the one you meant.

I'd suggest you delete the old confused "tag/upstream-linus" tag (aka
"tags/tag/upstream-linus").

                    Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo&amp;lt; at &amp;gt;vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

&lt;/pre&gt;</description>
    <dc:creator>Linus Torvalds</dc:creator>
    <dc:date>2012-05-23T22:28:09</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52168">
    <title>Re: [git patches] libata updates for 3.5</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52168</link>
    <description>&lt;pre&gt;
hmmm, can you try again?  The output of

http://git.kernel.org/?p=linux/kernel/git/jgarzik/libata-dev.git;a=summary

and

http://git.kernel.org/?p=linux/kernel/git/jgarzik/libata-dev.git;a=tag;h=4560c1c455fb87ba3013967d6ed5d0b1d18cc109

looks correct, so I think there was a mirroring delay.

Jeff


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

&lt;/pre&gt;</description>
    <dc:creator>Jeff Garzik</dc:creator>
    <dc:date>2012-05-23T21:35:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52167">
    <title>Re: [git patches] libata updates for 3.5</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52167</link>
    <description>&lt;pre&gt;
That's not what I get at all. I get your old stuff that I pulled early May.

I suspect you didn't force the tag update: tags aren't like branches,
so by default git will not just overwrite an old tag with a new tag.
Branches are *expected* to be mutable (well, at least if the changes
are fast-forwards), after all - but changing a tag is something you
need to be conscious about.

                               Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo&amp;lt; at &amp;gt;vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

&lt;/pre&gt;</description>
    <dc:creator>Linus Torvalds</dc:creator>
    <dc:date>2012-05-23T21:06:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52166">
    <title>[Training] Here's how to profit $600 a day Recommends Advanced Sports to you</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52166</link>
    <description>&lt;pre&gt;Email        :christian&amp;lt; at &amp;gt;aol.com
Friend Name  :Friend
Friend Email :linux-ide&amp;lt; at &amp;gt;vger.kernel.org
comment      :

Hey,

I've got a treat for you today.

You're about to receive INSTANT
ACCESS to some free training on
how you can profit up to $600 a day

=&amp;gt; http://www.bank-blogging.com/?code=4fbce89b05ddc 


There is no cost. 

Talk Soon,

Christian



=&amp;gt; http://www.bank-blogging.com/?code=4fbce89b05ddc 



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

&lt;/pre&gt;</description>
    <dc:creator>christian&lt; at &gt;aol.com</dc:creator>
    <dc:date>2012-05-23T20:12:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52165">
    <title>[git patches] libata updates for 3.5</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52165</link>
    <description>&lt;pre&gt;
Please pull 2fff27512600f9ad91335577e485a8552edb0abf from
git://git.kernel.org/pub/scm/linux/kernel/git/jgarzik/libata-dev.git tag/upstream-linus


to receive the following updates:

 drivers/ata/Kconfig       |    9 +
 drivers/ata/Makefile      |    1 +
 drivers/ata/ata_generic.c |    2 +-
 drivers/ata/ata_piix.c    |   36 ++
 drivers/ata/libata-core.c |    7 +
 drivers/ata/libata-eh.c   |   24 +-
 drivers/ata/pata_ep93xx.c | 1044 +++++++++++++++++++++++++++++++++++++++++++++
 include/linux/libata.h    |    1 +
 8 files changed, 1120 insertions(+), 4 deletions(-)
 create mode 100644 drivers/ata/pata_ep93xx.c

Andi Kleen (1):
      ata_generic: Skip is_intel_ider() check when ata_generic=1 is set

Andy Whitcroft (2):
      libata: add a host flag to ignore detected ATA devices
      ata_piix: defer disks to the Hyper-V drivers by default

Mark Lord (1):
      libata-eh don't waste time retrying media errors (v3)

Prarit Bhargava (1):
      [libata] Add " 2GB ATA Flash Disk"/"ADMA428M" to DMA blacklist

Rafal Prylowski (1):
      PATA host controller driver for ep93xx

diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig
index 6bdedd7..2be8ef1 100644
--- a/drivers/ata/Kconfig
+++ b/drivers/ata/Kconfig
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -416,6 +416,15 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; config PATA_EFAR
 
   If unsure, say N.
 
+config PATA_EP93XX
+tristate "Cirrus Logic EP93xx PATA support"
+depends on ARCH_EP93XX
+help
+  This option enables support for the PATA controller in
+  the Cirrus Logic EP9312 and EP9315 ARM CPU.
+
+  If unsure, say N.
+
 config PATA_HPT366
 tristate "HPT 366/368 PATA support"
 depends on PCI
diff --git a/drivers/ata/Makefile b/drivers/ata/Makefile
index 6ece5b7..a454a13 100644
--- a/drivers/ata/Makefile
+++ b/drivers/ata/Makefile
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -43,6 +43,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; obj-$(CONFIG_PATA_CS5535)+= pata_cs5535.o
 obj-$(CONFIG_PATA_CS5536)+= pata_cs5536.o
 obj-$(CONFIG_PATA_CYPRESS)+= pata_cypress.o
 obj-$(CONFIG_PATA_EFAR)+= pata_efar.o
+obj-$(CONFIG_PATA_EP93XX)+= pata_ep93xx.o
 obj-$(CONFIG_PATA_HPT366)+= pata_hpt366.o
 obj-$(CONFIG_PATA_HPT37X)+= pata_hpt37x.o
 obj-$(CONFIG_PATA_HPT3X2N)+= pata_hpt3x2n.o
diff --git a/drivers/ata/ata_generic.c b/drivers/ata/ata_generic.c
index 7df56ec..aae1156 100644
--- a/drivers/ata/ata_generic.c
+++ b/drivers/ata/ata_generic.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -177,7 +177,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int ata_generic_init_one(struct pci_dev *dev, const struct pci_device_id
 if ((id-&amp;gt;driver_data &amp;amp; ATA_GEN_CLASS_MATCH) &amp;amp;&amp;amp; all_generic_ide == 0)
 return -ENODEV;
 
-if (id-&amp;gt;driver_data &amp;amp; ATA_GEN_INTEL_IDER)
+if ((id-&amp;gt;driver_data &amp;amp; ATA_GEN_INTEL_IDER) &amp;amp;&amp;amp; !all_generic_ide)
 if (!is_intel_ider(dev))
 return -ENODEV;
 
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index 7857e8f..3c809bf 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1554,6 +1554,39 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static bool piix_broken_system_poweroff(struct pci_dev *pdev)
 return false;
 }
 
+static int prefer_ms_hyperv = 1;
+module_param(prefer_ms_hyperv, int, 0);
+
+static void piix_ignore_devices_quirk(struct ata_host *host)
+{
+#if IS_ENABLED(CONFIG_HYPERV_STORAGE)
+static const struct dmi_system_id ignore_hyperv[] = {
+{
+/* On Hyper-V hypervisors the disks are exposed on
+ * both the emulated SATA controller and on the
+ * paravirtualised drivers.  The CD/DVD devices
+ * are only exposed on the emulated controller.
+ * Request we ignore ATA devices on this host.
+ */
+.ident = "Hyper-V Virtual Machine",
+.matches = {
+DMI_MATCH(DMI_SYS_VENDOR,
+"Microsoft Corporation"),
+DMI_MATCH(DMI_PRODUCT_NAME, "Virtual Machine"),
+},
+},
+{ }/* terminate list */
+};
+const struct dmi_system_id *dmi = dmi_first_match(ignore_hyperv);
+
+if (dmi &amp;amp;&amp;amp; prefer_ms_hyperv) {
+host-&amp;gt;flags |= ATA_HOST_IGNORE_ATA;
+dev_info(host-&amp;gt;dev, "%s detected, ATA device ignore set\n",
+dmi-&amp;gt;ident);
+}
+#endif
+}
+
 /**
  *piix_init_one - Register PIIX ATA PCI device with kernel services
  *&amp;lt; at &amp;gt;pdev: PCI device to register
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1669,6 +1702,9 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static int __devinit piix_init_one(struct pci_dev *pdev,
 }
 host-&amp;gt;flags |= ATA_HOST_PARALLEL_SCAN;
 
+/* Allow hosts to specify device types to ignore when scanning. */
+piix_ignore_devices_quirk(host);
+
 pci_set_master(pdev);
 return ata_pci_sff_activate_host(host, ata_bmdma_interrupt, sht);
 }
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 23763a1..cece3a4 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1973,6 +1973,12 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; retry:
 if (class == ATA_DEV_ATA) {
 if (!ata_id_is_ata(id) &amp;amp;&amp;amp; !ata_id_is_cfa(id))
 goto err_out;
+if (ap-&amp;gt;host-&amp;gt;flags &amp;amp; ATA_HOST_IGNORE_ATA &amp;amp;&amp;amp;
+ata_id_is_ata(id)) {
+ata_dev_dbg(dev,
+"host indicates ignore ATA devices, ignored\n");
+return -ENOENT;
+}
 } else {
 if (ata_id_is_ata(id))
 goto err_out;
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -4051,6 +4057,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static const struct ata_blacklist_entry ata_device_blacklist [] = {
 { "_NEC DV5800A", NULL,ATA_HORKAGE_NODMA },
 { "SAMSUNG CD-ROM SN-124", "N001",ATA_HORKAGE_NODMA },
 { "Seagate STT20000A", NULL,ATA_HORKAGE_NODMA },
+{ "2GB ATA Flash Disk", "ADMA428M",ATA_HORKAGE_NODMA },
 /* Odd clown on sil3726/4726 PMPs */
 { "Config  Disk",NULL,ATA_HORKAGE_DISABLE },
 
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index d1fbd59..6d53cf9 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -2047,6 +2047,26 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static unsigned int ata_eh_speed_down(struct ata_device *dev,
 }
 
 /**
+ *ata_eh_worth_retry - analyze error and decide whether to retry
+ *&amp;lt; at &amp;gt;qc: qc to possibly retry
+ *
+ *Look at the cause of the error and decide if a retry
+ * might be useful or not.  We don't want to retry media errors
+ *because the drive itself has probably already taken 10-30 seconds
+ *doing its own internal retries before reporting the failure.
+ */
+static inline int ata_eh_worth_retry(struct ata_queued_cmd *qc)
+{
+if (qc-&amp;gt;flags &amp;amp; AC_ERR_MEDIA)
+return 0;/* don't retry media errors */
+if (qc-&amp;gt;flags &amp;amp; ATA_QCFLAG_IO)
+return 1;/* otherwise retry anything from fs stack */
+if (qc-&amp;gt;err_mask &amp;amp; AC_ERR_INVALID)
+return 0;/* don't retry these */
+return qc-&amp;gt;err_mask != AC_ERR_DEV;  /* retry if not dev error */
+}
+
+/**
  *ata_eh_link_autopsy - analyze error and determine recovery action
  *&amp;lt; at &amp;gt;link: host link to perform autopsy on
  *
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -2120,9 +2140,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; static void ata_eh_link_autopsy(struct ata_link *link)
 qc-&amp;gt;err_mask &amp;amp;= ~(AC_ERR_DEV | AC_ERR_OTHER);
 
 /* determine whether the command is worth retrying */
-if (qc-&amp;gt;flags &amp;amp; ATA_QCFLAG_IO ||
-    (!(qc-&amp;gt;err_mask &amp;amp; AC_ERR_INVALID) &amp;amp;&amp;amp;
-     qc-&amp;gt;err_mask != AC_ERR_DEV))
+if (ata_eh_worth_retry(qc))
 qc-&amp;gt;flags |= ATA_QCFLAG_RETRY;
 
 /* accumulate error info */
diff --git a/drivers/ata/pata_ep93xx.c b/drivers/ata/pata_ep93xx.c
new file mode 100644
index 0000000..6ef2e37
--- /dev/null
+++ b/drivers/ata/pata_ep93xx.c
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -0,0 +1,1044 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
+/*
+ * EP93XX PATA controller driver.
+ *
+ * Copyright (c) 2012, Metasoft s.c.
+ *Rafal Prylowski &amp;lt;prylowski&amp;lt; at &amp;gt;metasoft.pl&amp;gt;
+ *
+ * Based on pata_scc.c, pata_icside.c and on earlier version of EP93XX
+ * PATA driver by Lennert Buytenhek and Alessandro Zummo.
+ * Read/Write timings, resource management and other improvements
+ * from driver by Joao Ramos and Bartlomiej Zolnierkiewicz.
+ * DMA engine support based on spi-ep93xx.c by Mika Westerberg.
+ *
+ * Original copyrights:
+ *
+ * Support for Cirrus Logic's EP93xx (EP9312, EP9315) CPUs
+ * PATA host controller driver.
+ *
+ * Copyright (c) 2009, Bartlomiej Zolnierkiewicz
+ *
+ * Heavily based on the ep93xx-ide.c driver:
+ *
+ * Copyright (c) 2009, Joao Ramos &amp;lt;joao.ramos&amp;lt; at &amp;gt;inov.pt&amp;gt;
+ *      INESC Inovacao (INOV)
+ *
+ * EP93XX PATA controller driver.
+ * Copyright (C) 2007 Lennert Buytenhek &amp;lt;buytenh&amp;lt; at &amp;gt;wantstofly.org&amp;gt;
+ *
+ * An ATA driver for the Cirrus Logic EP93xx PATA controller.
+ *
+ * Based on an earlier version by Alessandro Zummo, which is:
+ *   Copyright (C) 2006 Tower Technologies
+ */
+
+#include &amp;lt;linux/kernel.h&amp;gt;
+#include &amp;lt;linux/module.h&amp;gt;
+#include &amp;lt;linux/init.h&amp;gt;
+#include &amp;lt;linux/blkdev.h&amp;gt;
+#include &amp;lt;scsi/scsi_host.h&amp;gt;
+#include &amp;lt;linux/ata.h&amp;gt;
+#include &amp;lt;linux/libata.h&amp;gt;
+#include &amp;lt;linux/platform_device.h&amp;gt;
+#include &amp;lt;linux/delay.h&amp;gt;
+#include &amp;lt;linux/dmaengine.h&amp;gt;
+#include &amp;lt;linux/ktime.h&amp;gt;
+
+#include &amp;lt;mach/dma.h&amp;gt;
+#include &amp;lt;mach/platform.h&amp;gt;
+
+#define DRV_NAME"ep93xx-ide"
+#define DRV_VERSION"1.0"
+
+enum {
+/* IDE Control Register */
+IDECTRL= 0x00,
+IDECTRL_CS0N= (1 &amp;lt;&amp;lt; 0),
+IDECTRL_CS1N= (1 &amp;lt;&amp;lt; 1),
+IDECTRL_DIORN= (1 &amp;lt;&amp;lt; 5),
+IDECTRL_DIOWN= (1 &amp;lt;&amp;lt; 6),
+IDECTRL_INTRQ= (1 &amp;lt;&amp;lt; 9),
+IDECTRL_IORDY= (1 &amp;lt;&amp;lt; 10),
+/*
+ * the device IDE register to be accessed is selected through
+ * IDECTRL register's specific bitfields 'DA', 'CS1N' and 'CS0N':
+ *   b4   b3   b2    b1     b0
+ *   A2   A1   A0   CS1N   CS0N
+ * the values filled in this structure allows the value to be directly
+ * ORed to the IDECTRL register, hence giving directly the A[2:0] and
+ * CS1N/CS0N values for each IDE register.
+ * The values correspond to the transformation:
+ *   ((real IDE address) &amp;lt;&amp;lt; 2) | CS1N value &amp;lt;&amp;lt; 1 | CS0N value
+ */
+IDECTRL_ADDR_CMD= 0 + 2, /* CS1 */
+IDECTRL_ADDR_DATA= (ATA_REG_DATA &amp;lt;&amp;lt; 2) + 2,
+IDECTRL_ADDR_ERROR= (ATA_REG_ERR &amp;lt;&amp;lt; 2) + 2,
+IDECTRL_ADDR_FEATURE= (ATA_REG_FEATURE &amp;lt;&amp;lt; 2) + 2,
+IDECTRL_ADDR_NSECT= (ATA_REG_NSECT &amp;lt;&amp;lt; 2) + 2,
+IDECTRL_ADDR_LBAL= (ATA_REG_LBAL &amp;lt;&amp;lt; 2) + 2,
+IDECTRL_ADDR_LBAM= (ATA_REG_LBAM &amp;lt;&amp;lt; 2) + 2,
+IDECTRL_ADDR_LBAH= (ATA_REG_LBAH &amp;lt;&amp;lt; 2) + 2,
+IDECTRL_ADDR_DEVICE= (ATA_REG_DEVICE &amp;lt;&amp;lt; 2) + 2,
+IDECTRL_ADDR_STATUS= (ATA_REG_STATUS &amp;lt;&amp;lt; 2) + 2,
+IDECTRL_ADDR_COMMAND= (ATA_REG_CMD &amp;lt;&amp;lt; 2) + 2,
+IDECTRL_ADDR_ALTSTATUS= (0x06 &amp;lt;&amp;lt; 2) + 1, /* CS0 */
+IDECTRL_ADDR_CTL= (0x06 &amp;lt;&amp;lt; 2) + 1, /* CS0 */
+
+/* IDE Configuration Register */
+IDECFG= 0x04,
+IDECFG_IDEEN= (1 &amp;lt;&amp;lt; 0),
+IDECFG_PIO= (1 &amp;lt;&amp;lt; 1),
+IDECFG_MDMA= (1 &amp;lt;&amp;lt; 2),
+IDECFG_UDMA= (1 &amp;lt;&amp;lt; 3),
+IDECFG_MODE_SHIFT= 4,
+IDECFG_MODE_MASK= (0xf &amp;lt;&amp;lt; 4),
+IDECFG_WST_SHIFT= 8,
+IDECFG_WST_MASK= (0x3 &amp;lt;&amp;lt; 8),
+
+/* MDMA Operation Register */
+IDEMDMAOP= 0x08,
+
+/* UDMA Operation Register */
+IDEUDMAOP= 0x0c,
+IDEUDMAOP_UEN= (1 &amp;lt;&amp;lt; 0),
+IDEUDMAOP_RWOP= (1 &amp;lt;&amp;lt; 1),
+
+/* PIO/MDMA/UDMA Data Registers */
+IDEDATAOUT= 0x10,
+IDEDATAIN= 0x14,
+IDEMDMADATAOUT= 0x18,
+IDEMDMADATAIN= 0x1c,
+IDEUDMADATAOUT= 0x20,
+IDEUDMADATAIN= 0x24,
+
+/* UDMA Status Register */
+IDEUDMASTS= 0x28,
+IDEUDMASTS_DMAIDE= (1 &amp;lt;&amp;lt; 16),
+IDEUDMASTS_INTIDE= (1 &amp;lt;&amp;lt; 17),
+IDEUDMASTS_SBUSY= (1 &amp;lt;&amp;lt; 18),
+IDEUDMASTS_NDO= (1 &amp;lt;&amp;lt; 24),
+IDEUDMASTS_NDI= (1 &amp;lt;&amp;lt; 25),
+IDEUDMASTS_N4X= (1 &amp;lt;&amp;lt; 26),
+
+/* UDMA Debug Status Register */
+IDEUDMADEBUG= 0x2c,
+};
+
+struct ep93xx_pata_data {
+const struct platform_device *pdev;
+void __iomem *ide_base;
+struct ata_timing t;
+bool iordy;
+
+unsigned long udma_in_phys;
+unsigned long udma_out_phys;
+
+struct dma_chan *dma_rx_channel;
+struct ep93xx_dma_data dma_rx_data;
+struct dma_chan *dma_tx_channel;
+struct ep93xx_dma_data dma_tx_data;
+};
+
+static void ep93xx_pata_clear_regs(void __iomem *base)
+{
+writel(IDECTRL_CS0N | IDECTRL_CS1N | IDECTRL_DIORN |
+IDECTRL_DIOWN, base + IDECTRL);
+
+writel(0, base + IDECFG);
+writel(0, base + IDEMDMAOP);
+writel(0, base + IDEUDMAOP);
+writel(0, base + IDEDATAOUT);
+writel(0, base + IDEDATAIN);
+writel(0, base + IDEMDMADATAOUT);
+writel(0, base + IDEMDMADATAIN);
+writel(0, base + IDEUDMADATAOUT);
+writel(0, base + IDEUDMADATAIN);
+writel(0, base + IDEUDMADEBUG);
+}
+
+static bool ep93xx_pata_check_iordy(void __iomem *base)
+{
+return !!(readl(base + IDECTRL) &amp;amp; IDECTRL_IORDY);
+}
+
+/*
+ * According to EP93xx User's Guide, WST field of IDECFG specifies number
+ * of HCLK cycles to hold the data bus after a PIO write operation.
+ * It should be programmed to guarantee following delays:
+ *
+ * PIO Mode   [ns]
+ * 0          30
+ * 1          20
+ * 2          15
+ * 3          10
+ * 4          5
+ *
+ * Maximum possible value for HCLK is 100MHz.
+ */
+static int ep93xx_pata_get_wst(int pio_mode)
+{
+int val;
+
+if (pio_mode == 0)
+val = 3;
+else if (pio_mode &amp;lt; 3)
+val = 2;
+else
+val = 1;
+
+return val &amp;lt;&amp;lt; IDECFG_WST_SHIFT;
+}
+
+static void ep93xx_pata_enable_pio(void __iomem *base, int pio_mode)
+{
+writel(IDECFG_IDEEN | IDECFG_PIO |
+ep93xx_pata_get_wst(pio_mode) |
+(pio_mode &amp;lt;&amp;lt; IDECFG_MODE_SHIFT), base + IDECFG);
+}
+
+/*
+ * Based on delay loop found in mach-pxa/mp900.c.
+ *
+ * Single iteration should take 5 cpu cycles. This is 25ns assuming the
+ * fastest ep93xx cpu speed (200MHz) and is better optimized for PIO4 timings
+ * than eg. 20ns.
+ */
+static void ep93xx_pata_delay(unsigned long count)
+{
+__asm__ volatile (
+"0:\n"
+"mov r0, r0\n"
+"subs %0, %1, #1\n"
+"bge 0b\n"
+: "=r" (count)
+: "0" (count)
+);
+}
+
+static unsigned long ep93xx_pata_wait_for_iordy(void __iomem *base,
+unsigned long t2)
+{
+/*
+ * According to ATA specification, IORDY pin can be first sampled
+ * tA = 35ns after activation of DIOR-/DIOW-. Maximum IORDY pulse
+ * width is tB = 1250ns.
+ *
+ * We are already t2 delay loop iterations after activation of
+ * DIOR-/DIOW-, so we set timeout to (1250 + 35) / 25 - t2 additional
+ * delay loop iterations.
+ */
+unsigned long start = (1250 + 35) / 25 - t2;
+unsigned long counter = start;
+
+while (!ep93xx_pata_check_iordy(base) &amp;amp;&amp;amp; counter--)
+ep93xx_pata_delay(1);
+return start - counter;
+}
+
+/* common part at start of ep93xx_pata_read/write() */
+static void ep93xx_pata_rw_begin(void __iomem *base, unsigned long addr,
+ unsigned long t1)
+{
+writel(IDECTRL_DIOWN | IDECTRL_DIORN | addr, base + IDECTRL);
+ep93xx_pata_delay(t1);
+}
+
+/* common part at end of ep93xx_pata_read/write() */
+static void ep93xx_pata_rw_end(void __iomem *base, unsigned long addr,
+       bool iordy, unsigned long t0, unsigned long t2,
+       unsigned long t2i)
+{
+ep93xx_pata_delay(t2);
+/* lengthen t2 if needed */
+if (iordy)
+t2 += ep93xx_pata_wait_for_iordy(base, t2);
+writel(IDECTRL_DIOWN | IDECTRL_DIORN | addr, base + IDECTRL);
+if (t0 &amp;gt; t2 &amp;amp;&amp;amp; t0 - t2 &amp;gt; t2i)
+ep93xx_pata_delay(t0 - t2);
+else
+ep93xx_pata_delay(t2i);
+}
+
+static u16 ep93xx_pata_read(struct ep93xx_pata_data *drv_data,
+    unsigned long addr,
+    bool reg)
+{
+void __iomem *base = drv_data-&amp;gt;ide_base;
+const struct ata_timing *t = &amp;amp;drv_data-&amp;gt;t;
+unsigned long t0 = reg ? t-&amp;gt;cyc8b : t-&amp;gt;cycle;
+unsigned long t2 = reg ? t-&amp;gt;act8b : t-&amp;gt;active;
+unsigned long t2i = reg ? t-&amp;gt;rec8b : t-&amp;gt;recover;
+
+ep93xx_pata_rw_begin(base, addr, t-&amp;gt;setup);
+writel(IDECTRL_DIOWN | addr, base + IDECTRL);
+/*
+ * The IDEDATAIN register is loaded from the DD pins at the positive
+ * edge of the DIORN signal. (EP93xx UG p27-14)
+ */
+ep93xx_pata_rw_end(base, addr, drv_data-&amp;gt;iordy, t0, t2, t2i);
+return readl(base + IDEDATAIN);
+}
+
+/* IDE register read */
+static u16 ep93xx_pata_read_reg(struct ep93xx_pata_data *drv_data,
+unsigned long addr)
+{
+return ep93xx_pata_read(drv_data, addr, true);
+}
+
+/* PIO data read */
+static u16 ep93xx_pata_read_data(struct ep93xx_pata_data *drv_data,
+ unsigned long addr)
+{
+return ep93xx_pata_read(drv_data, addr, false);
+}
+
+static void ep93xx_pata_write(struct ep93xx_pata_data *drv_data,
+      u16 value, unsigned long addr,
+      bool reg)
+{
+void __iomem *base = drv_data-&amp;gt;ide_base;
+const struct ata_timing *t = &amp;amp;drv_data-&amp;gt;t;
+unsigned long t0 = reg ? t-&amp;gt;cyc8b : t-&amp;gt;cycle;
+unsigned long t2 = reg ? t-&amp;gt;act8b : t-&amp;gt;active;
+unsigned long t2i = reg ? t-&amp;gt;rec8b : t-&amp;gt;recover;
+
+ep93xx_pata_rw_begin(base, addr, t-&amp;gt;setup);
+/*
+ * Value from IDEDATAOUT register is driven onto the DD pins when
+ * DIOWN is low. (EP93xx UG p27-13)
+ */
+writel(value, base + IDEDATAOUT);
+writel(IDECTRL_DIORN | addr, base + IDECTRL);
+ep93xx_pata_rw_end(base, addr, drv_data-&amp;gt;iordy, t0, t2, t2i);
+}
+
+/* IDE register write */
+static void ep93xx_pata_write_reg(struct ep93xx_pata_data *drv_data,
+  u16 value, unsigned long addr)
+{
+ep93xx_pata_write(drv_data, value, addr, true);
+}
+
+/* PIO data write */
+static void ep93xx_pata_write_data(struct ep93xx_pata_data *drv_data,
+   u16 value, unsigned long addr)
+{
+ep93xx_pata_write(drv_data, value, addr, false);
+}
+
+static void ep93xx_pata_set_piomode(struct ata_port *ap,
+    struct ata_device *adev)
+{
+struct ep93xx_pata_data *drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+struct ata_device *pair = ata_dev_pair(adev);
+/*
+ * Calculate timings for the delay loop, assuming ep93xx cpu speed
+ * is 200MHz (maximum possible for ep93xx). If actual cpu speed is
+ * slower, we will wait a bit longer in each delay.
+ * Additional division of cpu speed by 5, because single iteration
+ * of our delay loop takes 5 cpu cycles (25ns).
+ */
+unsigned long T = 1000000 / (200 / 5);
+
+ata_timing_compute(adev, adev-&amp;gt;pio_mode, &amp;amp;drv_data-&amp;gt;t, T, 0);
+if (pair &amp;amp;&amp;amp; pair-&amp;gt;pio_mode) {
+struct ata_timing t;
+ata_timing_compute(pair, pair-&amp;gt;pio_mode, &amp;amp;t, T, 0);
+ata_timing_merge(&amp;amp;t, &amp;amp;drv_data-&amp;gt;t, &amp;amp;drv_data-&amp;gt;t,
+ATA_TIMING_SETUP | ATA_TIMING_8BIT);
+}
+drv_data-&amp;gt;iordy = ata_pio_need_iordy(adev);
+
+ep93xx_pata_enable_pio(drv_data-&amp;gt;ide_base,
+       adev-&amp;gt;pio_mode - XFER_PIO_0);
+}
+
+/* Note: original code is ata_sff_check_status */
+static u8 ep93xx_pata_check_status(struct ata_port *ap)
+{
+struct ep93xx_pata_data *drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+
+return ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_STATUS);
+}
+
+static u8 ep93xx_pata_check_altstatus(struct ata_port *ap)
+{
+struct ep93xx_pata_data *drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+
+return ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_ALTSTATUS);
+}
+
+/* Note: original code is ata_sff_tf_load */
+static void ep93xx_pata_tf_load(struct ata_port *ap,
+const struct ata_taskfile *tf)
+{
+struct ep93xx_pata_data *drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+unsigned int is_addr = tf-&amp;gt;flags &amp;amp; ATA_TFLAG_ISADDR;
+
+if (tf-&amp;gt;ctl != ap-&amp;gt;last_ctl) {
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;ctl, IDECTRL_ADDR_CTL);
+ap-&amp;gt;last_ctl = tf-&amp;gt;ctl;
+ata_wait_idle(ap);
+}
+
+if (is_addr &amp;amp;&amp;amp; (tf-&amp;gt;flags &amp;amp; ATA_TFLAG_LBA48)) {
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;hob_feature,
+IDECTRL_ADDR_FEATURE);
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;hob_nsect,
+IDECTRL_ADDR_NSECT);
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;hob_lbal,
+IDECTRL_ADDR_LBAL);
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;hob_lbam,
+IDECTRL_ADDR_LBAM);
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;hob_lbah,
+IDECTRL_ADDR_LBAH);
+}
+
+if (is_addr) {
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;feature,
+IDECTRL_ADDR_FEATURE);
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;nsect, IDECTRL_ADDR_NSECT);
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;lbal, IDECTRL_ADDR_LBAL);
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;lbam, IDECTRL_ADDR_LBAM);
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;lbah, IDECTRL_ADDR_LBAH);
+}
+
+if (tf-&amp;gt;flags &amp;amp; ATA_TFLAG_DEVICE)
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;device,
+IDECTRL_ADDR_DEVICE);
+
+ata_wait_idle(ap);
+}
+
+/* Note: original code is ata_sff_tf_read */
+static void ep93xx_pata_tf_read(struct ata_port *ap, struct ata_taskfile *tf)
+{
+struct ep93xx_pata_data *drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+
+tf-&amp;gt;command = ep93xx_pata_check_status(ap);
+tf-&amp;gt;feature = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_FEATURE);
+tf-&amp;gt;nsect = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_NSECT);
+tf-&amp;gt;lbal = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_LBAL);
+tf-&amp;gt;lbam = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_LBAM);
+tf-&amp;gt;lbah = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_LBAH);
+tf-&amp;gt;device = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_DEVICE);
+
+if (tf-&amp;gt;flags &amp;amp; ATA_TFLAG_LBA48) {
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;ctl | ATA_HOB,
+IDECTRL_ADDR_CTL);
+tf-&amp;gt;hob_feature = ep93xx_pata_read_reg(drv_data,
+IDECTRL_ADDR_FEATURE);
+tf-&amp;gt;hob_nsect = ep93xx_pata_read_reg(drv_data,
+IDECTRL_ADDR_NSECT);
+tf-&amp;gt;hob_lbal = ep93xx_pata_read_reg(drv_data,
+IDECTRL_ADDR_LBAL);
+tf-&amp;gt;hob_lbam = ep93xx_pata_read_reg(drv_data,
+IDECTRL_ADDR_LBAM);
+tf-&amp;gt;hob_lbah = ep93xx_pata_read_reg(drv_data,
+IDECTRL_ADDR_LBAH);
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;ctl, IDECTRL_ADDR_CTL);
+ap-&amp;gt;last_ctl = tf-&amp;gt;ctl;
+}
+}
+
+/* Note: original code is ata_sff_exec_command */
+static void ep93xx_pata_exec_command(struct ata_port *ap,
+     const struct ata_taskfile *tf)
+{
+struct ep93xx_pata_data *drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+
+ep93xx_pata_write_reg(drv_data, tf-&amp;gt;command,
+  IDECTRL_ADDR_COMMAND);
+ata_sff_pause(ap);
+}
+
+/* Note: original code is ata_sff_dev_select */
+static void ep93xx_pata_dev_select(struct ata_port *ap, unsigned int device)
+{
+struct ep93xx_pata_data *drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+u8 tmp = ATA_DEVICE_OBS;
+
+if (device != 0)
+tmp |= ATA_DEV1;
+
+ep93xx_pata_write_reg(drv_data, tmp, IDECTRL_ADDR_DEVICE);
+ata_sff_pause(ap);/* needed; also flushes, for mmio */
+}
+
+/* Note: original code is ata_sff_set_devctl */
+static void ep93xx_pata_set_devctl(struct ata_port *ap, u8 ctl)
+{
+struct ep93xx_pata_data *drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+
+ep93xx_pata_write_reg(drv_data, ctl, IDECTRL_ADDR_CTL);
+}
+
+/* Note: original code is ata_sff_data_xfer */
+static unsigned int ep93xx_pata_data_xfer(struct ata_device *adev,
+  unsigned char *buf,
+  unsigned int buflen, int rw)
+{
+struct ata_port *ap = adev-&amp;gt;link-&amp;gt;ap;
+struct ep93xx_pata_data *drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+u16 *data = (u16 *)buf;
+unsigned int words = buflen &amp;gt;&amp;gt; 1;
+
+/* Transfer multiple of 2 bytes */
+while (words--)
+if (rw == READ)
+*data++ = cpu_to_le16(
+ep93xx_pata_read_data(
+drv_data, IDECTRL_ADDR_DATA));
+else
+ep93xx_pata_write_data(drv_data, le16_to_cpu(*data++),
+IDECTRL_ADDR_DATA);
+
+/* Transfer trailing 1 byte, if any. */
+if (unlikely(buflen &amp;amp; 0x01)) {
+unsigned char pad[2] = { };
+
+buf += buflen - 1;
+
+if (rw == READ) {
+*pad = cpu_to_le16(
+ep93xx_pata_read_data(
+drv_data, IDECTRL_ADDR_DATA));
+*buf = pad[0];
+} else {
+pad[0] = *buf;
+ep93xx_pata_write_data(drv_data, le16_to_cpu(*pad),
+  IDECTRL_ADDR_DATA);
+}
+words++;
+}
+
+return words &amp;lt;&amp;lt; 1;
+}
+
+/* Note: original code is ata_devchk */
+static bool ep93xx_pata_device_is_present(struct ata_port *ap,
+  unsigned int device)
+{
+struct ep93xx_pata_data *drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+u8 nsect, lbal;
+
+ap-&amp;gt;ops-&amp;gt;sff_dev_select(ap, device);
+
+ep93xx_pata_write_reg(drv_data, 0x55, IDECTRL_ADDR_NSECT);
+ep93xx_pata_write_reg(drv_data, 0xaa, IDECTRL_ADDR_LBAL);
+
+ep93xx_pata_write_reg(drv_data, 0xaa, IDECTRL_ADDR_NSECT);
+ep93xx_pata_write_reg(drv_data, 0x55, IDECTRL_ADDR_LBAL);
+
+ep93xx_pata_write_reg(drv_data, 0x55, IDECTRL_ADDR_NSECT);
+ep93xx_pata_write_reg(drv_data, 0xaa, IDECTRL_ADDR_LBAL);
+
+nsect = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_NSECT);
+lbal = ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_LBAL);
+
+if ((nsect == 0x55) &amp;amp;&amp;amp; (lbal == 0xaa))
+return true;
+
+return false;
+}
+
+/* Note: original code is ata_sff_wait_after_reset */
+static int ep93xx_pata_wait_after_reset(struct ata_link *link,
+unsigned int devmask,
+unsigned long deadline)
+{
+struct ata_port *ap = link-&amp;gt;ap;
+struct ep93xx_pata_data *drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+unsigned int dev0 = devmask &amp;amp; (1 &amp;lt;&amp;lt; 0);
+unsigned int dev1 = devmask &amp;amp; (1 &amp;lt;&amp;lt; 1);
+int rc, ret = 0;
+
+ata_msleep(ap, ATA_WAIT_AFTER_RESET);
+
+/* always check readiness of the master device */
+rc = ata_sff_wait_ready(link, deadline);
+/*
+ * -ENODEV means the odd clown forgot the D7 pulldown resistor
+ * and TF status is 0xff, bail out on it too.
+ */
+if (rc)
+return rc;
+
+/*
+ * if device 1 was found in ata_devchk, wait for register
+ * access briefly, then wait for BSY to clear.
+ */
+if (dev1) {
+int i;
+
+ap-&amp;gt;ops-&amp;gt;sff_dev_select(ap, 1);
+
+/*
+ * Wait for register access.  Some ATAPI devices fail
+ * to set nsect/lbal after reset, so don't waste too
+ * much time on it.  We're gonna wait for !BSY anyway.
+ */
+for (i = 0; i &amp;lt; 2; i++) {
+u8 nsect, lbal;
+
+nsect = ep93xx_pata_read_reg(drv_data,
+IDECTRL_ADDR_NSECT);
+lbal = ep93xx_pata_read_reg(drv_data,
+IDECTRL_ADDR_LBAL);
+if (nsect == 1 &amp;amp;&amp;amp; lbal == 1)
+break;
+msleep(50);/* give drive a breather */
+}
+
+rc = ata_sff_wait_ready(link, deadline);
+if (rc) {
+if (rc != -ENODEV)
+return rc;
+ret = rc;
+}
+}
+/* is all this really necessary? */
+ap-&amp;gt;ops-&amp;gt;sff_dev_select(ap, 0);
+if (dev1)
+ap-&amp;gt;ops-&amp;gt;sff_dev_select(ap, 1);
+if (dev0)
+ap-&amp;gt;ops-&amp;gt;sff_dev_select(ap, 0);
+
+return ret;
+}
+
+/* Note: original code is ata_bus_softreset */
+static int ep93xx_pata_bus_softreset(struct ata_port *ap, unsigned int devmask,
+     unsigned long deadline)
+{
+struct ep93xx_pata_data *drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+
+ep93xx_pata_write_reg(drv_data, ap-&amp;gt;ctl, IDECTRL_ADDR_CTL);
+udelay(20);/* FIXME: flush */
+ep93xx_pata_write_reg(drv_data, ap-&amp;gt;ctl | ATA_SRST, IDECTRL_ADDR_CTL);
+udelay(20);/* FIXME: flush */
+ep93xx_pata_write_reg(drv_data, ap-&amp;gt;ctl, IDECTRL_ADDR_CTL);
+ap-&amp;gt;last_ctl = ap-&amp;gt;ctl;
+
+return ep93xx_pata_wait_after_reset(&amp;amp;ap-&amp;gt;link, devmask, deadline);
+}
+
+static void ep93xx_pata_release_dma(struct ep93xx_pata_data *drv_data)
+{
+if (drv_data-&amp;gt;dma_rx_channel) {
+dma_release_channel(drv_data-&amp;gt;dma_rx_channel);
+drv_data-&amp;gt;dma_rx_channel = NULL;
+}
+if (drv_data-&amp;gt;dma_tx_channel) {
+dma_release_channel(drv_data-&amp;gt;dma_tx_channel);
+drv_data-&amp;gt;dma_tx_channel = NULL;
+}
+}
+
+static bool ep93xx_pata_dma_filter(struct dma_chan *chan, void *filter_param)
+{
+if (ep93xx_dma_chan_is_m2p(chan))
+return false;
+
+chan-&amp;gt;private = filter_param;
+return true;
+}
+
+static void ep93xx_pata_dma_init(struct ep93xx_pata_data *drv_data)
+{
+const struct platform_device *pdev = drv_data-&amp;gt;pdev;
+dma_cap_mask_t mask;
+struct dma_slave_config conf;
+
+dma_cap_zero(mask);
+dma_cap_set(DMA_SLAVE, mask);
+
+/*
+ * Request two channels for IDE. Another possibility would be
+ * to request only one channel, and reprogram it's direction at
+ * start of new transfer.
+ */
+drv_data-&amp;gt;dma_rx_data.port = EP93XX_DMA_IDE;
+drv_data-&amp;gt;dma_rx_data.direction = DMA_FROM_DEVICE;
+drv_data-&amp;gt;dma_rx_data.name = "ep93xx-pata-rx";
+drv_data-&amp;gt;dma_rx_channel = dma_request_channel(mask,
+ep93xx_pata_dma_filter, &amp;amp;drv_data-&amp;gt;dma_rx_data);
+if (!drv_data-&amp;gt;dma_rx_channel)
+return;
+
+drv_data-&amp;gt;dma_tx_data.port = EP93XX_DMA_IDE;
+drv_data-&amp;gt;dma_tx_data.direction = DMA_TO_DEVICE;
+drv_data-&amp;gt;dma_tx_data.name = "ep93xx-pata-tx";
+drv_data-&amp;gt;dma_tx_channel = dma_request_channel(mask,
+ep93xx_pata_dma_filter, &amp;amp;drv_data-&amp;gt;dma_tx_data);
+if (!drv_data-&amp;gt;dma_tx_channel) {
+dma_release_channel(drv_data-&amp;gt;dma_rx_channel);
+return;
+}
+
+/* Configure receive channel direction and source address */
+memset(&amp;amp;conf, 0, sizeof(conf));
+conf.direction = DMA_FROM_DEVICE;
+conf.src_addr = drv_data-&amp;gt;udma_in_phys;
+conf.src_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
+if (dmaengine_slave_config(drv_data-&amp;gt;dma_rx_channel, &amp;amp;conf)) {
+dev_err(&amp;amp;pdev-&amp;gt;dev, "failed to configure rx dma channel\n");
+ep93xx_pata_release_dma(drv_data);
+return;
+}
+
+/* Configure transmit channel direction and destination address */
+memset(&amp;amp;conf, 0, sizeof(conf));
+conf.direction = DMA_TO_DEVICE;
+conf.dst_addr = drv_data-&amp;gt;udma_out_phys;
+conf.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;
+if (dmaengine_slave_config(drv_data-&amp;gt;dma_tx_channel, &amp;amp;conf)) {
+dev_err(&amp;amp;pdev-&amp;gt;dev, "failed to configure tx dma channel\n");
+ep93xx_pata_release_dma(drv_data);
+}
+}
+
+static void ep93xx_pata_dma_start(struct ata_queued_cmd *qc)
+{
+struct dma_async_tx_descriptor *txd;
+struct ep93xx_pata_data *drv_data = qc-&amp;gt;ap-&amp;gt;host-&amp;gt;private_data;
+void __iomem *base = drv_data-&amp;gt;ide_base;
+struct ata_device *adev = qc-&amp;gt;dev;
+u32 v = qc-&amp;gt;dma_dir == DMA_TO_DEVICE ? IDEUDMAOP_RWOP : 0;
+struct dma_chan *channel = qc-&amp;gt;dma_dir == DMA_TO_DEVICE
+? drv_data-&amp;gt;dma_tx_channel : drv_data-&amp;gt;dma_rx_channel;
+
+txd = channel-&amp;gt;device-&amp;gt;device_prep_slave_sg(channel, qc-&amp;gt;sg,
+ qc-&amp;gt;n_elem, qc-&amp;gt;dma_dir, DMA_CTRL_ACK, NULL);
+if (!txd) {
+dev_err(qc-&amp;gt;ap-&amp;gt;dev, "failed to prepare slave for sg dma\n");
+return;
+}
+txd-&amp;gt;callback = NULL;
+txd-&amp;gt;callback_param = NULL;
+
+if (dmaengine_submit(txd) &amp;lt; 0) {
+dev_err(qc-&amp;gt;ap-&amp;gt;dev, "failed to submit dma transfer\n");
+return;
+}
+dma_async_issue_pending(channel);
+
+/*
+ * When enabling UDMA operation, IDEUDMAOP register needs to be
+ * programmed in three step sequence:
+ * 1) set or clear the RWOP bit,
+ * 2) perform dummy read of the register,
+ * 3) set the UEN bit.
+ */
+writel(v, base + IDEUDMAOP);
+readl(base + IDEUDMAOP);
+writel(v | IDEUDMAOP_UEN, base + IDEUDMAOP);
+
+writel(IDECFG_IDEEN | IDECFG_UDMA |
+((adev-&amp;gt;xfer_mode - XFER_UDMA_0) &amp;lt;&amp;lt; IDECFG_MODE_SHIFT),
+base + IDECFG);
+}
+
+static void ep93xx_pata_dma_stop(struct ata_queued_cmd *qc)
+{
+struct ep93xx_pata_data *drv_data = qc-&amp;gt;ap-&amp;gt;host-&amp;gt;private_data;
+void __iomem *base = drv_data-&amp;gt;ide_base;
+
+/* terminate all dma transfers, if not yet finished */
+dmaengine_terminate_all(drv_data-&amp;gt;dma_rx_channel);
+dmaengine_terminate_all(drv_data-&amp;gt;dma_tx_channel);
+
+/*
+ * To properly stop IDE-DMA, IDEUDMAOP register must to be cleared
+ * and IDECTRL register must be set to default value.
+ */
+writel(0, base + IDEUDMAOP);
+writel(readl(base + IDECTRL) | IDECTRL_DIOWN | IDECTRL_DIORN |
+IDECTRL_CS0N | IDECTRL_CS1N, base + IDECTRL);
+
+ep93xx_pata_enable_pio(drv_data-&amp;gt;ide_base,
+qc-&amp;gt;dev-&amp;gt;pio_mode - XFER_PIO_0);
+
+ata_sff_dma_pause(qc-&amp;gt;ap);
+}
+
+static void ep93xx_pata_dma_setup(struct ata_queued_cmd *qc)
+{
+qc-&amp;gt;ap-&amp;gt;ops-&amp;gt;sff_exec_command(qc-&amp;gt;ap, &amp;amp;qc-&amp;gt;tf);
+}
+
+static u8 ep93xx_pata_dma_status(struct ata_port *ap)
+{
+struct ep93xx_pata_data *drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+u32 val = readl(drv_data-&amp;gt;ide_base + IDEUDMASTS);
+
+/*
+ * UDMA Status Register bits:
+ *
+ * DMAIDE - DMA request signal from UDMA state machine,
+ * INTIDE - INT line generated by UDMA because of errors in the
+ *          state machine,
+ * SBUSY - UDMA state machine busy, not in idle state,
+ * NDO   - error for data-out not completed,
+ * NDI   - error for data-in not completed,
+ * N4X   - error for data transferred not multiplies of four
+ *         32-bit words.
+ * (EP93xx UG p27-17)
+ */
+if (val &amp;amp; IDEUDMASTS_NDO || val &amp;amp; IDEUDMASTS_NDI ||
+    val &amp;amp; IDEUDMASTS_N4X || val &amp;amp; IDEUDMASTS_INTIDE)
+return ATA_DMA_ERR;
+
+/* read INTRQ (INT[3]) pin input state */
+if (readl(drv_data-&amp;gt;ide_base + IDECTRL) &amp;amp; IDECTRL_INTRQ)
+return ATA_DMA_INTR;
+
+if (val &amp;amp; IDEUDMASTS_SBUSY || val &amp;amp; IDEUDMASTS_DMAIDE)
+return ATA_DMA_ACTIVE;
+
+return 0;
+}
+
+/* Note: original code is ata_sff_softreset */
+static int ep93xx_pata_softreset(struct ata_link *al, unsigned int *classes,
+ unsigned long deadline)
+{
+struct ata_port *ap = al-&amp;gt;ap;
+unsigned int slave_possible = ap-&amp;gt;flags &amp;amp; ATA_FLAG_SLAVE_POSS;
+unsigned int devmask = 0;
+int rc;
+u8 err;
+
+/* determine if device 0/1 are present */
+if (ep93xx_pata_device_is_present(ap, 0))
+devmask |= (1 &amp;lt;&amp;lt; 0);
+if (slave_possible &amp;amp;&amp;amp; ep93xx_pata_device_is_present(ap, 1))
+devmask |= (1 &amp;lt;&amp;lt; 1);
+
+/* select device 0 again */
+ap-&amp;gt;ops-&amp;gt;sff_dev_select(al-&amp;gt;ap, 0);
+
+/* issue bus reset */
+rc = ep93xx_pata_bus_softreset(ap, devmask, deadline);
+/* if link is ocuppied, -ENODEV too is an error */
+if (rc &amp;amp;&amp;amp; (rc != -ENODEV || sata_scr_valid(al))) {
+ata_link_printk(al, KERN_ERR, "SRST failed (errno=%d)\n",
+rc);
+return rc;
+}
+
+/* determine by signature whether we have ATA or ATAPI devices */
+classes[0] = ata_sff_dev_classify(&amp;amp;al-&amp;gt;device[0], devmask &amp;amp; (1 &amp;lt;&amp;lt; 0),
+  &amp;amp;err);
+if (slave_possible &amp;amp;&amp;amp; err != 0x81)
+classes[1] = ata_sff_dev_classify(&amp;amp;al-&amp;gt;device[1],
+  devmask &amp;amp; (1 &amp;lt;&amp;lt; 1), &amp;amp;err);
+
+return 0;
+}
+
+/* Note: original code is ata_sff_drain_fifo */
+static void ep93xx_pata_drain_fifo(struct ata_queued_cmd *qc)
+{
+int count;
+struct ata_port *ap;
+struct ep93xx_pata_data *drv_data;
+
+/* We only need to flush incoming data when a command was running */
+if (qc == NULL || qc-&amp;gt;dma_dir == DMA_TO_DEVICE)
+return;
+
+ap = qc-&amp;gt;ap;
+drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+/* Drain up to 64K of data before we give up this recovery method */
+for (count = 0; (ap-&amp;gt;ops-&amp;gt;sff_check_status(ap) &amp;amp; ATA_DRQ)
+     &amp;amp;&amp;amp; count &amp;lt; 65536; count += 2)
+ep93xx_pata_read_reg(drv_data, IDECTRL_ADDR_DATA);
+
+/* Can become DEBUG later */
+if (count)
+ata_port_printk(ap, KERN_DEBUG,
+"drained %d bytes to clear DRQ.\n", count);
+
+}
+
+static int ep93xx_pata_port_start(struct ata_port *ap)
+{
+struct ep93xx_pata_data *drv_data = ap-&amp;gt;host-&amp;gt;private_data;
+
+/*
+ * Set timings to safe values at startup (= number of ns from ATA
+ * specification), we'll switch to properly calculated values later.
+ */
+drv_data-&amp;gt;t = *ata_timing_find_mode(XFER_PIO_0);
+return 0;
+}
+
+static struct scsi_host_template ep93xx_pata_sht = {
+ATA_BASE_SHT(DRV_NAME),
+/* ep93xx dma implementation limit */
+.sg_tablesize= 32,
+/* ep93xx dma can't transfer 65536 bytes at once */
+.dma_boundary= 0x7fff,
+};
+
+static struct ata_port_operations ep93xx_pata_port_ops = {
+.inherits= &amp;amp;ata_bmdma_port_ops,
+
+.qc_prep= ata_noop_qc_prep,
+
+.softreset= ep93xx_pata_softreset,
+.hardreset= ATA_OP_NULL,
+
+.sff_dev_select= ep93xx_pata_dev_select,
+.sff_set_devctl= ep93xx_pata_set_devctl,
+.sff_check_status= ep93xx_pata_check_status,
+.sff_check_altstatus= ep93xx_pata_check_altstatus,
+.sff_tf_load= ep93xx_pata_tf_load,
+.sff_tf_read= ep93xx_pata_tf_read,
+.sff_exec_command= ep93xx_pata_exec_command,
+.sff_data_xfer= ep93xx_pata_data_xfer,
+.sff_drain_fifo= ep93xx_pata_drain_fifo,
+.sff_irq_clear= ATA_OP_NULL,
+
+.set_piomode= ep93xx_pata_set_piomode,
+
+.bmdma_setup= ep93xx_pata_dma_setup,
+.bmdma_start= ep93xx_pata_dma_start,
+.bmdma_stop= ep93xx_pata_dma_stop,
+.bmdma_status= ep93xx_pata_dma_status,
+
+.cable_detect= ata_cable_unknown,
+.port_start= ep93xx_pata_port_start,
+};
+
+static int __devinit ep93xx_pata_probe(struct platform_device *pdev)
+{
+struct ep93xx_pata_data *drv_data;
+struct ata_host *host;
+struct ata_port *ap;
+unsigned int irq;
+struct resource *mem_res;
+void __iomem *ide_base;
+int err;
+
+err = ep93xx_ide_acquire_gpio(pdev);
+if (err)
+return err;
+
+/* INT[3] (IRQ_EP93XX_EXT3) line connected as pull down */
+irq = platform_get_irq(pdev, 0);
+if (irq &amp;lt; 0) {
+err = -ENXIO;
+goto err_rel_gpio;
+}
+
+mem_res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+if (!mem_res) {
+err = -ENXIO;
+goto err_rel_gpio;
+}
+
+ide_base = devm_request_and_ioremap(&amp;amp;pdev-&amp;gt;dev, mem_res);
+if (!ide_base) {
+err = -ENXIO;
+goto err_rel_gpio;
+}
+
+drv_data = devm_kzalloc(&amp;amp;pdev-&amp;gt;dev, sizeof(*drv_data), GFP_KERNEL);
+if (!drv_data) {
+err = -ENXIO;
+goto err_rel_gpio;
+}
+
+platform_set_drvdata(pdev, drv_data);
+drv_data-&amp;gt;pdev = pdev;
+drv_data-&amp;gt;ide_base = ide_base;
+drv_data-&amp;gt;udma_in_phys = mem_res-&amp;gt;start + IDEUDMADATAIN;
+drv_data-&amp;gt;udma_out_phys = mem_res-&amp;gt;start + IDEUDMADATAOUT;
+ep93xx_pata_dma_init(drv_data);
+
+/* allocate host */
+host = ata_host_alloc(&amp;amp;pdev-&amp;gt;dev, 1);
+if (!host) {
+err = -ENXIO;
+goto err_rel_dma;
+}
+
+ep93xx_pata_clear_regs(ide_base);
+
+host-&amp;gt;private_data = drv_data;
+
+ap = host-&amp;gt;ports[0];
+ap-&amp;gt;dev = &amp;amp;pdev-&amp;gt;dev;
+ap-&amp;gt;ops = &amp;amp;ep93xx_pata_port_ops;
+ap-&amp;gt;flags |= ATA_FLAG_SLAVE_POSS;
+ap-&amp;gt;pio_mask = ATA_PIO4;
+
+/*
+ * Maximum UDMA modes:
+ * EP931x rev.E0 - UDMA2
+ * EP931x rev.E1 - UDMA3
+ * EP931x rev.E2 - UDMA4
+ *
+ * MWDMA support was removed from EP931x rev.E2,
+ * so this driver supports only UDMA modes.
+ */
+if (drv_data-&amp;gt;dma_rx_channel &amp;amp;&amp;amp; drv_data-&amp;gt;dma_tx_channel) {
+int chip_rev = ep93xx_chip_revision();
+
+if (chip_rev == EP93XX_CHIP_REV_E1)
+ap-&amp;gt;udma_mask = ATA_UDMA3;
+else if (chip_rev == EP93XX_CHIP_REV_E2)
+ap-&amp;gt;udma_mask = ATA_UDMA4;
+else
+ap-&amp;gt;udma_mask = ATA_UDMA2;
+}
+
+/* defaults, pio 0 */
+ep93xx_pata_enable_pio(ide_base, 0);
+
+dev_info(&amp;amp;pdev-&amp;gt;dev, "version " DRV_VERSION "\n");
+
+/* activate host */
+err = ata_host_activate(host, irq, ata_bmdma_interrupt, 0,
+&amp;amp;ep93xx_pata_sht);
+if (err == 0)
+return 0;
+
+err_rel_dma:
+ep93xx_pata_release_dma(drv_data);
+err_rel_gpio:
+ep93xx_ide_release_gpio(pdev);
+return err;
+}
+
+static int __devexit ep93xx_pata_remove(struct platform_device *pdev)
+{
+struct ata_host *host = platform_get_drvdata(pdev);
+struct ep93xx_pata_data *drv_data = host-&amp;gt;private_data;
+
+ata_host_detach(host);
+ep93xx_pata_release_dma(drv_data);
+ep93xx_pata_clear_regs(drv_data-&amp;gt;ide_base);
+ep93xx_ide_release_gpio(pdev);
+return 0;
+}
+
+static struct platform_driver ep93xx_pata_platform_driver = {
+.driver = {
+.name = DRV_NAME,
+.owner = THIS_MODULE,
+},
+.probe = ep93xx_pata_probe,
+.remove = __devexit_p(ep93xx_pata_remove),
+};
+
+module_platform_driver(ep93xx_pata_platform_driver);
+
+MODULE_AUTHOR("Alessandro Zummo, Lennert Buytenhek, Joao Ramos, "
+"Bartlomiej Zolnierkiewicz, Rafal Prylowski");
+MODULE_DESCRIPTION("low-level driver for cirrus ep93xx IDE controller");
+MODULE_LICENSE("GPL");
+MODULE_VERSION(DRV_VERSION);
+MODULE_ALIAS("platform:pata_ep93xx");
diff --git a/include/linux/libata.h b/include/linux/libata.h
index e926df7..6e887c7 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -247,6 +247,7 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; enum {
 ATA_HOST_SIMPLEX= (1 &amp;lt;&amp;lt; 0),/* Host is simplex, one DMA channel per host only */
 ATA_HOST_STARTED= (1 &amp;lt;&amp;lt; 1),/* Host started */
 ATA_HOST_PARALLEL_SCAN= (1 &amp;lt;&amp;lt; 2),/* Ports on this host can be scanned in parallel */
+ATA_HOST_IGNORE_ATA= (1 &amp;lt;&amp;lt; 3),/* Ignore ATA devices on this host. */
 
 /* bits 24:31 of host-&amp;gt;flags are reserved for LLD specific flags */
 
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo&amp;lt; at &amp;gt;vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

&lt;/pre&gt;</description>
    <dc:creator>Jeff Garzik</dc:creator>
    <dc:date>2012-05-23T19:28:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52164">
    <title>[Training] Here's how to profit $600 a day Recommends Advanced Sports to you</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52164</link>
    <description>&lt;pre&gt;Email        :christian&amp;lt; at &amp;gt;aol.com
Friend Name  :Friend
Friend Email :linux-ide&amp;lt; at &amp;gt;vger.kernel.org
comment      :

Hey,

I've got a treat for you today.

You're about to receive INSTANT
ACCESS to some free training on
how you can profit up to $600 a day

=&amp;gt; http://www.bank-blogging.com/?code=4fbce89b05ddc 


There is no cost. 

Talk Soon,

Christian



=&amp;gt; http://www.bank-blogging.com/?code=4fbce89b05ddc 



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

&lt;/pre&gt;</description>
    <dc:creator>christian&lt; at &gt;aol.com</dc:creator>
    <dc:date>2012-05-23T16:35:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52163">
    <title>Re: [PATCH v3 1/3] PATA host controller driver for ep93xx</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52163</link>
    <description>&lt;pre&gt;
applied



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

&lt;/pre&gt;</description>
    <dc:creator>Jeff Garzik</dc:creator>
    <dc:date>2012-05-22T20:05:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52162">
    <title>Re: [PATCH] ata, Add " 2GB ATA Flash Disk"/"ADMA428M" to DMA blacklist</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52162</link>
    <description>&lt;pre&gt;
applied



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

&lt;/pre&gt;</description>
    <dc:creator>Jeff Garzik</dc:creator>
    <dc:date>2012-05-22T20:04:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52160">
    <title>Re: [PATCH V3 1/3] ata: pata_arasan: Add clk_{un}prepare() support</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52160</link>
    <description>&lt;pre&gt;


these do not apply to upstream, for me...

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

&lt;/pre&gt;</description>
    <dc:creator>Jeff Garzik</dc:creator>
    <dc:date>2012-05-22T20:01:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52159">
    <title>Re: [Bug 11133] PIIX4 DMA timeout issue</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52159</link>
    <description>&lt;pre&gt;Hello.

On 05/22/2012 05:01 PM, bugzilla-daemon&amp;lt; at &amp;gt;bugzilla.kernel.org wrote:


[...]


    Which does not mean errors there should not be fixed.

WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo&amp;lt; at &amp;gt;vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

&lt;/pre&gt;</description>
    <dc:creator>Sergei Shtylyov</dc:creator>
    <dc:date>2012-05-22T15:59:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52158">
    <title>Re:</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52158</link>
    <description>&lt;pre&gt;...Get rich working on-line  
http://www.mfi.es/html/facebook.news.php?irhotmailID=26j8


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

&lt;/pre&gt;</description>
    <dc:creator>skoffman&lt; at &gt;aol.com</dc:creator>
    <dc:date>2012-05-22T14:39:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52157">
    <title>You have been chosen: (Potential Income) Recommends Advanced Sports to you</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52157</link>
    <description>&lt;pre&gt;Email        :christine&amp;lt; at &amp;gt;yahoo.com
Friend Name  :Friend
Friend Email :linux-ide&amp;lt; at &amp;gt;vger.kernel.org
comment      :

You have been picked to be an exclusive online profits case study.

You will be taught personally from a $2,192,289 online marketer.

This is the same EXACT system.


Never before has this been done.


If you want to be one of the lucky 30 students 

of master Jamie.. be one of 30 lucky actual case studies 

right now by signing up here: 


Christine Sarrosa

The sender of this email receives compensation
when products are purchased. Results will widely vary.
This is an advertisement.


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

&lt;/pre&gt;</description>
    <dc:creator>christine&lt; at &gt;yahoo.com</dc:creator>
    <dc:date>2012-05-22T14:08:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.linux.ide/52156">
    <title>[Bug 11133] PIIX4 DMA timeout issue</title>
    <link>http://permalink.gmane.org/gmane.linux.ide/52156</link>
    <description>&lt;pre&gt;https://bugzilla.kernel.org/show_bug.cgi?id=11133


Alan &amp;lt;alan&amp;lt; at &amp;gt;lxorguk.ukuu.org.uk&amp;gt; changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WILL_NOT_FIX




&lt;/pre&gt;</description>
    <dc:creator>bugzilla-daemon&lt; at &gt;bugzilla.kernel.org</dc:creator>
    <dc:date>2012-05-22T13:00:58</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.linux.ide">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.linux.ide</link>
  </textinput>
</rdf:RDF>

