From: Graeme Russ <graeme.russ@gmail.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>, linux-ide@vger.kernel.org
Subject: Re: [PATCH] Add hook for custom xfer function in PATA Platform driver
Date: Thu, 13 May 2010 14:09:29 +1000 [thread overview]
Message-ID: <4BEB7B79.9050808@gmail.com> (raw)
In-Reply-To: <20100513001315.149bbb66@lxorguk.ukuu.org.uk>
On 13/05/10 09:13, Alan Cox wrote:
>>> I don't think ide-platform matters in this case.
>>
>> You've just supported a patch restoring feature parity between
>> pata_platform and ide-platfrom WRT IRQ flags. ;-)
>
> Because it was trivial to do.
>
>> Yes, but this needs to be *done* too, preferrably by the author of
>> the original patch and simultaneously with it. We can't accept a single
>> patch that only touches pata_platform.
I'm happy to expand the patch, but why would we implement such a thing in a
legacy driver. Odds are that nobody would ever use it. If I had developed
my code prior to pata_platform and used the old IDE driver instead I would
of patched it then (and it may have been included in pata_platform). If
anyone requires this hook from today on, odds on it is for a new system and
the old IDE driver will not even be considered for the task. Besides, by
only implementing these features in the latest (supported) drivers, it will
encourage people to move away from the legacy drivers which is a Good Thing(tm)
>
> Sure - or support it in both. I've no problem with both supporting that
> function, just with legacy code blocking progress.
>
>> Well, with 8250 we still don't allow for overriding things at the
>> board level, via the platform data callbacks.
>
> Oh yes we do. Platform specific drivers can directly override the access
> operators and they do some truely horrible platform specific stuff in the
> overridden operators.
>
> And the great thing - nobody else has to know what the board vendors have
> been on..
>
Exactly - This is good driver design. Implement the fundamentals for the
majority of use-cases and provide overrides to allow individual
implementations which can do anything weird and wonderful without polluting
the code space of everyone else.
Regards,
Graeme
next prev parent reply other threads:[~2010-05-13 4:09 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-09 5:21 [PATCH] Add hook for custom xfer function in PATA Platform driver Graeme Russ
[not found] ` <4BE6910D.9070504@ru.mvista.com>
2010-05-09 11:29 ` Graeme Russ
2010-05-09 13:36 ` Sergei Shtylyov
2010-05-10 0:10 ` Graeme Russ
2010-05-10 9:51 ` Sergei Shtylyov
2010-05-10 10:03 ` Sergei Shtylyov
2010-05-11 0:25 ` Robert Hancock
2010-05-12 20:58 ` Sergei Shtylyov
2010-05-13 4:00 ` Graeme Russ
2010-05-13 21:02 ` Sergei Shtylyov
2010-05-14 4:04 ` Graeme Russ
2010-05-26 14:05 ` Sergei Shtylyov
2010-06-09 12:36 ` Graeme Russ
2010-05-11 9:55 ` Alan Cox
2010-05-12 20:30 ` Sergei Shtylyov
2010-05-12 23:13 ` Alan Cox
2010-05-13 4:09 ` Graeme Russ [this message]
2010-05-13 21:22 ` Sergei Shtylyov
2010-05-13 22:30 ` Alan Cox
2010-05-14 4:37 ` Graeme Russ
2010-05-26 14:26 ` 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=4BEB7B79.9050808@gmail.com \
--to=graeme.russ@gmail.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-ide@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 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.