Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work #1

Merged
merged 36 commits into from
Apr 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
db1358b
ASoC: kirkwood: fix external clock probe defer
Oct 23, 2019
167ada1
clk: samsung: exynos5420: Preserve PLL configuration during suspend/r…
mszyprow Oct 25, 2019
5f0717b
reset: fix reset_control_ops kerneldoc comment
rddunlap Oct 23, 2019
2237871
can: peak_usb: report bus recovery as well
jhofstee Sep 25, 2019
e2c1b8c
can: c_can: D_CAN: c_can_chip_config(): perform a sofware reset on open
jhofstee Oct 1, 2019
94d912a
scripts/gdb: fix debugging modules compiled with hot/cold partitioning
iii-i Nov 6, 2019
140be27
block: drbd: remove a stray unlock in __drbd_send_protocol()
Nov 7, 2019
baccb3a
scsi: lpfc: Fix dif and first burst use in write commands
jsmart-gh Nov 30, 2018
9754114
ARM: debug-imx: only define DEBUG_IMX_UART_PORT if needed
Nov 28, 2018
b416597
ARM: dts: imx53-voipac-dmm-668: Fix memory node duplication
fabioestevam Dec 5, 2018
c7aad69
parisc: Fix serio address output
hdeller Nov 15, 2018
0c78495
parisc: Fix HP SDC hpa address output
hdeller Nov 15, 2018
db98ea1
arm64: smp: Handle errors reported by the firmware
Dec 10, 2018
b065459
PM / AVS: SmartReflex: NULL check before some freeing functions is no…
thomasmey Dec 2, 2018
baa3382
ARM: ks8695: fix section mismatch warning
arndb Dec 10, 2018
2b20cfd
ACPI / LPSS: Ignore acpi_device_fix_up_power() return value
jwrdegoede Dec 8, 2018
3539747
crypto: user - support incremental algorithm dumps
ebiggers Dec 6, 2018
2b5d667
mwifiex: fix potential NULL dereference and use after free
SinkFinder Nov 29, 2018
0368986
mwifiex: debugfs: correct histogram spacing, formatting
computersforpeace Dec 3, 2018
10bf0ea
rtl818x: fix potential use after free
SinkFinder Nov 29, 2018
13b971c
xfs: require both realtime inodes to mount
djwong Dec 12, 2018
4192457
ubi: Put MTD device after it is not used
SinkFinder Nov 28, 2018
bbc33fe
ubi: Do not drop UBI device reference before using
SinkFinder Nov 28, 2018
07b8215
microblaze: adjust the help to the real behavior
masahir0y Dec 7, 2018
455a991
microblaze: move "... is ready" messages to arch/microblaze/Makefile
masahir0y Dec 7, 2018
5846e38
gpiolib: Fix return value of gpio_to_desc() stub if !GPIOLIB
krzk Dec 6, 2018
13326b8
VSOCK: bind to random port for VMADDR_PORT_ANY
LeptonWu Dec 11, 2018
84f1368
btrfs: only track ref_heads in delayed_ref_updates
Dec 3, 2018
05d9f40
xen/pciback: Check dev_data before using it
rosslagerwall Dec 14, 2018
b576a22
KVM: s390: unregister debug feature on failing arch init
Nov 30, 2018
9c42cbd
pinctrl: sh-pfc: sh7264: Fix PFCR3 and PFCR0 register configuration
geertu Dec 13, 2018
0ee2618
pinctrl: sh-pfc: sh7734: Fix shifted values in IPSR10
geertu Dec 13, 2018
040f8f6
HID: doc: fix wrong data structure reference for UHID_OUTPUT
whot Dec 13, 2018
ed7b3e4
gfs2: take jdata unstuff into account in do_grow
AstralBob Dec 18, 2018
70cd152
xfs: Align compat attrlist_by_handle with native implementation.
draconx Dec 17, 2018
669fda2
IB/qib: Fix an error code in qib_sdma_verbs_send()
Dec 17, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Documentation/hid/uhid.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ them but you should handle them according to your needs.
UHID_OUTPUT:
This is sent if the HID device driver wants to send raw data to the I/O
device on the interrupt channel. You should read the payload and forward it to
the device. The payload is of type "struct uhid_data_req".
the device. The payload is of type "struct uhid_output_req".
This may be received even though you haven't received UHID_OPEN, yet.

UHID_GET_REPORT:
Expand Down
28 changes: 14 additions & 14 deletions arch/arm/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -1283,21 +1283,21 @@ config DEBUG_OMAP2PLUS_UART
depends on ARCH_OMAP2PLUS

