Skip to content

Commit d5f17a3

Browse files
committed
Merge branch 'bits/002-backports' into asahi-wip
2 parents 5b267dd + 33649f3 commit d5f17a3

4 files changed

Lines changed: 14 additions & 1 deletion

File tree

drivers/bus/simple-pm-bus.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,15 @@ static const struct of_device_id simple_pm_bus_of_match[] = {
142142
{ .compatible = "simple-mfd", .data = ONLY_BUS },
143143
{ .compatible = "isa", .data = ONLY_BUS },
144144
{ .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 },
145154
{ /* sentinel */ }
146155
};
147156
MODULE_DEVICE_TABLE(of, simple_pm_bus_of_match);

drivers/media/common/videobuf2/videobuf2-dma-sg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ static int vb2_dma_sg_mmap(void *buf_priv, struct vm_area_struct *vma)
345345
return err;
346346
}
347347

348+
vm_flags_set(vma, VM_DONTEXPAND | VM_DONTDUMP);
348349
/*
349350
* Use common vm_area operations to track buffer refcount.
350351
*/

drivers/mfd/macsmc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ static int apple_smc_probe(struct platform_device *pdev)
413413
if (!smc)
414414
return -ENOMEM;
415415

416+
mutex_init(&smc->mutex);
416417
smc->dev = &pdev->dev;
417418
smc->sram_base = devm_platform_get_and_ioremap_resource(pdev, 1, &smc->sram);
418419
if (IS_ERR(smc->sram_base))

drivers/nvmem/core.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1618,12 +1618,14 @@ static void nvmem_shift_read_buffer_in_place(struct nvmem_cell_entry *cell, void
16181618
*p = *b++ >> bit_offset;
16191619

16201620
/* setup rest of the bytes if any */
1621-
for (i = 1; i < cell->bytes; i++) {
1621+
for (i = 1; i < (cell->bytes - bytes_offset); i++) {
16221622
/* Get bits from next byte and shift them towards msb */
16231623
*p++ |= *b << (BITS_PER_BYTE - bit_offset);
16241624

16251625
*p = *b++ >> bit_offset;
16261626
}
1627+
/* point to end of the buffer unused bits will be cleared */
1628+
p = buf + cell->bytes - 1;
16271629
} else if (p != b) {
16281630
memmove(p, b, cell->bytes - bytes_offset);
16291631
p += cell->bytes - 1;

0 commit comments

Comments
 (0)