usb: enable media-presence polling for SD cards
After USB enumeration, some SD card readers do not send signals to the device when the SD card is inserted or removed. To support SD card hotplugging, this patch enables in-kernel media-presence polling, which will check the SD card status every 2 seconds after a SD card reader is attached. Bug: 186479576 Test: SD card insertion/removal and data copy (see b/301566595) Change-Id: I46ebaa4321d0e7bfbc048910ff8cc72e8e4f9a92 Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
This commit is contained in:
parent
8a15203216
commit
9fa4ab5163
1 changed files with 3 additions and 1 deletions
|
@ -153,6 +153,8 @@ on early-boot
|
|||
on boot
|
||||
# Use USB Gadget HAL
|
||||
setprop sys.usb.configfs 2
|
||||
# Enable in-kernel media-presence polling for SD cards
|
||||
write /sys/module/block/parameters/events_dfl_poll_msecs 2000
|
||||
|
||||
on property:sys.usb.ffs.ready=1 && property:sys.usb.config=adb && property:sys.usb.configfs=1
|
||||
write /config/usb_gadget/g1/idProduct 0x4EE7
|
||||
|
@ -199,4 +201,4 @@ on property:persist.vendor.usb.displayport.enabled=1
|
|||
|
||||
on property:persist.vendor.usb.displayport.enabled=0
|
||||
write /sys/module/exynos_drm/parameters/dp_enabled 0
|
||||
write /sys/class/typec/port0/port0.0/mode1/active "no"
|
||||
write /sys/class/typec/port0/port0.0/mode1/active "no"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue