Skip to content

Commit

Permalink
release v4.10-2
Browse files Browse the repository at this point in the history
  • Loading branch information
raphael committed Feb 27, 2017
1 parent 75cc8e3 commit d63817b
Show file tree
Hide file tree
Showing 34 changed files with 335 additions and 57 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
v4.10-1 2017-02-20
v4.10-2 2017-02-27
--------------------
Update to Linux 4.10.1

v4.10-1 2017-02-2
--------------------
Update to Linux 4.10

Expand Down
6 changes: 3 additions & 3 deletions aur/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

pkgbase=linux-samus4
pkgver=4.10
pkgrel=1
pkgrel=2
arch=('x86_64')
url="https://github.com/raphael/linux-samus"
license=('GPL2')
makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'lzop')
options=('!strip')
source=("https://github.com/raphael/linux-samus/archive/v4.10-1.tar.gz"
source=("https://github.com/raphael/linux-samus/archive/v4.10-2.tar.gz"
"config"
"linux.preset"
)
_kernelname=${pkgbase#linux}
_linuxsrc=linux-samus-4.10-1/build/linux/
_linuxsrc=linux-samus-4.10-2/build/linux/

# $srcdir is: /home/raphael/src/kernel-pkg/src
prepare() {
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
23 changes: 23 additions & 0 deletions build/linux-4.10.1-ph+_4.10.1-ph+-2.dsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Format: 3.0 (quilt)
Source: linux-4.10.1-ph+
Binary: linux-image-4.10.1-ph+, linux-headers-4.10.1-ph+, linux-firmware-image-4.10.1-ph+, linux-libc-dev
Architecture: any all
Version: 4.10.1-ph+-2
Maintainer: Anonymous <root@chromia>
Homepage: http://www.kernel.org/
Standards-Version: 3.8.4
Build-Depends: bc, kmod, cpio
Package-List:
linux-firmware-image-4.10.1-ph+ deb kernel optional arch=all
linux-headers-4.10.1-ph+ deb kernel optional arch=any
linux-image-4.10.1-ph+ deb kernel optional arch=any
linux-libc-dev deb devel optional arch=any
Checksums-Sha1:
faa6814faa7a07a369591c1efdd9c3a9c0fa26ec 303839863 linux-4.10.1-ph+_4.10.1-ph+.orig.tar.gz
491d3cf0df85abb842a069bcb04ff776ecfdd141 1287 linux-4.10.1-ph+_4.10.1-ph+-2.debian.tar.gz
Checksums-Sha256:
4bca44313d5b6fc8159eaa45ec514a68a8ac7843e57a81c172e2953064c0a120 303839863 linux-4.10.1-ph+_4.10.1-ph+.orig.tar.gz
a4a8e043db3dfe837d43b2666179d2179373cbf063121e9bf1785f7595df93da 1287 linux-4.10.1-ph+_4.10.1-ph+-2.debian.tar.gz
Files:
cda88fc1af8574356aeb9a62a361fb9f 303839863 linux-4.10.1-ph+_4.10.1-ph+.orig.tar.gz
2990a15bd49e44cd9e67514978c89c7e 1287 linux-4.10.1-ph+_4.10.1-ph+-2.debian.tar.gz
43 changes: 43 additions & 0 deletions build/linux-4.10.1-ph+_4.10.1-ph+-2_amd64.changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
Format: 1.8
Date: Mon, 27 Feb 2017 13:49:02 -0800
Source: linux-4.10.1-ph+
Binary: linux-image-4.10.1-ph+ linux-headers-4.10.1-ph+ linux-firmware-image-4.10.1-ph+ linux-libc-dev
Architecture: source amd64 all
Version: 4.10.1-ph+-2
Distribution: vivid
Urgency: low
Maintainer: Anonymous <root@chromia>
Changed-By: Anonymous <root@chromia>
Description:
linux-firmware-image-4.10.1-ph+ - Linux kernel firmware, version 4.10.1-ph+
linux-headers-4.10.1-ph+ - Linux kernel headers for 4.10.1-ph+ on ${kernel:debarch}
linux-image-4.10.1-ph+ - Linux kernel, version 4.10.1-ph+
linux-libc-dev - Linux support headers for userspace development
Changes:
linux-4.10.1-ph+ (4.10.1-ph+-2) vivid; urgency=low
.
* Custom built Linux kernel.
Checksums-Sha1:
7a091278dfd0eea4c328133b271e4211037bda9a 1170 linux-4.10.1-ph+_4.10.1-ph+-2.dsc
faa6814faa7a07a369591c1efdd9c3a9c0fa26ec 303839863 linux-4.10.1-ph+_4.10.1-ph+.orig.tar.gz
491d3cf0df85abb842a069bcb04ff776ecfdd141 1287 linux-4.10.1-ph+_4.10.1-ph+-2.debian.tar.gz
81a98404934c2e37467ccdadf653613a7a41c0ad 736538 linux-firmware-image-4.10.1-ph+_4.10.1-ph+-2_amd64.deb
299e29845186a5dbb57fed8ede42533754fcbe5f 10506466 linux-headers-4.10.1-ph+_4.10.1-ph+-2_amd64.deb
30876255b6cca7cfbca274d63878d578e7bddf09 18279470 linux-image-4.10.1-ph+_4.10.1-ph+-2_amd64.deb
79d4561721ef62284c24075736d0a8cb559b7d3c 893308 linux-libc-dev_4.10.1-ph+-2_amd64.deb
Checksums-Sha256:
225309006a4cf92c133364dda49c5adb00cb0b7c4c2c93c12e1fa4ab5ffe8b84 1170 linux-4.10.1-ph+_4.10.1-ph+-2.dsc
4bca44313d5b6fc8159eaa45ec514a68a8ac7843e57a81c172e2953064c0a120 303839863 linux-4.10.1-ph+_4.10.1-ph+.orig.tar.gz
a4a8e043db3dfe837d43b2666179d2179373cbf063121e9bf1785f7595df93da 1287 linux-4.10.1-ph+_4.10.1-ph+-2.debian.tar.gz
a6ec513acdcba781f9c7eba3b79c67e53edcbe956e8fa5860cdc0e1260494d8d 736538 linux-firmware-image-4.10.1-ph+_4.10.1-ph+-2_amd64.deb
095427a254dba228265f0d5e80db6dbe30e03197730d88225927b9f2a4a0316e 10506466 linux-headers-4.10.1-ph+_4.10.1-ph+-2_amd64.deb
2c4856513f9020b2b048dc63cc502572e358b2ec29594ac9b4a587bf73401e60 18279470 linux-image-4.10.1-ph+_4.10.1-ph+-2_amd64.deb
d2508aa92d036f25d6082bd83485f63e38924a8d9fb40e8fc69a30d79d3d38ea 893308 linux-libc-dev_4.10.1-ph+-2_amd64.deb
Files:
d985732211e16098dc2cf77cb2b64988 1170 kernel optional linux-4.10.1-ph+_4.10.1-ph+-2.dsc
cda88fc1af8574356aeb9a62a361fb9f 303839863 kernel optional linux-4.10.1-ph+_4.10.1-ph+.orig.tar.gz
2990a15bd49e44cd9e67514978c89c7e 1287 kernel optional linux-4.10.1-ph+_4.10.1-ph+-2.debian.tar.gz
6309ccc14aba8da0cb6eb4222a1a0205 736538 kernel optional linux-firmware-image-4.10.1-ph+_4.10.1-ph+-2_amd64.deb
f936e0e795e61d9831a02b3a1f2e17e1 10506466 kernel optional linux-headers-4.10.1-ph+_4.10.1-ph+-2_amd64.deb
55d6b45a4ff976f4d8a4f1a85e20ae82 18279470 kernel optional linux-image-4.10.1-ph+_4.10.1-ph+-2_amd64.deb
f3aae520f992c618e9493f8b4921f164 893308 devel optional linux-libc-dev_4.10.1-ph+-2_amd64.deb
4 changes: 4 additions & 0 deletions build/linux/Documentation/admin-guide/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1201,6 +1201,10 @@
When zero, profiling data is discarded and associated
debugfs files are removed at module unload time.

goldfish [X86] Enable the goldfish android emulator platform.
Don't use this when you are not running on the
android emulator

gpt [EFI] Forces disk with valid GPT signature but
invalid Protective MBR to be treated as GPT. If the
primary GPT is corrupted, it enables the backup/alternate
Expand Down
2 changes: 1 addition & 1 deletion build/linux/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION = 4
PATCHLEVEL = 10
SUBLEVEL = 0
SUBLEVEL = 1
EXTRAVERSION =
NAME = Fearless Coyote

Expand Down
14 changes: 13 additions & 1 deletion build/linux/arch/x86/platform/goldfish/goldfish.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,22 @@ static struct resource goldfish_pdev_bus_resources[] = {
}
};

static bool goldfish_enable __initdata;

static int __init goldfish_setup(char *str)
{
goldfish_enable = true;
return 0;
}
__setup("goldfish", goldfish_setup);

static int __init goldfish_init(void)
{
if (!goldfish_enable)
return -ENODEV;

platform_device_register_simple("goldfish_pdev_bus", -1,
goldfish_pdev_bus_resources, 2);
goldfish_pdev_bus_resources, 2);
return 0;
}
device_initcall(goldfish_init);
18 changes: 18 additions & 0 deletions build/linux/drivers/net/wireless/realtek/rtlwifi/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -827,12 +827,30 @@ static void rtl_usb_stop(struct ieee80211_hw *hw)
struct rtl_priv *rtlpriv = rtl_priv(hw);
struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
struct rtl_usb *rtlusb = rtl_usbdev(rtl_usbpriv(hw));
struct urb *urb;

/* should after adapter start and interrupt enable. */
set_hal_stop(rtlhal);
cancel_work_sync(&rtlpriv->works.fill_h2c_cmd);
/* Enable software */
SET_USB_STOP(rtlusb);

/* free pre-allocated URBs from rtl_usb_start() */
usb_kill_anchored_urbs(&rtlusb->rx_submitted);

tasklet_kill(&rtlusb->rx_work_tasklet);
cancel_work_sync(&rtlpriv->works.lps_change_work);

flush_workqueue(rtlpriv->works.rtl_wq);

skb_queue_purge(&rtlusb->rx_queue);

while ((urb = usb_get_from_anchor(&rtlusb->rx_cleanup_urbs))) {
usb_free_coherent(urb->dev, urb->transfer_buffer_length,
urb->transfer_buffer, urb->transfer_dma);
usb_free_urb(urb);
}

rtlpriv->cfg->ops->hw_disable(hw);
}

