From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: Manuel Lauss <manuel.lauss@gmail.com>,
Linux-MIPS <linux-mips@linux-mips.org>
Subject: Re: [PATCH 3/3] MIPS: Alchemy: pata_platform for DB1200
Date: Wed, 26 Mar 2014 15:52:43 +0400 [thread overview]
Message-ID: <5332BF8B.3040006@cogentembedded.com> (raw)
In-Reply-To: <1395826909-14772-3-git-send-email-manuel.lauss@gmail.com>
Hello.
On 26-03-2014 13:41, Manuel Lauss wrote:
> The au1xxx-ide driver isn't any faster than pata_platform since it
> spends a lot of time busy waiting for DMA to finish; faster PIO/DMA
> modes only work on the db1200 with a certain cpu speed, UDMA is broken
> and finally the old IDE layer is on death row, so time to switch to
> the winning side.
> Signed-off-by: Manuel Lauss <manuel.lauss@gmail.com>
> ---
> arch/mips/alchemy/devboards/db1200.c | 18 +++++++++++++++---
> arch/mips/configs/db1xxx_defconfig | 3 ---
> 2 files changed, 15 insertions(+), 6 deletions(-)
> diff --git a/arch/mips/alchemy/devboards/db1200.c b/arch/mips/alchemy/devboards/db1200.c
> index 4bcf2f4..40fa3a6 100644
> --- a/arch/mips/alchemy/devboards/db1200.c
> +++ b/arch/mips/alchemy/devboards/db1200.c
[...]
> @@ -330,6 +331,11 @@ static struct platform_device db1200_eth_dev = {
>
> /**********************************************************************/
>
> +static struct pata_platform_info db1200_ide_info = {
> + .ioport_shift = DB1200_IDE_REG_SHIFT,
> +};
> +
> +#define IDE_ALT_START (14 << DB1200_IDE_REG_SHIFT)
> static struct resource db1200_ide_res[] = {
> [0] = {
> .start = DB1200_IDE_PHYS_ADDR,
> @@ -337,25 +343,31 @@ static struct resource db1200_ide_res[] = {
> .flags = IORESOURCE_MEM,
> },
> [1] = {
> + .start = DB1200_IDE_PHYS_ADDR + IDE_ALT_START,
> + .end = DB1200_IDE_PHYS_ADDR + DB1200_IDE_PHYS_LEN - 1,
This now intersects with resource 0.
> + .flags = IORESOURCE_MEM,
> + },
> + [2] = {
> .start = DB1200_IDE_INT,
> .end = DB1200_IDE_INT,
> .flags = IORESOURCE_IRQ,
> },
> - [2] = {
> +/* [3] = {
> .start = AU1200_DSCR_CMD0_DMA_REQ1,
> .end = AU1200_DSCR_CMD0_DMA_REQ1,
> .flags = IORESOURCE_DMA,
> - },
> + },*/
> };
Commented out code is not allowed, just remove it please.
WBR, Sergei
prev parent reply other threads:[~2014-03-26 11:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-26 9:41 [PATCH 1/3] MIPS: Alchemy: fix default Alchemy board Manuel Lauss
2014-03-26 9:41 ` [PATCH 2/3] MIPS: Alchemy: fold mach-db1xxx/db1x00 headers into board code Manuel Lauss
2014-03-26 9:41 ` [PATCH 3/3] MIPS: Alchemy: pata_platform for DB1200 Manuel Lauss
2014-03-26 11:52 ` Sergei Shtylyov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5332BF8B.3040006@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=linux-mips@linux-mips.org \
--cc=manuel.lauss@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.