Skip to content

Commit 2f68ef7

Browse files
author
Alex Shi
committed
Merge tag 'v4.4.96' into linux-linaro-lsk-v4.4
This is the 4.4.96 stable release
2 parents 51f5845 + 27e68f1 commit 2f68ef7

22 files changed

Lines changed: 166 additions & 138 deletions

File tree

Documentation/devicetree/bindings/display/bridge/ti,ths8135.txt

Lines changed: 0 additions & 46 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
VERSION = 4
22
PATCHLEVEL = 4
3-
SUBLEVEL = 95
3+
SUBLEVEL = 96
44
EXTRAVERSION =
55
NAME = Blurry Fish Butt
66

arch/x86/kernel/cpu/microcode/intel.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,18 @@ static int get_ucode_fw(void *to, const void *from, size_t n)
990990
return 0;
991991
}
992992

993+
static bool is_blacklisted(unsigned int cpu)
994+
{
995+
struct cpuinfo_x86 *c = &cpu_data(cpu);
996+
997+
if (c->x86 == 6 && c->x86_model == 79) {
998+
pr_err_once("late loading on model 79 is disabled.\n");
999+
return true;
1000+
}
1001+
1002+
return false;
1003+
}
1004+
9931005
static enum ucode_state request_microcode_fw(int cpu, struct device *device,
9941006
bool refresh_fw)
9951007
{
@@ -998,6 +1010,9 @@ static enum ucode_state request_microcode_fw(int cpu, struct device *device,
9981010
const struct firmware *firmware;
9991011
enum ucode_state ret;
10001012

1013+
if (is_blacklisted(cpu))
1014+
return UCODE_NFOUND;
1015+
10011016
sprintf(name, "intel-ucode/%02x-%02x-%02x",
10021017
c->x86, c->x86_model, c->x86_mask);
10031018

@@ -1022,6 +1037,9 @@ static int get_ucode_user(void *to, const void *from, size_t n)
10221037
static enum ucode_state
10231038
request_microcode_user(int cpu, const void __user *buf, size_t size)
10241039
{
1040+
if (is_blacklisted(cpu))
1041+
return UCODE_NFOUND;
1042+
10251043
return generic_load_microcode(cpu, (void *)buf, size, &get_ucode_user);
10261044
}
10271045

drivers/input/mouse/elan_i2c_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,6 +1240,7 @@ static const struct acpi_device_id elan_acpi_id[] = {
12401240
{ "ELAN0605", 0 },
12411241
{ "ELAN0609", 0 },
12421242
{ "ELAN060B", 0 },
1243+
{ "ELAN0611", 0 },
12431244
{ "ELAN1000", 0 },
12441245
{ }
12451246
};

drivers/input/tablet/gtco.c

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,22 +231,25 @@ static void parse_hid_report_descriptor(struct gtco *device, char * report,
231231

232232
/* Walk this report and pull out the info we need */
233233
while (i < length) {
234-
prefix = report[i];
235-
236-
/* Skip over prefix */
237-
i++;
234+
prefix = report[i++];
238235

239236
/* Determine data size and save the data in the proper variable */
240-
size = PREF_SIZE(prefix);
237+
size = (1U << PREF_SIZE(prefix)) >> 1;
238+
if (i + size > length) {
239+
dev_err(ddev,
240+
"Not enough data (need %d, have %d)\n",
241+
i + size, length);
242+
break;
243+
}
244+
241245
switch (size) {
242246
case 1:
243247
data = report[i];
244248
break;
245249
case 2:
246250
data16 = get_unaligned_le16(&report[i]);
247251
break;
248-
case 3:
249-
size = 4;
252+
case 4:
250253
data32 = get_unaligned_le32(&report[i]);
251254
break;
252255
}

drivers/net/can/sun4i_can.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ static int sun4i_can_start(struct net_device *dev)
342342

343343
/* enter the selected mode */
344344
mod_reg_val = readl(priv->base + SUN4I_REG_MSEL_ADDR);
345-
if (priv->can.ctrlmode & CAN_CTRLMODE_PRESUME_ACK)
345+
if (priv->can.ctrlmode & CAN_CTRLMODE_LOOPBACK)
346346
mod_reg_val |= SUN4I_MSEL_LOOPBACK_MODE;
347347
else if (priv->can.ctrlmode & CAN_CTRLMODE_LISTENONLY)
348348
mod_reg_val |= SUN4I_MSEL_LISTEN_ONLY_MODE;
@@ -811,7 +811,6 @@ static int sun4ican_probe(struct platform_device *pdev)
811811
priv->can.ctrlmode_supported = CAN_CTRLMODE_BERR_REPORTING |
812812
CAN_CTRLMODE_LISTENONLY |
813813
CAN_CTRLMODE_LOOPBACK |
814-
CAN_CTRLMODE_PRESUME_ACK |
815814
CAN_CTRLMODE_3_SAMPLES;
816815
priv->base = addr;
817816
priv->clk = clk;

drivers/net/can/usb/kvaser_usb.c

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ static inline bool kvaser_is_usbcan(const struct usb_device_id *id)
134134
#define CMD_RESET_ERROR_COUNTER 49
135135
#define CMD_TX_ACKNOWLEDGE 50
136136
#define CMD_CAN_ERROR_EVENT 51
137+
#define CMD_FLUSH_QUEUE_REPLY 68
137138

138139
#define CMD_LEAF_USB_THROTTLE 77
139140
#define CMD_LEAF_LOG_MESSAGE 106
@@ -1297,6 +1298,11 @@ static void kvaser_usb_handle_message(const struct kvaser_usb *dev,
12971298
goto warn;
12981299
break;
12991300

1301+
case CMD_FLUSH_QUEUE_REPLY:
1302+
if (dev->family != KVASER_LEAF)
1303+
goto warn;
1304+
break;
1305+
13001306
default:
13011307
warn: dev_warn(dev->udev->dev.parent,
13021308
"Unhandled message (%d)\n", msg->id);
@@ -1607,7 +1613,8 @@ static int kvaser_usb_close(struct net_device *netdev)
16071613
if (err)
16081614
netdev_warn(netdev, "Cannot flush queue, error %d\n", err);
16091615

1610-
if (kvaser_usb_send_simple_msg(dev, CMD_RESET_CHIP, priv->channel))
1616+
err = kvaser_usb_send_simple_msg(dev, CMD_RESET_CHIP, priv->channel);
1617+
if (err)
16111618
netdev_warn(netdev, "Cannot reset card, error %d\n", err);
16121619

16131620
err = kvaser_usb_stop_chip(priv);

drivers/regulator/fan53555.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,10 @@ static const struct i2c_device_id fan53555_id[] = {
434434
.name = "fan53555",
435435
.driver_data = FAN53555_VENDOR_FAIRCHILD
436436
}, {
437-
.name = "syr82x",
437+
.name = "syr827",
438+
.driver_data = FAN53555_VENDOR_SILERGY
439+
}, {
440+
.name = "syr828",
438441
.driver_data = FAN53555_VENDOR_SILERGY
439442
},
440443
{ },

drivers/s390/scsi/zfcp_aux.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ struct zfcp_adapter *zfcp_adapter_enqueue(struct ccw_device *ccw_device)
358358

359359
adapter->next_port_scan = jiffies;
360360

361+
adapter->erp_action.adapter = adapter;
362+
361363
if (zfcp_qdio_setup(adapter))
362364
goto failed;
363365

@@ -514,6 +516,9 @@ struct zfcp_port *zfcp_port_enqueue(struct zfcp_adapter *adapter, u64 wwpn,
514516
port->dev.groups = zfcp_port_attr_groups;
515517
port->dev.release = zfcp_port_release;
516518

519+
port->erp_action.adapter = adapter;
520+
port->erp_action.port = port;
521+
517522
if (dev_set_name(&port->dev, "0x%016llx", (unsigned long long)wwpn)) {
518523
kfree(port);
519524
goto err_out;

drivers/s390/scsi/zfcp_erp.c

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,8 @@ static struct zfcp_erp_action *zfcp_erp_setup_act(int need, u32 act_status,
193193
atomic_or(ZFCP_STATUS_COMMON_ERP_INUSE,
194194
&zfcp_sdev->status);
195195
erp_action = &zfcp_sdev->erp_action;
196-
memset(erp_action, 0, sizeof(struct zfcp_erp_action));
197-
erp_action->port = port;
198-
erp_action->sdev = sdev;
196+
WARN_ON_ONCE(erp_action->port != port);
197+
WARN_ON_ONCE(erp_action->sdev != sdev);
199198
if (!(atomic_read(&zfcp_sdev->status) &
200199
ZFCP_STATUS_COMMON_RUNNING))
201200
act_status |= ZFCP_STATUS_ERP_CLOSE_ONLY;
@@ -208,8 +207,8 @@ static struct zfcp_erp_action *zfcp_erp_setup_act(int need, u32 act_status,
208207
zfcp_erp_action_dismiss_port(port);
209208
atomic_or(ZFCP_STATUS_COMMON_ERP_INUSE, &port->status);
210209
erp_action = &port->erp_action;
211-
memset(erp_action, 0, sizeof(struct zfcp_erp_action));
212-
erp_action->port = port;
210+
WARN_ON_ONCE(erp_action->port != port);
211+
WARN_ON_ONCE(erp_action->sdev != NULL);
213212
if (!(atomic_read(&port->status) & ZFCP_STATUS_COMMON_RUNNING))
214213
act_status |= ZFCP_STATUS_ERP_CLOSE_ONLY;
215214
break;
@@ -219,7 +218,8 @@ static struct zfcp_erp_action *zfcp_erp_setup_act(int need, u32 act_status,
219218
zfcp_erp_action_dismiss_adapter(adapter);
220219
atomic_or(ZFCP_STATUS_COMMON_ERP_INUSE, &adapter->status);
221220
erp_action = &adapter->erp_action;
222-
memset(erp_action, 0, sizeof(struct zfcp_erp_action));
221+
WARN_ON_ONCE(erp_action->port != NULL);
222+
WARN_ON_ONCE(erp_action->sdev != NULL);
223223
if (!(atomic_read(&adapter->status) &
224224
ZFCP_STATUS_COMMON_RUNNING))
225225
act_status |= ZFCP_STATUS_ERP_CLOSE_ONLY;
@@ -229,7 +229,11 @@ static struct zfcp_erp_action *zfcp_erp_setup_act(int need, u32 act_status,
229229
return NULL;
230230
}
231231

232-
erp_action->adapter = adapter;
232+
WARN_ON_ONCE(erp_action->adapter != adapter);
233+
memset(&erp_action->list, 0, sizeof(erp_action->list));
234+
memset(&erp_action->timer, 0, sizeof(erp_action->timer));
235+
erp_action->step = ZFCP_ERP_STEP_UNINITIALIZED;
236+
erp_action->fsf_req_id = 0;
233237
erp_action->action = need;
234238
erp_action->status = act_status;
235239

0 commit comments

Comments
 (0)