Re: [PATCH v2 1/3] powerpc/microwatt: wire up rng during setup_arch

From: Christophe Leroy
Date: Sat Jun 11 2022 - 10:49:05 EST




Le 11/06/2022 à 16:46, Jason A. Donenfeld a écrit :
> Hi again,
>
> On Sat, Jun 11, 2022 at 04:41:58PM +0200, Jason A. Donenfeld wrote:
>> Hi Christophe,
>>
>> On Sat, Jun 11, 2022 at 4:40 PM Christophe Leroy
>> <christophe.leroy@xxxxxxxxxx> wrote:
>>>>
>>>> +__init void microwatt_rng_init(void);
>>>
>>> This prototype should be declared in a header file, for instance asm/setup.h
>>
>> Alright.
>
> Actually, on second thought, I don't think this part is worth doing.
> These are per-platform functions, not powerpc-wide.
>

Then you have:

arch/powerpc/platforms/powernv/powernv.h
arch/powerpc/platforms/pseries/pseries.h

and you can add

arch/powerpc/platforms/microwatt/microwatt.h