Re: [PATCH v2] riscv: Generate devicetree only after machine initialization is complete

2023-07-09 Thread Alistair Francis
On Thu, Jul 6, 2023 at 1:59 PM Guenter Roeck wrote: > > If the devicetree is created before machine initialization is complete, > it misses dynamic devices. Specifically, the tpm device is not added > to the devicetree file and is therefore not instantiated in Linux. > Load/create devicetree in vi

Re: [PATCH v2] riscv: Generate devicetree only after machine initialization is complete

2023-07-09 Thread Alistair Francis
On Thu, Jul 6, 2023 at 1:59 PM Guenter Roeck wrote: > > If the devicetree is created before machine initialization is complete, > it misses dynamic devices. Specifically, the tpm device is not added > to the devicetree file and is therefore not instantiated in Linux. > Load/create devicetree in vi

Re: [PATCH v2] riscv: Generate devicetree only after machine initialization is complete

2023-07-06 Thread Philippe Mathieu-Daudé
On 6/7/23 05:59, Guenter Roeck wrote: If the devicetree is created before machine initialization is complete, it misses dynamic devices. Specifically, the tpm device is not added to the devicetree file and is therefore not instantiated in Linux. Load/create devicetree in virt_machine_done() to so

[PATCH v2] riscv: Generate devicetree only after machine initialization is complete

2023-07-05 Thread Guenter Roeck
If the devicetree is created before machine initialization is complete, it misses dynamic devices. Specifically, the tpm device is not added to the devicetree file and is therefore not instantiated in Linux. Load/create devicetree in virt_machine_done() to solve the problem. Cc: Daniel Henrique Ba