From 8c88fa2319dbfc162e8055e83f42a34ef1f7356e Mon Sep 17 00:00:00 2001 From: Shenghao Yang Date: Tue, 31 Jul 2018 07:25:35 +0800 Subject: [PATCH] core/linux-raspberrypi to 4.14.56-2 (#1605) - The serial device bus was compiled as a module, but this disabled use of the serial device TTY port controller that actually interfaces with the serdev drivers[1], rendering them unusable. Examples include the serdev driver for broadcom bluetooth HCI. - Once built in to the kernel, enabling SERIAL_DEV_CTRL_TTYPORT to be built in, the userspace dependency on btattach is removed and the presence of the bluetooth controller can be indicated in the device tree, instead. This doesn't simply get rid of the dependency on btattach, but improves functionality, as the kernel does not restore the UART link to a higher baud rate after uploading the firmware to the bluetooth controller when notified of the controller over btattach but does so when notified through the device tree. hciattach does restore a higher set baud rate, but that is deprecated. - According to [2], the configuration settings USB_CONFIGFS_F_* are meant for the user to indicate what sort of gadget functionality is to be enabled, while settings USB_F_* are meant to be used in the makefile for compilation. - Enabled USB_CONFIGFS_F_UAC2 at the same time, since UAC1 does not play well when used with a high-speed composite device (UAC1 is not compatible with high-speed, while UAC2 is) - Kernel image size increased by 4008 bytes after these changes 1 - http://events17.linuxfoundation.org/sites/events/files/slides/serdev-elce-2017-2.pdf 2 - https://www.spinics.net/lists/linux-usb/msg142134.html --- core/linux-raspberrypi/PKGBUILD | 4 ++-- core/linux-raspberrypi/config | 27 ++++++++++++++++++++++++--- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/core/linux-raspberrypi/PKGBUILD b/core/linux-raspberrypi/PKGBUILD index ac3281db6..e1d77237c 100644 --- a/core/linux-raspberrypi/PKGBUILD +++ b/core/linux-raspberrypi/PKGBUILD @@ -10,7 +10,7 @@ _srcname=linux-${_commit} _kernelname=${pkgbase#linux} _desc="Raspberry Pi" pkgver=4.14.56 -pkgrel=1 +pkgrel=2 arch=('armv6h' 'armv7h') url="http://www.kernel.org/" license=('GPL2') @@ -25,7 +25,7 @@ source=("https://github.com/raspberrypi/linux/archive/${_commit}.tar.gz" md5sums=('e5676b8bc923e1e54cd29a5c3b8021a5' '7c6b37a1353caccf6d3786bb4161c218' '60bc3624123c183305677097bcd56212' - 'd7b181ee07de039bc245252c12128cb5' + 'f2474f1f0bfe23560d21b3e8655fbadd' '552c43bf6c0225bc213b31ee942b7000' '982f9184dfcfbe52110795cf73674334') diff --git a/core/linux-raspberrypi/config b/core/linux-raspberrypi/config index cb9b3b3a0..745666d82 100644 --- a/core/linux-raspberrypi/config +++ b/core/linux-raspberrypi/config @@ -1,6 +1,6 @@ # # Automatically generated file; DO NOT EDIT. -# Linux/arm 4.14.54-1 Kernel Configuration +# Linux/arm 4.14.56-1 Kernel Configuration # CONFIG_ARM=y CONFIG_ARM_HAS_SG_CHAIN=y @@ -2688,7 +2688,8 @@ CONFIG_SERIAL_SC16IS7XX_SPI=y # CONFIG_SERIAL_FSL_LPUART is not set # CONFIG_SERIAL_CONEXANT_DIGICOLOR is not set # CONFIG_SERIAL_ST_ASC is not set -CONFIG_SERIAL_DEV_BUS=m +CONFIG_SERIAL_DEV_BUS=y +CONFIG_SERIAL_DEV_CTRL_TTYPORT=y CONFIG_TTY_PRINTK=y # CONFIG_HVC_DCC is not set # CONFIG_IPMI_HANDLER is not set @@ -4622,12 +4623,32 @@ CONFIG_USB_F_RNDIS=m CONFIG_USB_F_MASS_STORAGE=m CONFIG_USB_F_FS=m CONFIG_USB_F_UAC1=m +CONFIG_USB_F_UAC2=m CONFIG_USB_F_UVC=m CONFIG_USB_F_MIDI=m CONFIG_USB_F_HID=m CONFIG_USB_F_PRINTER=m CONFIG_USB_F_TCM=m -# CONFIG_USB_CONFIGFS is not set +CONFIG_USB_CONFIGFS=m +CONFIG_USB_CONFIGFS_SERIAL=y +CONFIG_USB_CONFIGFS_ACM=y +CONFIG_USB_CONFIGFS_OBEX=y +CONFIG_USB_CONFIGFS_NCM=y +CONFIG_USB_CONFIGFS_ECM=y +CONFIG_USB_CONFIGFS_ECM_SUBSET=y +CONFIG_USB_CONFIGFS_RNDIS=y +CONFIG_USB_CONFIGFS_EEM=y +CONFIG_USB_CONFIGFS_MASS_STORAGE=y +CONFIG_USB_CONFIGFS_F_LB_SS=y +CONFIG_USB_CONFIGFS_F_FS=y +CONFIG_USB_CONFIGFS_F_UAC1=y +# CONFIG_USB_CONFIGFS_F_UAC1_LEGACY is not set +CONFIG_USB_CONFIGFS_F_UAC2=y +CONFIG_USB_CONFIGFS_F_MIDI=y +CONFIG_USB_CONFIGFS_F_HID=y +CONFIG_USB_CONFIGFS_F_UVC=y +CONFIG_USB_CONFIGFS_F_PRINTER=y +CONFIG_USB_CONFIGFS_F_TCM=y CONFIG_USB_ZERO=m # CONFIG_USB_ZERO_HNPTEST is not set CONFIG_USB_AUDIO=m