<?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://comments.gmane.org/gmane.linux.ide/52182"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52181"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52179"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52178"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52177"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52172"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52171"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52166"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52165"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52164"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52157"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52154"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52153"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52152"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52151"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52134"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52131"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52130"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52129"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.linux.ide/52128"/>
      </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://comments.gmane.org/gmane.linux.ide/52182">
    <title>The $1,549 per day ZERO traffic system (UPDATE) Recommends Advanced Sports to you</title>
    <link>http://comments.gmane.org/gmane.linux.ide/52182</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-26T01:16:58</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.ide/52181">
    <title>(unknown)</title>
    <link>http://comments.gmane.org/gmane.linux.ide/52181</link>
    <description>&lt;pre&gt;
 i am robothroli, Purchase manager from roli Merchant Ltd. We are
Import/export Company based in taiwan. We are interested in purchasing
your product and I would like to make an inquiry. Please inform me on:

Sample availability and price
Minimum order quantity
FOB Prices

Sincerely
Purchase Manager
robothroli



--
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>robothroli company</dc:creator>
    <dc:date>2012-05-25T13:45:54</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.ide/52179">
    <title>Friend,Could you "build-up" your own energy? Recommends Advanced Sports to you</title>
    <link>http://comments.gmane.org/gmane.linux.ide/52179</link>
    <description>&lt;pre&gt;Email        :danniel&amp;lt; at &amp;gt;gmail.com
Friend Name  :Friend
Friend Email :linux-ide&amp;lt; at &amp;gt;vger.kernel.org
comment      :


Hi Friend,

I'm sure you already found out the rumours that some
people make their own energy.
Some of them slash the energy bill by half.
Some of them cut the bill completely.
Some even make the electric company pay them(!).
That's why I was ecstatic when I found this website:

http://www.greenhomemade.com/?code=4fbd5d3bbfcd4 

I read every single word, and boy... this stuff really
got me all curious. It seems it's actually very easy 
and cheap to build and use a renewable energy system.

Anyway, I went ahead and bought their package.
I couldn't resisted... It sounds too good to be true,
yet if this turns out to be "real", then this is BIG.

I'm so enthusiasted about this, that I thought to just
send you a link so you get to see it for yourself:

http://www.greenhomemade.com/?code=4fbd5d3bbfcd4 

To a better life,

Danniel Guedotte

PS: Friend, they give a 60-day guarantee. 
You risk nothing. 
But if you snooze, you lose...

http://www.greenhomemade.com/?code=4fbd5d3bbfcd4 




--
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>danniel&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2012-05-25T18:56:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.ide/52178">
    <title>Friend,Could you "build-up" your own energy? Recommends Advanced Sports to you</title>
    <link>http://comments.gmane.org/gmane.linux.ide/52178</link>
    <description>&lt;pre&gt;Email        :danniel&amp;lt; at &amp;gt;gmail.com
Friend Name  :Friend
Friend Email :linux-ide&amp;lt; at &amp;gt;vger.kernel.org
comment      :


Hi Friend,

I'm sure you already found out the rumours that some
people make their own energy.
Some of them slash the energy bill by half.
Some of them cut the bill completely.
Some even make the electric company pay them(!).
That's why I was ecstatic when I found this website:

http://www.greenhomemade.com/?code=4fbd5d3bbfcd4 

I read every single word, and boy... this stuff really
got me all curious. It seems it's actually very easy 
and cheap to build and use a renewable energy system.

Anyway, I went ahead and bought their package.
I couldn't resisted... It sounds too good to be true,
yet if this turns out to be "real", then this is BIG.

I'm so enthusiasted about this, that I thought to just
send you a link so you get to see it for yourself:

http://www.greenhomemade.com/?code=4fbd5d3bbfcd4 

To a better life,

Danniel Guedotte

PS: Friend, they give a 60-day guarantee. 
You risk nothing. 
But if you snooze, you lose...

http://www.greenhomemade.com/?code=4fbd5d3bbfcd4 




