Re: [PATCH RESEND v3 1/4] firmware: raspberrypi: reorder rpi_firmware_property_tag enum
Gregor Herburger <[email protected]> Thu, 30 Jul 2026 13:53:41 +0200
| Newsgroups | dev.linux.lists.sashiko-reviews,org.kernel.vger.linux-devicetree |
|---|---|
| Message-ID | <yqxro4e46o7r6ismlikvvdo6lotstjtxjo6qoqmqljvmsok5ub@qurubb4xyetk> |
On Thu, Jul 30, 2026 at 11:04:17AM +0000, [email protected] wrote: > Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: > - [Medium] The commit claims to reorder all enum tags by their integer values, but incorrectly places `RPI_FIRMWARE_VCHIQ_INIT` out of order relative to the newly moved tags. > -- > > --- Patch [1]: [PATCH RESEND v3 1/4] firmware: raspberrypi: reorder rpi_firmware_property_tag enum --- > commit 6dfb35594a9bcc2cc5fa3006d5257b66c4f03b4a > Author: Gregor Herburger <[email protected]> > > firmware: raspberrypi: reorder rpi_firmware_property_tag enum > > This commit attempts to reorder the tags in the rpi_firmware_property_tag > enum by their integer values to correct previously out-of-order additions. > > > diff --git a/include/soc/bcm2835/raspberrypi-firmware.h b/include/soc/bcm2835/raspberrypi-firmware.h > > --- a/include/soc/bcm2835/raspberrypi-firmware.h > > +++ b/include/soc/bcm2835/raspberrypi-firmware.h > > [ ... ] > > > @@ -125,10 +125,10 @@ enum rpi_firmware_property_tag { > > RPI_FIRMWARE_FRAMEBUFFER_SET_VIRTUAL_OFFSET = 0x00048009, > > RPI_FIRMWARE_FRAMEBUFFER_SET_OVERSCAN = 0x0004800a, > > RPI_FIRMWARE_FRAMEBUFFER_SET_PALETTE = 0x0004800b, > > - RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF = 0x0004801f, > > - RPI_FIRMWARE_FRAMEBUFFER_SET_GPIOVIRTBUF = 0x00048020, > > RPI_FIRMWARE_FRAMEBUFFER_SET_VSYNC = 0x0004800e, > > RPI_FIRMWARE_FRAMEBUFFER_SET_BACKLIGHT = 0x0004800f, > > + RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF = 0x0004801f, > > + RPI_FIRMWARE_FRAMEBUFFER_SET_GPIOVIRTBUF = 0x00048020, > > > > RPI_FIRMWARE_VCHIQ_INIT = 0x00048010, > > [Severity: Medium] > The commit message states the intent is to reorder the tags by their numerical > values, but does this final arrangement still leave them unsorted? > > The relocated tags RPI_FIRMWARE_FRAMEBUFFER_SET_TOUCHBUF (0x0004801f) and > RPI_FIRMWARE_FRAMEBUFFER_SET_GPIOVIRTBUF (0x00048020) are now placed right > before RPI_FIRMWARE_VCHIQ_INIT (0x00048010). I saw this but as this is named completly different I decided to keep it out of the RPI_FIRMWARE_FRAMEBUFFER* block. Regards -- Gregor Herburger Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen Phone: +49 7556 25 999 35; Fax.: +49 7556 25 999 99 Hinweise zum Datenschutz finden Sie hier (Informations on data privacy can be found here): https://linutronix.de/legal/data-protection.php Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 806 | Geschäftsführer (Managing Directors): Dr. Wilfried Wessner, Katharina Kopp, Alexander Gieringer