Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bedb2a18 authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by John W. Linville
Browse files

ssb: log the id, rev and pkg of the chip found



This makes us see what type of hardware someone uses by the dmesg
output.

Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f0d4724b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -318,6 +318,9 @@ int ssb_bus_scan(struct ssb_bus *bus,
			bus->chip_package = 0;
		}
	}
	ssb_printk(KERN_INFO PFX "Found chip with id 0x%04X, rev 0x%02X and "
		   "package 0x%02X\n", bus->chip_id, bus->chip_rev,
		   bus->chip_package);
	if (!bus->nr_devices)
		bus->nr_devices = chipid_to_nrcores(bus->chip_id);
	if (bus->nr_devices > ARRAY_SIZE(bus->devices)) {