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

2023-07-03 Thread Daniel Henrique Barboza
On 7/3/23 18:18, Guenter Roeck wrote: On 7/3/23 12:25, Daniel Henrique Barboza wrote: On 7/3/23 00:46, 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

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

2023-07-03 Thread Guenter Roeck
On 7/3/23 12:25, Daniel Henrique Barboza wrote: On 7/3/23 00:46, 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. Cr

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

2023-07-03 Thread Daniel Henrique Barboza
On 7/3/23 00:46, 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. Create devicetree in virt_machine_done() to solve t

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

2023-07-03 Thread Daniel Henrique Barboza
On 7/3/23 04:46, Philippe Mathieu-Daudé wrote: On 3/7/23 05:46, 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.

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

2023-07-03 Thread Guenter Roeck
On 7/3/23 00:46, Philippe Mathieu-Daudé wrote: On 3/7/23 05:46, 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. Cre

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

2023-07-03 Thread Philippe Mathieu-Daudé
On 3/7/23 05:46, 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. Create devicetree in virt_machine_done() to solve t

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

2023-07-02 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. Create devicetree in virt_machine_done() to solve the problem. Cc: Alistair Francis Fixes