--
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>danniel&lt; at &gt;gmail.com</dc:creator>
    <dc:date>2012-05-25T15:37:07</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.ide/52177">
    <title>The $1,549 per day ZERO traffic system (UPDATE) Recommends Advanced Sports to you</title>
    <link>http://comments.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://comments.gmane.org/gmane.linux.ide/52172">
    <title>Activate your free commission shop now Recommends Advanced Sports to you</title>
    <link>http://comments.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://comments.gmane.org/gmane.linux.ide/52171">
    <title>Activate your free commission shop now Recommends Advanced Sports to you</title>
    <link>http://comments.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://comments.gmane.org/gmane.linux.ide/52166">
    <title>[Training] Here's how to profit $600 a day Recommends Advanced Sports to you</title>
    <link>http://comments.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://comments.gmane.org/gmane.linux.ide/52165">
    <title>[git patches] libata updates for 3.5</title>
    <link>http://comments.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://comments.gmane.org/gmane.linux.ide/52164">
    <title>[Training] Here's how to profit $600 a day Recommends Advanced Sports to you</title>
    <link>http://comments.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://comments.gmane.org/gmane.linux.ide/52157">
    <title>You have been chosen: (Potential Income) Recommends Advanced Sports to you</title>
    <link>http://comments.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://comments.gmane.org/gmane.linux.ide/52154">
    <title>SHOCKING SYSTEM.(and one weird rule) Recommends Advanced Sports to you</title>
    <link>http://comments.gmane.org/gmane.linux.ide/52154</link>
    <description>&lt;pre&gt;Email        :ronrajan&amp;lt; at &amp;gt;yahoo.com
Friend Name  :Friend
Friend Email :linux-ide&amp;lt; at &amp;gt;vger.kernel.org
comment      :


Hi Friend,

Here's a controversial new system revealing

affiliate marketing's number one rule...

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

During this revealing presentation, this crazy
underground affiliate reveals the BRUTAL TRUTH why
most beginner marketers DON'T make even one cent
online.

Ya, you might say it's a bit controversial...

.BUT if you want to discover the truth about
driving insane amounts of traffic the way the top
super affiliates do it, and find out the number
one rule that's been kept from you all along, then
you need to check out what this guy has to say:

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

This WON'T be available forever so my best advice
is to go check it out right now.

Ron Rajan

P.S. If you've been looking for a STEP BY STEP
system for getting crazy amounts of laser targeted
traffic, then you'll certainly want to check this
out.

Just make sure you pay close attention to the
weird rule he outlines... it's different than most
have been suggesting, but it works like crazy:

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













--
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>ronrajan&lt; at &gt;yahoo.com</dc:creator>
    <dc:date>2012-05-21T19:18:31</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.ide/52153">
    <title>Hi Friend Your $997 Website Is Ready. Recommends Advanced Sports to you</title>
    <link>http://comments.gmane.org/gmane.linux.ide/52153</link>
    <description>&lt;pre&gt;Email        :janderson&amp;lt; at &amp;gt;yahoo.com
Friend Name  :Friend
Friend Email :linux-ide&amp;lt; at &amp;gt;vger.kernel.org
comment      :

Hi Friend,


Your $997 website is waiting for you!

----&amp;gt; http://bit.ly/KWaw4z

Your website is paid for...

Your hosting is paid for...

It's ready to take orders!

All you need to do is go here to get it!

----&amp;gt; http://bit.ly/KWaw4z

Talk soon

John Anderson



--
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>janderson&lt; at &gt;yahoo.com</dc:creator>
    <dc:date>2012-05-21T18:16:53</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.ide/52152">
    <title>For your information</title>
    <link>http://comments.gmane.org/gmane.linux.ide/52152</link>
    <description>&lt;pre&gt;Good day, 

My name is Eric Chua, Director at SWIFT Securities Markets, Asia Pacific China. This letter is written to you regarding a fixed investment account under our foreign investment policy.

Being mandatory that holder/beneficiary is periodically notified concerning financial status of account(s), I am writing to this effect since you share the same last name as this investment account. Upon your earliest reply, detail and necessary information will be made available for your reference.

Kind regards,
Eric Chua
SWIFT Securities Markets, 
Asia Pacific China
--
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>Eric Chua</dc:creator>
    <dc:date>2012-05-21T13:23:16</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.ide/52151">
    <title>SHOCKING SYSTEM.(and one weird rule) Recommends Advanced Sports to you</title>
    <link>http://comments.gmane.org/gmane.linux.ide/52151</link>
    <description>&lt;pre&gt;Email        :ronrajan&amp;lt; at &amp;gt;yahoo.com
Friend Name  :Friend
Friend Email :linux-ide&amp;lt; at &amp;gt;vger.kernel.org
comment      :


Hi Friend,

Here's a controversial new system revealing

affiliate marketing's number one rule...

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

During this revealing presentation, this crazy
underground affiliate reveals the BRUTAL TRUTH why
most beginner marketers DON'T make even one cent
online.

Ya, you might say it's a bit controversial...

.BUT if you want to discover the truth about
driving insane amounts of traffic the way the top
super affiliates do it, and find out the number
one rule that's been kept from you all along, then
you need to check out what this guy has to say:

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

