From: "Shane McDonald" <mcdonald.shane@gmail.com>
To: "Sergei Shtylyov" <sshtylyov@ru.mvista.com>
Cc: alan@lxorguk.ukuu.org.uk, bzolnier@gmail.com,
linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4] Resurrect IT8172 IDE controller driver
Date: Wed, 31 Dec 2008 20:35:18 -0600 [thread overview]
Message-ID: <b2b2f2320812311835t36b67cbdlba1fd6e537158c24@mail.gmail.com> (raw)
In-Reply-To: <495B6080.7020802@ru.mvista.com>
Sergei,
On Wed, Dec 31, 2008 at 6:07 AM, Sergei Shtylyov
<sshtylyov@ru.mvista.com> wrote:
> Shane McDonald wrote:
>> Signed-off-by: Shane McDonald <mcdonald.shane@gmail.com>
> Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Please forgive my ignorance -- this is my first non-trivial patch...
I have made a new patch incorporating your suggestions as described below.
Do I include your Acked-by line in my re-spun patch, or do I need you
to Ack it again?
I will post the new patch when I receive guidance on this.
>> diff -uprN a/drivers/ide/it8172.c b/drivers/ide/it8172.c
>> --- a/drivers/ide/it8172.c 1969-12-31 18:00:00.000000000 -0600
>> +++ b/drivers/ide/it8172.c 2008-12-30 20:55:29.000000000 -0600
>> + { 7, 4 },
>> + { 3, 3 },
>> + { 2, 2 },
>> + { 1, 2 }, };
>> + /*
>> + * The highest value of DIOR/DIOW pulse width and recovery time
>> + * that can be set in the IT8172 is 8 PCI clock cycles. As a
>> result,
>> + * it cannot be configured for PIO mode 0. This table sets these
>> + * parameters to the maximum supported by the IT8172.
>> + */
>
> This comment seems somewhat mispalced...
I will move the comment before the timings array, where it belongs.
>> + drive_timing &= drive->dn ? 0x00003f00 : 0x000fc000;
>> + drive_timing |= ((timings[pio][0] << 11) | (timings[pio][1] << 8))
>> + << (drive->dn * 6);
>
> This can be somewhat shortened:
>
> drive_timing |= ((timings[pio][0] << 3) | timings[pio][1]) <<
> (drive->dn * 6 + 8);
>
>
> Could've be shortened even more if timings[] was single-dimensional...
Good point! I have made the array one-dimensional and shortened the
statement accordingly.
> MBR, Sergei
Shane
next prev parent reply other threads:[~2009-01-01 2:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-31 3:22 Shane McDonald
2008-12-31 12:07 ` Sergei Shtylyov
2009-01-01 2:35 ` Shane McDonald [this message]
2009-01-02 14:12 ` 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=b2b2f2320812311835t36b67cbdlba1fd6e537158c24@mail.gmail.com \
--to=mcdonald.shane@gmail.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sshtylyov@ru.mvista.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®