lkml.org 
[lkml]   [2021]   [Oct]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC 06/13] soc: mediatek: apu: Add apu core driver
Date
Il 23/10/21 13:14, Flora Fu ha scritto:
> Add apu core driver.
> The core driver will init the reset part of apu functions.
>
> Signed-off-by: Flora Fu <flora.fu@mediatek.com>
> ---
> drivers/soc/mediatek/Kconfig | 18 +++++
> drivers/soc/mediatek/apusys/Makefile | 3 +
> drivers/soc/mediatek/apusys/apu-core.c | 91 ++++++++++++++++++++++++++
> drivers/soc/mediatek/apusys/apu-core.h | 11 ++++
> 4 files changed, 123 insertions(+)
> create mode 100644 drivers/soc/mediatek/apusys/apu-core.c
> create mode 100644 drivers/soc/mediatek/apusys/apu-core.h
>

Hello Flora,

I don't think that this custom probe/init mechanism through apu-core.c
can ever be a thing: you should simply register a number of platform
drivers (likely modules) and let the kernel decide what to probe
first, what to probe last, as it's done for every kernel driver.

I understand that this may reduce probe deferrals, as it's a controlled
probe sequence, made specifically for apusys, but it's anyway something
that won't give you big gains (and if it was, then you should still let
the kernel decide and eventually optimize that mechanism somehow).


I want to note that, since this series is rather huge, I will probably
do more than one incremental review of it... and for how things look,
this will most probably be split to more than one series, to allow getting
reviews from specific subsystem maintainers, leading to better code quality
and robustness in the end.

Some more details are coming in reply of other patches in this series.

Thanks,
- Angelo

\
 
 \ /
  Last update: 2021-10-26 17:19    [W:0.119 / U:0.384 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site