This WON'T be available forever so my best advice
is to go check it out right now.

Ron Rajan

P.S. If you've been looking for a STEP BY STEP
system for getting crazy amounts of laser targeted
traffic, then you'll certainly want to check this
out.

Just make sure you pay close attention to the
weird rule he outlines... it's different than most
have been suggesting, but it works like crazy:

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













--
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>ronrajan&lt; at &gt;yahoo.com</dc:creator>
    <dc:date>2012-05-21T07:10:43</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.ide/52134">
    <title>CFA 4.0 patch</title>
    <link>http://comments.gmane.org/gmane.linux.ide/52134</link>
    <description>&lt;pre&gt;This is a missing part of the CFA 4.0 and above support.

6.2.1.6.1 Word 0: General Configuration
This field indicates the general characteristics of the device.
When Word 0 of the Identify drive information is 848Ah then the device
is a CompactFlash Storage Card and complies with the CFA specification
and CFA command set. It is recommended that PC Card modes of operation
report only the 848Ah value as they are always intended as removable
devices.

Bits 15-0: CF Standard Configuration Value
Word 0 is 848Ah. This is the recommended value of Word 0.
Some operating systems require Bit 6 of Word 0 to be set to 1
(Non-removable device) to use the card as the root storage device. The
Card must be the root storage device when a host completely replaces
conventional disk storage with a CompactFlash Card in True IDE mode. To
support this requirement and provide capability for any future removable
media Cards, alternate handling of Word 0 is permitted.

Bits 15-0: CF Preferred Alternate Configuration Values

044Ah: This is the alternate value of Word 0 turns on ATA device and
turns off Removable Media and Removable Device while preserving all
Retired bits in the word.

0040h: This is the alternate value of Word 0 turns on ATA device and
turns off Removable Media and Removable Device while zeroing all
Retired bits in the word

Cheers,
Andre
--------------------
The Linux X-ATA/SATA guy


