Re: [PATCH v2] Re-order grub_serial_find to fix default to com0 on some platforms

2024-10-24 Thread Daniel Kiper
On Wed, Oct 16, 2024 at 10:09:30AM -0700, Adam Williamson wrote: > 7b192ec4c rejigged the serial port detection code when no port > is explicitly specified. Before 7b192ec4c we did > grub_serial_find ("com0") in this case, which on *any* platform > would return a port called "com0" if one was found

Re: [PATCH v2] Re-order grub_serial_find to fix default to com0 on some platforms

2024-10-16 Thread Benjamin Herrenschmidt
On Wed, 2024-10-16 at 10:09 -0700, Adam Williamson wrote: .../... > To fix this, move the handling of "auto" up to happen first, > before the ifdef around "port" handling kicks in. If we don't > find an SPCR, change the name to "com0", so it will be handled > by the existing "exact match by name

[PATCH v2] Re-order grub_serial_find to fix default to com0 on some platforms

2024-10-16 Thread Adam Williamson
7b192ec4c rejigged the serial port detection code when no port is explicitly specified. Before 7b192ec4c we did grub_serial_find ("com0") in this case, which on *any* platform would return a port called "com0" if one was found. 7b192ec4c changed this so we do grub_serial_find ("auto"), and added a