Message ID | 20241125181420.24424-1-philmd@linaro.org |
---|---|
Headers | show |
Series | hw/boards: Try to make sense of MachineClass::no_sdcard flag | expand |
On 25/11/24 19:14, Philippe Mathieu-Daudé wrote: > Invert MachineClass 'no_sdcard' flag logic and rename it > to 'create_default_sdcard_drive' to make sense of this > default value applied to all machines. No logical change > intended. > > Philippe Mathieu-Daudé (3): > hw/boards: Convert no_sdcard flag to OnOffAuto tri-state > hw/boards: Explicit no_sdcard=false as ON_OFF_AUTO_OFF > hw/boards: Rename no_sdcard -> create_default_sdcard_drive I expect next steps to be: - Remove nonsense create_default_sdcard_drive (where machines don't have SDHCI devices) - When drive uses IF_SD, assert machine expose a SDBus - Explicitly create default drives for SDCards in each machine_init? - Remove MachineClass::create_default_sdcard_drive field and code handling default in system/vl.c
On 26/11/2024 06.24, Philippe Mathieu-Daudé wrote: > On 25/11/24 19:14, Philippe Mathieu-Daudé wrote: >> Invert MachineClass 'no_sdcard' flag logic and rename it >> to 'create_default_sdcard_drive' to make sense of this >> default value applied to all machines. No logical change >> intended. >> >> Philippe Mathieu-Daudé (3): >> hw/boards: Convert no_sdcard flag to OnOffAuto tri-state >> hw/boards: Explicit no_sdcard=false as ON_OFF_AUTO_OFF >> hw/boards: Rename no_sdcard -> create_default_sdcard_drive Sorry, this felt through the cracks, but I think this series here is indeed a much better idea than the code churn in your other series that simply changes the bitfields into booleans. > I expect next steps to be: > > - Remove nonsense create_default_sdcard_drive (where > machines don't have SDHCI devices) A fourth patch like this would be very welcome, too! Thomas