Skip to content

Commit

Permalink
Detect UARTs of Broadcom SoCs when using sysfs
Browse files Browse the repository at this point in the history
For these UARTs the driver_overrive file containing '(null)' is also
present and the previous filtering would have ignored them as well.
  • Loading branch information
sirhcel committed Jan 4, 2025
1 parent 02a90db commit 72b4013
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/posix/enumerate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,8 @@ cfg_if! {
let subsystem = subsystem.file_name()?.to_string_lossy();

match subsystem.as_ref() {
// Broadcom SoC UARTs (of Raspberry Pi devices).
"amba" => Some(SerialPortType::Unknown),
"pci" => Some(SerialPortType::PciPort),
"pnp" => Some(SerialPortType::Unknown),
"usb" => usb_port_type(&path),
Expand Down

0 comments on commit 72b4013

Please sign in to comment.