--- linux-2.6.32.orig/include/linux/ata.hMon May 14 15:48:24 2012
+++ linux-2.6.32/include/linux/ata.hMon May 14 15:51:42 2012
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -819,6 +819,10 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
 {
 if (id[ATA_ID_CONFIG] == 0x848A)/* Traditional CF */
 return 1;
+if (id[ATA_ID_CONFIG] == 0x044A)/* Alternative CF w/
removable turned off, preserving retired bits */
+return 1;
+if (id[ATA_ID_CONFIG] == 0x0040)/* Alternative CF w/
removable turned off, zeroing retired bits*/
+return 1;
 /*
  * CF specs don't require specific value in the word 0 anymore
and yet
  * they forbid to report the ATA version in the word 80 and
require the
--
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>Andre Hedrick (anhedric</dc:creator>
    <dc:date>2012-05-15T04:57:37</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.ide/52131">
    <title>[RFC]pass pm related information from ata to scsi</title>
    <link>http://comments.gmane.org/gmane.linux.ide/52131</link>
    <description>&lt;pre&gt;Hi,

ATA ODD has a new feature called device attention, which means it can
notify sata host that it needs power when in powered off state.

In libata, we can set a flag(ATA_DFLAG_DA) to represent this when
identifying the ata device. And when we are going to create the scsi
device(in ata_scsi_scan_host by __scsi_add_device), I hope the scsi
driver(sr) knows that this ODD supports device attention in its probe
function(sr_probe).

I didn't find a proper way to do this, any suggestions?
Thanks.

--
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>Aaron Lu</dc:creator>
    <dc:date>2012-05-14T10:02:07</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.ide/52130">
    <title>Dedicated server rental</title>
    <link>http://comments.gmane.org/gmane.linux.ide/52130</link>
    <description>&lt;pre&gt;Dear Sir/Madam,

Please see below our Server Rental Package,

HKD1980/month + one-time setup fee HKD2000

Dell? PowerEdge? Enterprise Rack Mount Server
-          Intel(R) Xeon(R) E3-1220 Processor (3.10GHz, 8M Cache, Turbo, 4C/4T, 80W)
-          4GB RAM, 1x4GB, 1333MHz, DDR-3, Single Ranked UDIMMs
-          500GB, 3.5", SATA II x 1 Enterprise Hard Disk
-          Remote KVM (iDRAC6 Enterprise)
-          8x SATA slim DVD-ROM Drive 
-          Dell OpenManage
-          Broadcom 5716 dual-port Gigabit Ethernet without TOE enabled
-          Dell BMC Info Mod

Software Specification
-     CentOS 5/6 Linux Operating System


Data Center Facilities
-          1Gbps Share Internet Connectivity with 10/BASE-T
-          One IP Addresses Allocation
-          Un-interruptible Power Supply (UPS) backed up by private diesel generator
-          FM200 gas¡Vbased fire suppression system
-          24x7 CRAC Air Conditioning and Humidity Control
-          24x7 Security Control

Should you have any query, please feel free to contact me. Thanks.

Best,
Eric Chan
Senior Sales Executive

If you do not wish to further receive this event message, meail subscriber&amp;lt; at &amp;gt;dedicatedserver.com.hk to unsubscribe this message.


--
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>eric&lt; at &gt;cloudluca.com</dc:creator>
    <dc:date>2012-05-14T04:14:05</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.ide/52129">
    <title>Detection failed after suspend and resume</title>
    <link>http://comments.gmane.org/gmane.linux.ide/52129</link>
    <description>&lt;pre&gt;Hello, 

I am using ahci_platform for SSD on ARM based SOC.

Device works fine with normal operations.
But device detection fails after suspend and resume.
I also see failure message while suspend.
 
Below is the log while going to suspend.
 
[   20.106194] Suspending console(s) (use no_console_suspend to debug)
[   20.130311] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[   20.131393] sd 0:0:0:0: [sda] Stopping disk
[   20.180147] ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x10200 action 0xe frozen
[   20.180153] ata1.00: irq_stat 0x00400000, PHY RDY changed
[   20.180166] ata1.00: cmd e0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
[   20.180170]          res 50/00:00:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
[   20.180182] ata1: hard resetting link
[   20.995041] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[   20.995736] ata1.00: configured for UDMA/133
[   20.995745] ata1.00: device reported invalid CHS sector 0
[   20.995763] ata1: EH complete
[   20.995788] sd 0:0:0:0: [sda] START_STOP FAILED
[   20.995793] sd 0:0:0:0: [sda]  Result: hostbyte=0x00 driverbyte=0x08
[   20.995801] sd 0:0:0:0: [sda]  Sense Key : 0xb [current] [descriptor]
[   20.995811] sd 0:0:0:0: [sda]  ASC=0x0 ASCQ=0x0
[   20.995827] pm_op(): scsi_bus_suspend+0x0/0x18 returns 134217730

Below is the log while resume.

[   22.235070] ata1: SATA link down (SStatus 0 SControl 300)
[   27.080074] exnos_usb_drd_switch_worker:device not attached by host
[   27.560070] ata1: SATA link down (SStatus 0 SControl 300)
[   27.560086] ata1: limiting SATA link speed to 1.5 Gbps
[   32.885059] ata1: SATA link down (SStatus 0 SControl 310)
[   32.885075] ata1.00: disabled
[   32.885145] ata1.00: detaching (SCSI 0:0:0:0)
[   32.885203] sd 0:0:0:0: [sda] Starting disk
[   32.885306] sd 0:0:0:0: [sda] START_STOP FAILED
[   32.885316] sd 0:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
[   32.885339] pm_op(): scsi_bus_resume_common+0x0/0x58 returns 262144
[   32.885351] PM: Device 0:0:0:0 failed to resume async: error 262144

I am using all the libahci patches till 3.3 stable.

Any suggestions?

WBRs,
srikanth.

--
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>Srikanth TS</dc:creator>
    <dc:date>2012-05-14T04:06:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.ide/52128">
    <title>haalloo,</title>
    <link>http://comments.gmane.org/gmane.linux.ide/52128</link>
    <description>&lt;pre&gt;haalloo,
how are you doing,i hope you are fine,my name is miss abi okom i got your
contact and want us to be a good friend,
please try and write back to me so that i will give you my pictures and tell
you more about 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>abi</dc:creator>
    <dc:date>2012-05-12T17:05:10</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.linux.ide/52110">
    <title>[PATCH] ata_generic: Skip is_intel_ider() check when ata_generic=1 is set</title>
    <link>http://comments.gmane.org/gmane.linux.ide/52110</link>
    <description>&lt;pre&gt;From: Andi Kleen &amp;lt;ak&amp;lt; at &amp;gt;linux.intel.com&amp;gt;

When ata_generic_ide=1 is set don't do the is_intel_ider() magic
check. We found at least one box who needed that.

Cc: alan&amp;lt; at &amp;gt;linux.intel.com
Signed-off-by: Andi Kleen &amp;lt;ak&amp;lt; at &amp;gt;linux.intel.com&amp;gt;
---
 drivers/ata/ata_generic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;
 
&lt;/pre&gt;</description>
    <dc:creator>Andi Kleen</dc:creator>
    <dc:date>2012-05-11T16:33:23</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>

