Skip to content

Commit e7d55b2

Browse files
committed
Merge branch 'bits/002-backports' into asahi-wip
2 parents 920d1db + 6cb74a0 commit e7d55b2

4 files changed

Lines changed: 17 additions & 3 deletions

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;

scripts/Makefile.package

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,9 @@ tar%-pkg: linux-$(KERNELRELEASE)-$(ARCH).tar.% FORCE
195195
.tmp_modules_cpio: FORCE
196196
$(Q)$(MAKE) -f $(srctree)/Makefile
197197
$(Q)rm -rf $@
198-
$(Q)$(MAKE) -f $(srctree)/Makefile INSTALL_MOD_PATH=$@ modules_install
198+
$(Q)$(MAKE) -f $(srctree)/Makefile \
199+
INSTALL_MOD_PATH=$@$(if $(INSTALL_MOD_PATH),/$(INSTALL_MOD_PATH:/%=%)) \
200+
modules_install
199201

200202
quiet_cmd_cpio = CPIO $@
201203
cmd_cpio = $(CONFIG_SHELL) $(srctree)/usr/gen_initramfs.sh -o $@ $<
@@ -264,7 +266,7 @@ help:
264266
@echo ' tarbz2-pkg - Build the kernel as a bzip2 compressed tarball'
265267
@echo ' tarxz-pkg - Build the kernel as a xz compressed tarball'
266268
@echo ' tarzst-pkg - Build the kernel as a zstd compressed tarball'
267-
@echo ' modules-cpio-pkg - Build the kernel modules as cpio archive'
269+
@echo ' modules-cpio-pkg - Build the kernel modules as cpio archive (modules installed in INSTALL_MOD_PATH (default: /))'
268270
@echo ' perf-tar-src-pkg - Build the perf source tarball with no compression'
269271
@echo ' perf-targz-src-pkg - Build the perf source tarball with gzip compression'
270272
@echo ' perf-tarbz2-src-pkg - Build the perf source tarball with bz2 compression'

0 commit comments

Comments
 (0)