[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 10/11] hw/sd: Remove unused legacy functions, stop killing ma
From: |
Markus Armbruster |
Subject: |
Re: [PATCH 10/11] hw/sd: Remove unused legacy functions, stop killing mammoths |
Date: |
Fri, 31 Jan 2025 08:52:34 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Peter Maydell <peter.maydell@linaro.org> writes:
> The sdcard_legacy.h header defines function prototypes for the "legacy"
> SD card API, which was used by non-qdevified SD controller models.
> We've now converted the only remaining non-qdev SD controller, so
> we can drop the legacy API.
>
> Entirely unused functions:
> sd_init(), sd_set_cb(), sd_enable()
>
> Functions which now become static inside sd.c (they are the
> underlying implementations of methods on SDCardClass):
> sd_do_command(), sd_write_byte(), sd_read_byte()
>
> Removal of sd_init() means that we can also remove the
> me_no_qdev_me_kill_mammoth_with_rocks flag, the codepaths that were
> only reachable when it was set, and the inserted_cb and readonly_cb
> qemu_irq lines that went with that.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Very much appreciated!
Reviewed-by: Markus Armbruster <armbru@redhat.com>
- [PATCH 08/11] hw/sd/omap_mmc: Untabify, (continued)
- [PATCH 08/11] hw/sd/omap_mmc: Untabify, Peter Maydell, 2025/01/28
- [PATCH 04/11] hw/sd/omap_mmc: Convert to SDBus API, Peter Maydell, 2025/01/28
- [PATCH 05/11] hw/sd/omap_mmc: Use similar API for "wire up omap_clk" to other OMAP devices, Peter Maydell, 2025/01/28
- [PATCH 10/11] hw/sd: Remove unused legacy functions, stop killing mammoths, Peter Maydell, 2025/01/28
- [PATCH 09/11] hw/sd: Remove unused 'enable' method from SDCardClass, Peter Maydell, 2025/01/28