Skip to content

Instantly share code, notes, and snippets.

00:00.0 Host bridge: Intel Corporation ValleyView SSA-CUnit (rev 0e)
Subsystem: QUANTA Computer Inc Device 1082
Flags: bus master, fast devsel, latency 0
00:02.0 VGA compatible controller: Intel Corporation ValleyView Gen7 (rev 0e) (prog-if 00 [VGA controller])
Subsystem: QUANTA Computer Inc Device 1082
Flags: bus master, fast devsel, latency 0, IRQ 87
Memory at 90000000 (32-bit, non-prefetchable) [size=4M]
Memory at 80000000 (32-bit, prefetchable) [size=256M]
I/O ports at 3050 [size=8]
root@endless:~# lspci -vxxx -s 03:00.0
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 07)
Subsystem: QUANTA Computer Inc Device 1082
Flags: bus master, fast devsel, latency 0, IRQ 106
I/O ports at 1000 [size=256]
Memory at 90404000 (64-bit, prefetchable) [size=4K]
Memory at 90400000 (64-bit, prefetchable) [size=16K]
[virtual] Expansion ROM at 90410000 [disabled] [size=64K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
root@endless:~# lspci -t
-[0000:00]-+-00.0
+-02.0
+-13.0
+-14.0
+-17.0
+-1a.0
+-1b.0
+-1c.0-[01]--
+-1c.1-[02]----00.0
([('/org/freedesktop/UPower/devices/battery_BAT1', uint32 2, '. GThemedIcon battery-full-charged-symbolic battery-full-charging-symbolic gpm-battery-full gpm-battery-100 battery-full-charged battery-full-charging ', 99.0, uint32 4, uint64 0)],)
diff --git a/btusb.c b/btusb.c
index 550fec1..1147684 100644
--- a/btusb.c
+++ b/btusb.c
@@ -3234,8 +3234,12 @@ static int btusb_probe(struct usb_interface *intf,
if (id->driver_info & BTUSB_RTL8723A)
hdev->setup = btusb_setup_rtl8723a;
- if (id->driver_info & BTUSB_RTL8723B)
+ if (id->driver_info & BTUSB_RTL8723B) {
diff --git a/btusb.c b/btusb.c
index 550fec1..339153d 100644
--- a/btusb.c
+++ b/btusb.c
@@ -3234,8 +3234,11 @@ static int btusb_probe(struct usb_interface *intf,
if (id->driver_info & BTUSB_RTL8723A)
hdev->setup = btusb_setup_rtl8723a;
- if (id->driver_info & BTUSB_RTL8723B)
+ if (id->driver_info & BTUSB_RTL8723B) {
diff --git a/data/80-udisks2.rules b/data/80-udisks2.rules
index a65aab0..a48ecf6 100644
--- a/data/80-udisks2.rules
+++ b/data/80-udisks2.rules
@@ -40,7 +40,8 @@ ENV{ID_VENDOR}=="*IOMEGA*", ENV{ID_MODEL}=="*ZIP*", ENV{ID_DRIVE_FLOPPY_ZIP}="1"
# TODO: figure out if the drive supports SD and SDHC and what the current
# kind of media is - right now we just assume SD
-KERNEL=="mmcblk[0-9]", SUBSYSTEMS=="mmc", ENV{DEVTYPE}=="disk", ENV{ID_DRIVE_FLASH_SD}="1", ENV{ID_DRIVE_MEDIA_FLASH_SD}="1"
+KERNEL=="mmcblk[0-9]", SUBSYSTEMS=="mmc", ENV{DEVTYPE}=="disk", ATTR{removable}=="1", ENV{ID_DRIVE_FLASH_SD}="1", ENV{ID_DRIVE_MEDIA_FLASH_SD}="1"
diff --git a/data/80-udisks2.rules b/data/80-udisks2.rules
index a65aab0..a48ecf6 100644
--- a/data/80-udisks2.rules
+++ b/data/80-udisks2.rules
@@ -40,7 +40,8 @@ ENV{ID_VENDOR}=="*IOMEGA*", ENV{ID_MODEL}=="*ZIP*", ENV{ID_DRIVE_FLOPPY_ZIP}="1"
# TODO: figure out if the drive supports SD and SDHC and what the current
# kind of media is - right now we just assume SD
-KERNEL=="mmcblk[0-9]", SUBSYSTEMS=="mmc", ENV{DEVTYPE}=="disk", ENV{ID_DRIVE_FLASH_SD}="1", ENV{ID_DRIVE_MEDIA_FLASH_SD}="1"
+KERNEL=="mmcblk[0-9]", SUBSYSTEMS=="mmc", ENV{DEVTYPE}=="disk", ATTR{removable}=="1", ENV{ID_DRIVE_FLASH_SD}="1", ENV{ID_DRIVE_MEDIA_FLASH_SD}="1"
/*******************************************************************************
*
* Copyright (C) 2009-2011 Broadcom Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
[pid 484] 11:28:46.991124 SYS_brk(NULL) = 0xb7dc4000 <0.000048>
[pid 484] 11:28:46.991975 SYS_access("/etc/ld.so.nohwcap", 00) = -2 <0.000053>
[pid 484] 11:28:46.992561 SYS_mmap2(0, 8192, 3, 34, -1) = 0xb779d000 <0.000050>
[pid 484] 11:28:46.993147 SYS_access("/etc/ld.so.preload", 04) = -2 <0.000051>
[pid 484] 11:28:46.993710 SYS_open("/etc/ld.so.cache", 524288, 00) = 3 <0.000097>
[pid 484] 11:28:46.994327 SYS_fstat64(3, 0xbfa5d070, 0xb77c3000, 3, 0xb77c38ec) = 0 <0.000050>
[pid 484] 11:28:46.994906 SYS_mmap2(0, 143235, 1, 2, 3) = 0xb777a000 <0.000050>
[pid 484] 11:28:46.995497 SYS_close(3) = 0 <0.000047>
[pid 484] 11:28:46.996035 SYS_access("/etc/ld.so.nohwcap", 00) = -2 <0.000052>
[pid 484] 11:28:46.996606 SYS_open("/usr/lib/i386-linux-gnu/libX11.s"..., 524288, 0361333) = 3 <0.000097>