On 27 January 2016 at 14:23, Russell King - ARM Linux
<linux@xxxxxxxxxxxxxxxx> wrote:
On Wed, Jan 27, 2016 at 02:59:14PM +0200, Adrian Hunter wrote:
In my view Ulf needs to explain how the SDHCI library is going to work,
particularly in the absence of new callbacks.
We need to add new callbacks as part of the conversion to a library,
otherwise we're very much into a total rewrite from scratch (which
I think is far too much work, and prone to errors) or a big flag day
to switch everything over (which will require a moritorium on sdhci
patches while the effort to switch everything is ongoing.)
Both of those approaches suffer from one huge drawback: there is no
way to bisect between them to locate the cause of a regression.
I think what needs to happen here is that Ulf needs to leave such
decisions about what is acceptable or unacceptable to those who are
trying to convert sdhci to a library, otherwise the conversion will
probably never happen... unless Ulf wants to get directly involved
in the conversion effort, producing patches to make it happen.
I don't intend to contribute much with actual patches. I am willing to
help review and also help with expertise around the PM related parts.
I do realize that some callbacks may still be needed, even in the end
when sdhci has become a pure library. Although, those should be far
less then those we have today.
Currently I am more or less unable to properly maintain sdhci because
of it's bad code structure. Therefore I have taken a quite simple
approach by rejecting new callbacks and quirks, in a way to prevent it
from being worse.
experienced sdhci developers stepped in as a maintainer for it. In
that way, I can trust the development moving in the "library
direction" so I can pull back from nacking potential interim sdhci
callbacks/quirks.
Does it make sense?
Kind regards
Uffe