We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5b267dd + 33649f3 commit d5f17a3Copy full SHA for d5f17a3
4 files changed
drivers/bus/simple-pm-bus.c
@@ -142,6 +142,15 @@ static const struct of_device_id simple_pm_bus_of_match[] = {
142
{ .compatible = "simple-mfd", .data = ONLY_BUS },
143
{ .compatible = "isa", .data = ONLY_BUS },
144
{ .compatible = "arm,amba-bus", .data = ONLY_BUS },
145
+ { .compatible = "apple,s5l8960x-pmgr", .data = ONLY_BUS },
146
+ { .compatible = "apple,t7000-pmgr", .data = ONLY_BUS },
147
+ { .compatible = "apple,s8000-pmgr", .data = ONLY_BUS },
148
+ { .compatible = "apple,t8010-pmgr", .data = ONLY_BUS },
149
+ { .compatible = "apple,t8015-pmgr", .data = ONLY_BUS },
150
+ { .compatible = "apple,t8103-pmgr", .data = ONLY_BUS },
151
+ { .compatible = "apple,t8112-pmgr", .data = ONLY_BUS },
152
+ { .compatible = "apple,t6000-pmgr", .data = ONLY_BUS },
153
+ { .compatible = "apple,t6020-pmgr", .data = ONLY_BUS },
154
{ /* sentinel */ }
155
};
156
MODULE_DEVICE_TABLE(of, simple_pm_bus_of_match);
drivers/media/common/videobuf2/videobuf2-dma-sg.c
@@ -345,6 +345,7 @@ static int vb2_dma_sg_mmap(void *buf_priv, struct vm_area_struct *vma)
345
return err;
346
}
347
348
+ vm_flags_set(vma, VM_DONTEXPAND | VM_DONTDUMP);
349
/*
350
* Use common vm_area operations to track buffer refcount.
351
*/
drivers/mfd/macsmc.c
@@ -413,6 +413,7 @@ static int apple_smc_probe(struct platform_device *pdev)
413
if (!smc)
414
return -ENOMEM;
415
416
+ mutex_init(&smc->mutex);
417
smc->dev = &pdev->dev;
418
smc->sram_base = devm_platform_get_and_ioremap_resource(pdev, 1, &smc->sram);
419
if (IS_ERR(smc->sram_base))
drivers/nvmem/core.c
@@ -1618,12 +1618,14 @@ static void nvmem_shift_read_buffer_in_place(struct nvmem_cell_entry *cell, void
1618
*p = *b++ >> bit_offset;
1619
1620
/* setup rest of the bytes if any */
1621
- for (i = 1; i < cell->bytes; i++) {
+ for (i = 1; i < (cell->bytes - bytes_offset); i++) {
1622
/* Get bits from next byte and shift them towards msb */
1623
*p++ |= *b << (BITS_PER_BYTE - bit_offset);
1624
1625
1626
1627
+ /* point to end of the buffer unused bits will be cleared */
1628
+ p = buf + cell->bytes - 1;
1629
} else if (p != b) {
1630
memmove(p, b, cell->bytes - bytes_offset);
1631
p += cell->bytes - 1;
0 commit comments