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

Commit 5789f37c authored by Marcel Holtmann's avatar Marcel Holtmann Committed by Johan Hedberg
Browse files

Bluetooth: Expose hardware error code as debugfs entry



When the Hardware Error event is send by the controller, the Bluetooth
core stores the error code. Expose it via debugfs so it can be retrieved
later on.

Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 0886aea6
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -256,6 +256,9 @@ void hci_debugfs_create_common(struct hci_dev *hdev)
			   &hdev->manufacturer);
			   &hdev->manufacturer);
	debugfs_create_u8("hci_version", 0444, hdev->debugfs, &hdev->hci_ver);
	debugfs_create_u8("hci_version", 0444, hdev->debugfs, &hdev->hci_ver);
	debugfs_create_u16("hci_revision", 0444, hdev->debugfs, &hdev->hci_rev);
	debugfs_create_u16("hci_revision", 0444, hdev->debugfs, &hdev->hci_rev);
	debugfs_create_u8("hardware_error", 0444, hdev->debugfs,
			  &hdev->hw_error_code);

	debugfs_create_file("device_list", 0444, hdev->debugfs, hdev,
	debugfs_create_file("device_list", 0444, hdev->debugfs, hdev,
			    &device_list_fops);
			    &device_list_fops);
	debugfs_create_file("blacklist", 0444, hdev->debugfs, hdev,
	debugfs_create_file("blacklist", 0444, hdev->debugfs, hdev,