From: Sergei Shtylyov <sshtylyov@mvista.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Jeff Garzik <jgarzik@pobox.com>,
linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] pata_via: add via_fixup()
Date: Thu, 13 Oct 2011 19:09:32 +0400 [thread overview]
Message-ID: <4E96FF2C.5070101@mvista.com> (raw)
In-Reply-To: <201110131454.48888.bzolnier@gmail.com>
Hello.
On 10/13/2011 04:54 PM, Bartlomiej Zolnierkiewicz wrote:
>> On 13-10-2011 15:10, Bartlomiej Zolnierkiewicz wrote:
>>> From: Bartlomiej Zolnierkiewicz<bzolnier@gmail.com>
>>> Subject: [PATCH] pata_via: add via_fixup()
>>> Factor out common code from via_[re]init_one() to via_fixup().
>>> Signed-off-by: Bartlomiej Zolnierkiewicz<bzolnier@gmail.com>
>>> ---
>>> earlier references:
>>> https://lkml.org/lkml/2009/11/25/381
>>> drivers/ata/pata_via.c | 49 +++++++++++++++++++++++--------------------------
>>> 1 file changed, 23 insertions(+), 26 deletions(-)
>>> Index: b/drivers/ata/pata_via.c
>>> ===================================================================
>>> --- a/drivers/ata/pata_via.c
>>> +++ b/drivers/ata/pata_via.c
>>> @@ -491,6 +491,27 @@ static void via_config_fifo(struct pci_d
>>> }
>>> }
>>>
>>> +static void via_fixup(struct pci_dev *pdev, const struct via_isa_bridge *config)
>>> +{
>>> + u32 timing;
>>> +
>>> + /* Initialise the FIFO for the enabled channels. */
>>> + via_config_fifo(pdev, config->flags);
>>> +
>>> + if (config->udma_mask == ATA_UDMA4) {
>>> + /* The 66 MHz devices require we enable the clock */
>>> + pci_read_config_dword(pdev, 0x50,&timing);
>>> + timing |= 0x80008;
>>> + pci_write_config_dword(pdev, 0x50, timing);
>>> + }
>> Hm, via_init_one() doesn't do this now... but used to do this before your
>> patch:
>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=460f5318460a9a3b2562d8055b9fb1c60b768e1f
>> Was that patch wrong or am I misundertanding?
> It seems that the previous patch was wrong and I haven't noticed it earlier
> because both patches were in my patch queue.
> From: Bartlomiej Zolnierkiewicz<bzolnier@gmail.com>
> Subject: [PATCH v2] pata_via: add via_fixup()
> * Fix via_init_one() to enable clock on 66 MHz devices
> (bug introduced in commit 460f531 "pata_via: store UDMA masks
> in via_isa_bridges table").
> * Factor out common code from via_[re]init_one() to via_fixup().
> Signed-off-by: Bartlomiej Zolnierkiewicz<bzolnier@gmail.com>
OK, but don't you think the fix should be separate from refactor (and be
applied to -stable)?
WBR, Sergei
next prev parent reply other threads:[~2011-10-13 15:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-13 11:10 [PATCH] pata_via: add via_fixup() Bartlomiej Zolnierkiewicz
2011-10-13 12:22 ` Sergei Shtylyov
2011-10-13 12:54 ` Bartlomiej Zolnierkiewicz
2011-10-13 15:09 ` Sergei Shtylyov [this message]
2011-10-13 12:54 ` Alan Cox
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=4E96FF2C.5070101@mvista.com \
--to=sshtylyov@mvista.com \
--cc=bzolnier@gmail.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).