Expand Down
13 changes: 8 additions & 5 deletions build/linux/drivers/platform/goldfish/pdev_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,23 +157,26 @@ static int goldfish_new_pdev(void)
static irqreturn_t goldfish_pdev_bus_interrupt(int irq, void *dev_id)
{
irqreturn_t ret = IRQ_NONE;

while (1) {
u32 op = readl(pdev_bus_base + PDEV_BUS_OP);
switch (op) {
case PDEV_BUS_OP_DONE:
return IRQ_NONE;

switch (op) {
case PDEV_BUS_OP_REMOVE_DEV:
goldfish_pdev_remove();
ret = IRQ_HANDLED;
break;

case PDEV_BUS_OP_ADD_DEV:
goldfish_new_pdev();
ret = IRQ_HANDLED;
break;

case PDEV_BUS_OP_DONE:
default:
return ret;
}
ret = IRQ_HANDLED;
}
return ret;
}

static int goldfish_pdev_bus_probe(struct platform_device *pdev)
Expand Down
1 change: 1 addition & 0 deletions build/linux/drivers/tty/serial/msm_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -1809,6 +1809,7 @@ static const struct of_device_id msm_match_table[] = {
{ .compatible = "qcom,msm-uartdm" },
{}
};
MODULE_DEVICE_TABLE(of, msm_match_table);

static struct platform_driver msm_platform_driver = {
.remove = msm_serial_remove,
Expand Down
13 changes: 10 additions & 3 deletions build/linux/drivers/usb/serial/ark3116.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,17 @@ static int ark3116_read_reg(struct usb_serial *serial,
usb_rcvctrlpipe(serial->dev, 0),
0xfe, 0xc0, 0, reg,
buf, 1, ARK_TIMEOUT);
if (result < 0)
if (result < 1) {
dev_err(&serial->interface->dev,
"failed to read register %u: %d\n",
reg, result);
if (result >= 0)
result = -EIO;

return result;
else
return buf[0];
}

return buf[0];
}

static inline int calc_divisor(int bps)
Expand Down
1 change: 1 addition & 0 deletions build/linux/drivers/usb/serial/console.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ static int usb_console_setup(struct console *co, char *options)
tty->driver = usb_serial_tty_driver;
tty->index = co->index;
init_ldsem(&tty->ldisc_sem);
spin_lock_init(&tty->files_lock);
INIT_LIST_HEAD(&tty->tty_files);
kref_get(&tty->driver->kref);
__module_get(tty->driver->owner);
Expand Down
2 changes: 2 additions & 0 deletions build/linux/drivers/usb/serial/cp210x.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ static const struct usb_device_id id_table[] = {
{ USB_DEVICE(0x1901, 0x0190) }, /* GE B850 CP2105 Recorder interface */
{ USB_DEVICE(0x1901, 0x0193) }, /* GE B650 CP2104 PMC interface */
{ USB_DEVICE(0x1901, 0x0194) }, /* GE Healthcare Remote Alarm Box */
{ USB_DEVICE(0x1901, 0x0195) }, /* GE B850/B650/B450 CP2104 DP UART interface */
{ USB_DEVICE(0x1901, 0x0196) }, /* GE B850 CP2105 DP UART interface */
{ USB_DEVICE(0x19CF, 0x3000) }, /* Parrot NMEA GPS Flight Recorder */
{ USB_DEVICE(0x1ADB, 0x0001) }, /* Schweitzer Engineering C662 Cable */
{ USB_DEVICE(0x1B1C, 0x1C00) }, /* Corsair USB Dongle */
Expand Down
31 changes: 19 additions & 12 deletions build/linux/drivers/usb/serial/ftdi_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1802,8 +1802,6 @@ static int ftdi_sio_port_probe(struct usb_serial_port *port)

mutex_init(&priv->cfg_lock);

priv->flags = ASYNC_LOW_LATENCY;

if (quirk && quirk->port_probe)
quirk->port_probe(priv);

Expand Down Expand Up @@ -2067,6 +2065,20 @@ static int ftdi_process_packet(struct usb_serial_port *port,
priv->prev_status = status;
}

/* save if the transmitter is empty or not */
if (packet[1] & FTDI_RS_TEMT)
priv->transmit_empty = 1;
else
priv->transmit_empty = 0;

len -= 2;
if (!len)
return 0; /* status only */

/*
* Break and error status must only be processed for packets with
* data payload to avoid over-reporting.
*/
flag = TTY_NORMAL;
if (packet[1] & FTDI_RS_ERR_MASK) {
/* Break takes precedence over parity, which takes precedence
Expand All @@ -2089,15 +2101,6 @@ static int ftdi_process_packet(struct usb_serial_port *port,
}
}

/* save if the transmitter is empty or not */
if (packet[1] & FTDI_RS_TEMT)
priv->transmit_empty = 1;
else
priv->transmit_empty = 0;

len -= 2;
if (!len)
return 0; /* status only */
port->icount.rx += len;
ch = packet + 2;

Expand Down Expand Up @@ -2428,8 +2431,12 @@ static int ftdi_get_modem_status(struct usb_serial_port *port,
FTDI_SIO_GET_MODEM_STATUS_REQUEST_TYPE,
0, priv->interface,
buf, len, WDR_TIMEOUT);
if (ret < 0) {

/* NOTE: We allow short responses and handle that below. */
if (ret < 1) {
dev_err(&port->dev, "failed to get modem status: %d\n", ret);
if (ret >= 0)
ret = -EIO;
ret = usb_translate_errors(ret);
goto out;
}
Expand Down
4 changes: 3 additions & 1 deletion build/linux/drivers/usb/serial/mos7840.c
Original file line number Diff line number Diff line change
Expand Up @@ -1023,6 +1023,7 @@ static int mos7840_open(struct tty_struct *tty, struct usb_serial_port *port)
* (can't set it up in mos7840_startup as the structures *
* were not set up at that time.) */
if (port0->open_ports == 1) {
/* FIXME: Buffer never NULL, so URB is not submitted. */
if (serial->port[0]->interrupt_in_buffer == NULL) {
/* set up interrupt urb */
usb_fill_int_urb(serial->port[0]->interrupt_in_urb,
Expand Down Expand Up @@ -2106,7 +2107,8 @@ static int mos7840_calc_num_ports(struct usb_serial *serial)
static int mos7840_attach(struct usb_serial *serial)
{
if (serial->num_bulk_in < serial->num_ports ||
serial->num_bulk_out < serial->num_ports) {
serial->num_bulk_out < serial->num_ports ||
serial->num_interrupt_in < 1) {
dev_err(&serial->interface->dev, "missing endpoints\n");
return -ENODEV;
}
Expand Down
2 changes: 1 addition & 1 deletion build/linux/drivers/usb/serial/opticon.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ static int opticon_open(struct tty_struct *tty, struct usb_serial_port *port)
usb_clear_halt(port->serial->dev, port->read_urb->pipe);

res = usb_serial_generic_open(tty, port);
if (!res)
if (res)
return res;

/* Request CTS line state, sometimes during opening the current
Expand Down
8 changes: 7 additions & 1 deletion build/linux/drivers/usb/serial/spcp8x5.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,17 @@ static int spcp8x5_get_msr(struct usb_serial_port *port, u8 *status)
ret = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0),
GET_UART_STATUS, GET_UART_STATUS_TYPE,
0, GET_UART_STATUS_MSR, buf, 1, 100);
if (ret < 0)
if (ret < 1) {
dev_err(&port->dev, "failed to get modem status: %d\n", ret);
if (ret >= 0)
ret = -EIO;
goto out;
}

dev_dbg(&port->dev, "0xc0:0x22:0:6 %d - 0x02%x\n", ret, *buf);
*status = *buf;
ret = 0;
out:
kfree(buf);

return ret;
Expand Down
13 changes: 12 additions & 1 deletion build/linux/fs/xfs/xfs_iomap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,15 @@ xfs_file_iomap_end_delalloc(
xfs_fileoff_t end_fsb;
int error = 0;

start_fsb = XFS_B_TO_FSB(mp, offset + written);
/*
* start_fsb refers to the first unused block after a short write. If
* nothing was written, round offset down to point at the first block in
* the range.
*/
if (unlikely(!written))
start_fsb = XFS_B_TO_FSBT(mp, offset);
else
start_fsb = XFS_B_TO_FSB(mp, offset + written);
end_fsb = XFS_B_TO_FSB(mp, offset + length);

/*
Expand All @@ -1114,6 +1122,9 @@ xfs_file_iomap_end_delalloc(
* blocks in the range, they are ours.
*/
if (start_fsb < end_fsb) {
truncate_pagecache_range(VFS_I(ip), XFS_FSB_TO_B(mp, start_fsb),
XFS_FSB_TO_B(mp, end_fsb) - 1);

xfs_ilock(ip, XFS_ILOCK_EXCL);
error = xfs_bmap_punch_delalloc_range(ip, start_fsb,
end_fsb - start_fsb);
Expand Down
2 changes: 1 addition & 1 deletion build/linux/include/acpi/platform/acenv.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
#include "acmsvc.h"

#elif defined(__INTEL_COMPILER)
#include "acintel.h"
#include <acpi/platform/acintel.h>

#endif

Expand Down
Loading

0 comments on commit d63817b

Please sign in to comment.