From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: linux-ide@vger.kernel.org,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Paul Mackerras <paulus@samba.org>,
Kyle McMartin <kyle@mcmartin.ca>
Subject: Re: [PATCH 3/6] ide-pmac: PIO fixes
Date: Fri, 13 Jul 2007 20:12:47 +0400 [thread overview]
Message-ID: <4697A47F.8060704@ru.mvista.com> (raw)
In-Reply-To: <200707110204.07540.bzolnier@gmail.com>
Hello.
Bartlomiej Zolnierkiewicz wrote:
> * Add { 0, 0 } entry to {kauai,shasta}_pio_timings[] so kauai_lookup_timing()
> always returns a valid PIO timing (fixes PIO timing not being set for devices
> with minimum PIO cycle <= 120ns).
Ugh... the way those tables are following each other, the driver should be
programming MWDMA2 timings instead. :-/
> * Add setting transfer mode on the device to pmac_ide_set_pio_mode().
> * Fix pmac_ide_set_pio() to always program chipset for given PIO timing instead
> of only when the device we want to program PIO timing for is the currently
> selected one.
Hm, why this was necessary?
AFAIU, pmac_ide_do_setfeature() will cause selectproc() to be called
anyway, via SELECT_DRIVE()...
> * Now that pmac_ide_set_pio() is fixed there is no need to set transfer mode
> on the device and program chipset for PIO in pmac_ide_tune_chipset()
BTW, I'm also not seeing much sense in calling
pmac_ide_do_update_timings() from there as well since pmac_ide_do_setfeature()
is called before that anyway.
> (returning 0 == success is not entirely correct but is OK for now since
> the upper layers are only checking ->speedproc return value for DMA modes).
> This patch should have no effect on the default kernel behavior because
> IDE pmac driver doesn't enable ->autotune (this would also explain why some
> of the above bugs remained unfixed for so long).
> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
MBR, Sergei
next prev parent reply other threads:[~2007-07-13 16:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-11 0:04 [PATCH 3/6] ide-pmac: PIO fixes Bartlomiej Zolnierkiewicz
2007-07-12 19:33 ` Bartlomiej Zolnierkiewicz
2007-07-13 0:52 ` Benjamin Herrenschmidt
2007-07-13 16:12 ` Sergei Shtylyov [this message]
2007-07-13 20:03 ` Bartlomiej Zolnierkiewicz
2007-07-14 16:29 ` Sergei Shtylyov
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=4697A47F.8060704@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=benh@kernel.crashing.org \
--cc=bzolnier@gmail.com \
--cc=kyle@mcmartin.ca \
--cc=linux-ide@vger.kernel.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is 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.