[U-Boot] [PATCH 8/9] mmc: tegra: port to standard clock/reset APIs
Stephen Warren
swarren at wwwdotorg.org
Mon Aug 1 17:50:50 CEST 2016
On 07/31/2016 08:20 PM, Simon Glass wrote:
> Hi Stephen,
>
> On 27 July 2016 at 15:24, Stephen Warren <swarren at wwwdotorg.org> wrote:
>> From: Stephen Warren <swarren at nvidia.com>
>>
>> Tegra186 supports the new standard clock and reset APIs. Older Tegra SoCs
>> still use custom APIs. Enhance the Tegra MMC driver so that it can operate
>> with either set of APIs.
>>
>> Signed-off-by: Stephen Warren <swarren at nvidia.com>
>> Cc: Pantelis Antoniou <panto at antoniou-consulting.com>
>> ---
>> arch/arm/include/asm/arch-tegra/tegra_mmc.h | 8 ++++-
>> drivers/mmc/tegra_mmc.c | 55 ++++++++++++++++++++++++-----
>> 2 files changed, 53 insertions(+), 10 deletions(-)
>
> Shouldn't we fix up the code to all use the new APIs?
Eventually yes. However, that's something that will take a lot of work.
When similar common APIs were introduced into Linux, there was a
transition period of 1-2 years where new code was immediately written to
the new APIs, and old code (e.g. legacy clock API implementation, and
its callers) was slowly converted. I would expect the same thing in
U-Boot; any other approach means preventing new work until the
conversions are complete, which would be rather stagnating.
More information about the U-Boot
mailing list