config DEBUG_IMX_UART_PORT
int "i.MX Debug UART Port Selection" if DEBUG_IMX1_UART || \
DEBUG_IMX25_UART || \
DEBUG_IMX21_IMX27_UART || \
DEBUG_IMX31_UART || \
DEBUG_IMX35_UART || \
DEBUG_IMX50_UART || \
DEBUG_IMX51_UART || \
DEBUG_IMX53_UART || \
DEBUG_IMX6Q_UART || \
DEBUG_IMX6SL_UART || \
DEBUG_IMX6SX_UART || \
DEBUG_IMX6UL_UART || \
DEBUG_IMX7D_UART
int "i.MX Debug UART Port Selection"
depends on DEBUG_IMX1_UART || \
DEBUG_IMX25_UART || \
DEBUG_IMX21_IMX27_UART || \
DEBUG_IMX31_UART || \
DEBUG_IMX35_UART || \
DEBUG_IMX50_UART || \
DEBUG_IMX51_UART || \
DEBUG_IMX53_UART || \
DEBUG_IMX6Q_UART || \
DEBUG_IMX6SL_UART || \
DEBUG_IMX6SX_UART || \
DEBUG_IMX6UL_UART || \
DEBUG_IMX7D_UART
default 1
depends on ARCH_MXC
help
Choose UART port on which kernel low-level debug messages
should be output.
Expand Down
8 changes: 2 additions & 6 deletions arch/arm/boot/dts/imx53-voipac-dmm-668.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,8 @@

memory@70000000 {
device_type = "memory";
reg = <0x70000000 0x20000000>;
};

memory@b0000000 {
device_type = "memory";
reg = <0xb0000000 0x20000000>;
reg = <0x70000000 0x20000000>,
<0xb0000000 0x20000000>;
};

regulators {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-ks8695/board-acs5k.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static struct i2c_board_info acs5k_i2c_devs[] __initdata = {
},
};

static void acs5k_i2c_init(void)
static void __init acs5k_i2c_init(void)
{
/* The gpio interface */
platform_device_register(&acs5k_i2c_device);
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ int __cpu_up(unsigned int cpu, struct task_struct *idle)
}
} else {
pr_err("CPU%u: failed to boot: %d\n", cpu, ret);
return ret;
}

#ifdef CONFIG_THREAD_INFO_IN_TASK
Expand Down
12 changes: 7 additions & 5 deletions arch/microblaze/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,21 @@ archclean:

linux.bin linux.bin.gz linux.bin.ub: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
@echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')'

