Skip to content

Commit d86f9df

Browse files
committed
Merge branch 'bits/002-backports' into asahi-wip
2 parents ed50b3f + 54254d1 commit d86f9df

3 files changed

Lines changed: 13 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
{ .compatible = "fsl,ls1021a-scfg", },
146155
{ .compatible = "fsl,ls1043a-scfg", },
147156
{ .compatible = "fsl,ls1046a-scfg", },

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/nvmem/core.c

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

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

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

0 commit comments

Comments
 (0)