serial: Cleanup & fix port discovery
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | serial: Replace usage of memcmp with strncmpgrub-core/ | +2 | 0 replies | |
| 2/3 | serial: Avoid double lookup of serial portsgrub-core/ grub-core/ grub-core/ +3 more | +33 | 0 replies | |
| 3/3 | serial: Improve detection of duplicate serial portsgrub-core/ grub-core/ grub-core/ +2 more | +51 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] serial: Cleanup & fix port discovery
This series cleans up a few things in serial port discovery and fixes detection of duplicates in some cases:
- Existing usage of memcmp to compare strings is replaces with strncmp
- Don't lookup ports by name right after creating them, just return the pointer instead.
- Move the detection of duplicates *into* the various port creation functions. At this point, the various attributes such as port number and address have been properly parsed and there is no confusion between things like wether a 0x prefix is present or not for example, or wether hex digits are upper or lower case.