simpleImage.%: vmlinux
$(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
@echo 'Kernel: $(boot)/$@ is ready' ' (#'`cat .version`')'

define archhelp
echo '* linux.bin - Create raw binary'
echo ' linux.bin.gz - Create compressed raw binary'
echo ' linux.bin.ub - Create U-Boot wrapped raw binary'
echo ' simpleImage.<dt> - ELF image with $(arch)/boot/dts/<dt>.dts linked in'
echo ' - stripped elf with fdt blob'
echo ' simpleImage.<dt>.unstrip - full ELF image with fdt blob'
echo ' *_defconfig - Select default config from arch/microblaze/configs'
echo ''
echo ' simpleImage.<dt> - Create the following images with <dt>.dtb linked in'
echo ' simpleImage.<dt> : raw image'
echo ' simpleImage.<dt>.ub : raw image with U-Boot header'
echo ' simpleImage.<dt>.unstrip: ELF (identical to vmlinux)'
echo ' simpleImage.<dt>.strip : stripped ELF'
echo ' Targets with <dt> embed a device tree blob inside the image'
echo ' These targets support board with firmware that does not'
echo ' support passing a device tree directly. Replace <dt> with the'
Expand Down
4 changes: 0 additions & 4 deletions arch/microblaze/boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@ OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary

$(obj)/linux.bin: vmlinux FORCE
$(call if_changed,objcopy)
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'

$(obj)/linux.bin.ub: $(obj)/linux.bin FORCE
$(call if_changed,uimage)
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'

$(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
$(call if_changed,gzip)
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'

quiet_cmd_cp = CP $< $@$2
cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
Expand All @@ -34,6 +31,5 @@ $(obj)/simpleImage.%: vmlinux FORCE
$(call if_changed,objcopy)
$(call if_changed,uimage)
$(call if_changed,strip,.strip)
@echo 'Kernel: $(UIMAGE_OUT) is ready' ' (#'`cat .version`')'

clean-files += simpleImage.*.unstrip linux.bin.ub dts/*.dtb
17 changes: 14 additions & 3 deletions arch/s390/kvm/kvm-s390.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,28 @@ void kvm_arch_hardware_unsetup(void)

int kvm_arch_init(void *opaque)
{
int rc;

kvm_s390_dbf = debug_register("kvm-trace", 32, 1, 7 * sizeof(long));
if (!kvm_s390_dbf)
return -ENOMEM;

if (debug_register_view(kvm_s390_dbf, &debug_sprintf_view)) {
debug_unregister(kvm_s390_dbf);
return -ENOMEM;
rc = -ENOMEM;
goto out_debug_unreg;
}

/* Register floating interrupt controller interface. */
return kvm_register_device_ops(&kvm_flic_ops, KVM_DEV_TYPE_FLIC);
rc = kvm_register_device_ops(&kvm_flic_ops, KVM_DEV_TYPE_FLIC);
if (rc) {
pr_err("Failed to register FLIC rc=%d\n", rc);
goto out_debug_unreg;
}
return 0;

out_debug_unreg:
debug_unregister(kvm_s390_dbf);
return rc;
}

void kvm_arch_exit(void)
Expand Down
37 changes: 20 additions & 17 deletions crypto/crypto_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,30 +257,33 @@ static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh,

static int crypto_dump_report(struct sk_buff *skb, struct netlink_callback *cb)
{
struct crypto_alg *alg;
const size_t start_pos = cb->args[0];
size_t pos = 0;
struct crypto_dump_info info;
int err;

if (cb->args[0])
goto out;

cb->args[0] = 1;
struct crypto_alg *alg;
int res;

info.in_skb = cb->skb;
info.out_skb = skb;
info.nlmsg_seq = cb->nlh->nlmsg_seq;
info.nlmsg_flags = NLM_F_MULTI;

down_read(&crypto_alg_sem);
list_for_each_entry(alg, &crypto_alg_list, cra_list) {
err = crypto_report_alg(alg, &info);
if (err)
goto out_err;
if (pos >= start_pos) {
res = crypto_report_alg(alg, &info);
if (res == -EMSGSIZE)
break;
if (res)
goto out;
}
pos++;
}

cb->args[0] = pos;
res = skb->len;
out:
return skb->len;
out_err:
return err;
up_read(&crypto_alg_sem);
return res;
}

static int crypto_dump_report_done(struct netlink_callback *cb)
Expand Down Expand Up @@ -498,24 +501,24 @@ static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
if ((type == (CRYPTO_MSG_GETALG - CRYPTO_MSG_BASE) &&
(nlh->nlmsg_flags & NLM_F_DUMP))) {
struct crypto_alg *alg;
u16 dump_alloc = 0;
unsigned long dump_alloc = 0;

if (link->dump == NULL)
return -EINVAL;

down_read(&crypto_alg_sem);
list_for_each_entry(alg, &crypto_alg_list, cra_list)
dump_alloc += CRYPTO_REPORT_MAXSIZE;
up_read(&crypto_alg_sem);

{
struct netlink_dump_control c = {
.dump = link->dump,
.done = link->done,
.min_dump_alloc = dump_alloc,
.min_dump_alloc = min(dump_alloc, 65535UL),
};
err = netlink_dump_start(crypto_nlsk, skb, nlh, &c);
}
up_read(&crypto_alg_sem);

return err;
}
Expand Down
7 changes: 1 addition & 6 deletions drivers/acpi/acpi_lpss.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,7 @@ static int acpi_lpss_create_device(struct acpi_device *adev,
* have _PS0 and _PS3 without _PSC (and no power resources), so
* acpi_bus_init_power() will assume that the BIOS has put them into D0.
*/
ret = acpi_device_fix_up_power(adev);
if (ret) {
/* Skip the device, but continue the namespace scan. */
ret = 0;
goto err_out;
}
acpi_device_fix_up_power(adev);

adev->driver_data = pdata;
pdev = acpi_create_platform_device(adev);
Expand Down
1 change: 0 additions & 1 deletion drivers/block/drbd/drbd_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,6 @@ int __drbd_send_protocol(struct drbd_connection *connection, enum drbd_packet cm

if (nc->tentative && connection->agreed_pro_version < 92) {
rcu_read_unlock();
mutex_unlock(&sock->mutex);
drbd_err(connection, "--dry-run is not supported by peer");
return -EOPNOTSUPP;
}
Expand Down
6 changes: 6 additions & 0 deletions drivers/clk/samsung/clk-exynos5420.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,18 @@ static unsigned long exynos5x_clk_regs[] __initdata = {
GATE_BUS_CPU,
GATE_SCLK_CPU,
CLKOUT_CMU_CPU,
CPLL_CON0,
DPLL_CON0,
EPLL_CON0,
EPLL_CON1,
EPLL_CON2,
RPLL_CON0,
RPLL_CON1,
RPLL_CON2,
IPLL_CON0,
SPLL_CON0,
VPLL_CON0,
MPLL_CON0,
SRC_TOP0,
SRC_TOP1,
SRC_TOP2,
Expand Down
4 changes: 3 additions & 1 deletion drivers/infiniband/hw/qib/qib_sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,10 @@ int qib_sdma_verbs_send(struct qib_pportdata *ppd,
dw = (len + 3) >> 2;
addr = dma_map_single(&ppd->dd->pcidev->dev, sge->vaddr,
dw << 2, DMA_TO_DEVICE);
if (dma_mapping_error(&ppd->dd->pcidev->dev, addr))
if (dma_mapping_error(&ppd->dd->pcidev->dev, addr)) {
ret = -ENOMEM;
goto unmap;
}
sdmadesc[0] = 0;
make_sdma_desc(ppd, sdmadesc, (u64) addr, dw, dwoffset);
/* SDmaUseLargeBuf has to be set in every descriptor */
Expand Down
4 changes: 2 additions & 2 deletions drivers/input/serio/gscps2.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,9 @@ static int gscps2_probe(struct parisc_device *dev)
goto fail;
#endif

printk(KERN_INFO "serio: %s port at 0x%p irq %d @ %s\n",
pr_info("serio: %s port at 0x%08lx irq %d @ %s\n",
ps2port->port->name,
ps2port->addr,
hpa,
ps2port->padev->irq,
ps2port->port->phys);

Expand Down
4 changes: 2 additions & 2 deletions drivers/input/serio/hp_sdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,8 +887,8 @@ static int __init hp_sdc_init(void)
"HP SDC NMI", &hp_sdc))
goto err2;

printk(KERN_INFO PREFIX "HP SDC at 0x%p, IRQ %d (NMI IRQ %d)\n",
(void *)hp_sdc.base_io, hp_sdc.irq, hp_sdc.nmi);
pr_info(PREFIX "HP SDC at 0x%08lx, IRQ %d (NMI IRQ %d)\n",
hp_sdc.base_io, hp_sdc.irq, hp_sdc.nmi);

hp_sdc_status_in8();
hp_sdc_data_in8();
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/ubi/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -1203,10 +1203,10 @@ int ubi_detach_mtd_dev(int ubi_num, int anyway)
ubi_wl_close(ubi);
ubi_free_internal_volumes(ubi);
vfree(ubi->vtbl);
put_mtd_device(ubi->mtd);
vfree(ubi->peb_buf);
vfree(ubi->fm_buf);
ubi_msg(ubi, "mtd%d is detached", ubi->mtd->index);
put_mtd_device(ubi->mtd);
put_device(&ubi->dev);
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/ubi/kapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ struct ubi_volume_desc *ubi_open_volume(int ubi_num, int vol_id, int mode)
out_free:
kfree(desc);
out_put_ubi:
ubi_put_device(ubi);
ubi_err(ubi, "cannot open device %d, volume %d, error %d",
ubi_num, vol_id, err);
ubi_put_device(ubi);
return ERR_PTR(err);
}
EXPORT_SYMBOL_GPL(ubi_open_volume);
Expand Down
26 changes: 26 additions & 0 deletions drivers/net/can/c_can/c_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#define CONTROL_EX_PDR BIT(8)

/* control register */
#define CONTROL_SWR BIT(15)
#define CONTROL_TEST BIT(7)
#define CONTROL_CCE BIT(6)
#define CONTROL_DISABLE_AR BIT(5)
Expand Down Expand Up @@ -572,6 +573,26 @@ static void c_can_configure_msg_objects(struct net_device *dev)
IF_MCONT_RCV_EOB);
}

static int c_can_software_reset(struct net_device *dev)
{
struct c_can_priv *priv = netdev_priv(dev);
int retry = 0;

if (priv->type != BOSCH_D_CAN)
return 0;

priv->write_reg(priv, C_CAN_CTRL_REG, CONTROL_SWR | CONTROL_INIT);
while (priv->read_reg(priv, C_CAN_CTRL_REG) & CONTROL_SWR) {
msleep(20);
if (retry++ > 100) {
netdev_err(dev, "CCTRL: software reset failed\n");
return -EIO;
}
}

return 0;
}

/*
* Configure C_CAN chip:
* - enable/disable auto-retransmission
Expand All @@ -581,6 +602,11 @@ static void c_can_configure_msg_objects(struct net_device *dev)
static int c_can_chip_config(struct net_device *dev)
{
struct c_can_priv *priv = netdev_priv(dev);
int err;

err = c_can_software_reset(dev);
if (err)
return err;

/* enable automatic retransmission */
priv->write_reg(priv, C_CAN_CTRL_REG, CONTROL_ENABLE_AR);
Expand Down
Loading