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

Update 5.4.x+fslc up to v5.4.114 #314

Merged
merged 73 commits into from
Apr 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
94ac0a8
Revert "scsi: qla2xxx: Retry PLOGI on FC-NVMe PRLI failure"
Apr 16, 2021
33beb0e
Revert "scsi: qla2xxx: Fix stuck login session using prli_pend_timer"
Apr 16, 2021
8eed34d
scsi: qla2xxx: Dual FCP-NVMe target port support
Sep 12, 2019
8b5e82a
scsi: qla2xxx: Fix device connect issues in P2P configuration
Nov 5, 2019
ad66dc6
scsi: qla2xxx: Retry PLOGI on FC-NVMe PRLI failure
Nov 5, 2019
c393c7f
scsi: qla2xxx: Add a shadow variable to hold disc_state history of fc…
Dec 17, 2019
ca0188d
scsi: qla2xxx: Fix stuck login session using prli_pend_timer
Dec 17, 2019
304c217
scsi: qla2xxx: Fix fabric scan hang
Dec 17, 2019
6180d22
net/sctp: fix race condition in sctp_destroy_sock
Apr 13, 2021
2dce570
Input: nspire-keypad - enable interrupts only when opened
Vogtinator Mar 23, 2021
5130cda
gpio: sysfs: Obey valid_mask
M-Vaittinen Mar 29, 2021
09db44a
dmaengine: dw: Make it dependent to HAS_IOMEM
andy-shev Mar 24, 2021
4609d27
ARM: dts: Drop duplicate sha2md5_fck to fix clk_disable race
tmlind Mar 8, 2021
6ffc9f8
ARM: dts: Fix moving mmc devices with aliases for omap4 & 5
tmlind Mar 8, 2021
68bd0d8
lockdep: Add a missing initialization hint to the "INFO: Trying to re…
Mar 21, 2021
47d04c0
arc: kernel: Return -EFAULT if copy_to_user() fails
Mar 1, 2021
1cf8b48
ASoC: max98373: Added 30ms turn on/off time delay
Mar 25, 2021
f318386
neighbour: Disregard DEAD dst in neigh_update
Mar 19, 2021
4f02dc4
ARM: keystone: fix integer overflow warning
arndb Mar 23, 2021
01e86da
ARM: omap1: fix building with clang IAS
arndb Mar 8, 2021
d60837a
drm/msm: Fix a5xx/a6xx timestamps
robclark Mar 25, 2021
f0268d3
ASoC: fsl_esai: Fix TDM slot setup for I2S mode
shcgit Apr 2, 2021
e169980
scsi: scsi_transport_srp: Don't block target in SRP_PORT_LOST state
mwilck Apr 1, 2021
d8b4f3a
net: ieee802154: stop dump llsec keys for monitors
Apr 5, 2021
5d02540
net: ieee802154: forbid monitor for add llsec key
Apr 5, 2021
178ddee
net: ieee802154: forbid monitor for del llsec key
Apr 5, 2021
f9d7088
net: ieee802154: stop dump llsec devs for monitors
Apr 5, 2021
c993c05
net: ieee802154: forbid monitor for add llsec dev
Apr 5, 2021
6c8caf7
net: ieee802154: forbid monitor for del llsec dev
Apr 5, 2021
0d5ee2e
net: ieee802154: stop dump llsec devkeys for monitors
Apr 5, 2021
6358137
net: ieee802154: forbid monitor for add llsec devkey
Apr 5, 2021
fc5f9c3
net: ieee802154: forbid monitor for del llsec devkey
Apr 5, 2021
7a7899e
net: ieee802154: stop dump llsec seclevels for monitors
Apr 5, 2021
9e249bc
net: ieee802154: forbid monitor for add llsec seclevel
Apr 5, 2021
f666567
pcnet32: Use pci_resource_len to validate PCI resource
groeck Apr 6, 2021
bd7e90c
mac80211: clear sta->fast_rx when STA removed from 4-addr VLAN
Mar 19, 2021
7a2ac9e
virt_wifi: Return micros for BSS TSF values
Databean Mar 18, 2021
995503d
Input: s6sy761 - fix coordinate read bit shift
calebccff Mar 7, 2021
b428063
Input: i8042 - fix Pegatron C15B ID entry
arndb Mar 23, 2021
8046076
HID: wacom: set EV_KEY and EV_ABS only for non-HID_GENERIC type of de…
Pinglinux Mar 11, 2021
ff821c7
dm verity fec: fix misaligned RS roots IO
Apr 14, 2021
b995695
readdir: make sure to verify directory entry for legacy interfaces too
torvalds Apr 17, 2021
b7d1516
arm64: fix inline asm in load_unaligned_zeropad()
pcc Apr 1, 2021
9e8c5e3
arm64: alternatives: Move length validation in alternative_{insn, endif}
nathanchance Apr 14, 2021
ec3bb71
vfio/pci: Add missing range check in vfio_pci_mmap
Apr 12, 2021
7779f84
riscv: Fix spelling mistake "SPARSEMEM" to "SPARSMEM"
Mar 29, 2021
5f6c1a8
scsi: libsas: Reset num_scatter if libata marks qc as NODATA
Mar 18, 2021
4ce8e86
netfilter: conntrack: do not print icmpv6 as unknown via /proc
ummakynes Mar 30, 2021
61ca5b6
libnvdimm/region: Fix nvdimm_has_flush() to handle ND_REGION_ASYNC
vaibhav92 Apr 2, 2021
ce23be3
netfilter: bridge: add pre_exit hooks for ebtable unregistration
Apr 7, 2021
6449b40
netfilter: arp_tables: add pre_exit hook for table unregister
Apr 7, 2021
e65cd80
net: macb: fix the restore of cmp registers
claudiubeznea Apr 14, 2021
01fb162
netfilter: nft_limit: avoid possible divide error in nft_limit_init
Apr 9, 2021
4fcbb1f
net: davicom: Fix regulator not turned off on failed probe
tititiou36 Apr 11, 2021
92f93a0
net: sit: Unregister catch-all devices
hvenev Apr 12, 2021
51edda8
net: ip6_tunnel: Unregister catch-all devices
hvenev Apr 12, 2021
2bc14f5
i40e: fix the panic when running bpf in xdpdrv mode
Apr 14, 2021
c6acd7d
ibmvnic: avoid calling napi_disable() twice
Apr 14, 2021
c591bba
ibmvnic: remove duplicate napi_schedule call in do_reset function
Apr 14, 2021
fde195c
ibmvnic: remove duplicate napi_schedule call in open function
Apr 14, 2021
9a7ac9a
gro: ensure frag0 meets IP header alignment
Apr 13, 2021
871b569
ARM: footbridge: fix PCI interrupt mapping
Mar 25, 2021
b14992c
arm64: dts: allwinner: Fix SD card CD GPIO for SOPine systems
Andre-ARM Mar 16, 2021
c667953
r8169: remove fiddling with the PCIe max read request size
hkallweit Oct 21, 2019
0243bb3
r8169: simplify setting PCI_EXP_DEVCTL_NOSNOOP_EN
hkallweit Oct 21, 2019
cbbd3e2
r8169: fix performance regression related to PCIe max read request size
hkallweit Feb 5, 2020
50b7a68
r8169: improve rtl_jumbo_config
hkallweit Feb 15, 2020
c5934da
r8169: tweak max read request size for newer chips also in jumbo mtu …
hkallweit Jan 9, 2021
4f0cda5
r8169: don't advertise pause in jumbo mode
hkallweit Apr 14, 2021
cec3b77
ARM: 9071/1: uprobes: Don't hook on thumb instructions
frestr Apr 5, 2021
3822683
net: phy: marvell: fix detection of PHY on Topaz switches
pali Apr 12, 2021
a7eb81c
Linux 5.4.114
gregkh Apr 21, 2021
5e7fa34
Merge tag 'v5.4.114' into 5.4.x+fslc
zandrey Apr 21, 2021
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 Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
VERSION = 5
PATCHLEVEL = 4
SUBLEVEL = 113
SUBLEVEL = 114
EXTRAVERSION =
NAME = Kleptomaniac Octopus

Expand Down
4 changes: 2 additions & 2 deletions arch/arc/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ stash_usr_regs(struct rt_sigframe __user *sf, struct pt_regs *regs,
sizeof(sf->uc.uc_mcontext.regs.scratch));
err |= __copy_to_user(&sf->uc.uc_sigmask, set, sizeof(sigset_t));

return err;
return err ? -EFAULT : 0;
}

static int restore_usr_regs(struct pt_regs *regs, struct rt_sigframe __user *sf)
Expand All @@ -110,7 +110,7 @@ static int restore_usr_regs(struct pt_regs *regs, struct rt_sigframe __user *sf)
&(sf->uc.uc_mcontext.regs.scratch),
sizeof(sf->uc.uc_mcontext.regs.scratch));
if (err)
return err;
return -EFAULT;

set_current_blocked(&set);
regs->bta = uregs.scratch.bta;
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/omap4.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
i2c1 = &i2c2;
i2c2 = &i2c3;
i2c3 = &i2c4;
mmc0 = &mmc1;
mmc1 = &mmc2;
mmc2 = &mmc3;
mmc3 = &mmc4;
mmc4 = &mmc5;
serial0 = &uart1;
serial1 = &uart2;
serial2 = &uart3;
Expand Down
8 changes: 0 additions & 8 deletions arch/arm/boot/dts/omap44xx-clocks.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -770,14 +770,6 @@
ti,max-div = <2>;
};

sha2md5_fck: sha2md5_fck@15c8 {
#clock-cells = <0>;
compatible = "ti,gate-clock";
clocks = <&l3_div_ck>;
ti,bit-shift = <1>;
reg = <0x15c8>;
};

usb_phy_cm_clk32k: usb_phy_cm_clk32k@640 {
#clock-cells = <0>;
compatible = "ti,gate-clock";
Expand Down
5 changes: 5 additions & 0 deletions arch/arm/boot/dts/omap5.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
i2c2 = &i2c3;
i2c3 = &i2c4;
i2c4 = &i2c5;
mmc0 = &mmc1;
mmc1 = &mmc2;
mmc2 = &mmc3;
mmc3 = &mmc4;
mmc4 = &mmc5;
serial0 = &uart1;
serial1 = &uart2;
serial2 = &uart3;
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-footbridge/cats-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
#include <asm/mach-types.h>

/* cats host-specific stuff */
static int irqmap_cats[] __initdata = { IRQ_PCI, IRQ_IN0, IRQ_IN1, IRQ_IN3 };
static int irqmap_cats[] = { IRQ_PCI, IRQ_IN0, IRQ_IN1, IRQ_IN3 };

static u8 cats_no_swizzle(struct pci_dev *dev, u8 *pin)
{
return 0;
}

static int __init cats_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
static int cats_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
if (dev->irq >= 255)
return -1; /* not a valid interrupt. */
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-footbridge/ebsa285-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
#include <asm/mach/pci.h>
#include <asm/mach-types.h>

static int irqmap_ebsa285[] __initdata = { IRQ_IN3, IRQ_IN1, IRQ_IN0, IRQ_PCI };
static int irqmap_ebsa285[] = { IRQ_IN3, IRQ_IN1, IRQ_IN0, IRQ_PCI };

static int __init ebsa285_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
static int ebsa285_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
if (dev->vendor == PCI_VENDOR_ID_CONTAQ &&
dev->device == PCI_DEVICE_ID_CONTAQ_82C693)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-footbridge/netwinder-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* We now use the slot ID instead of the device identifiers to select
* which interrupt is routed where.
*/
static int __init netwinder_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
static int netwinder_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
switch (slot) {
case 0: /* host bridge */
Expand Down
5 changes: 2 additions & 3 deletions arch/arm/mach-footbridge/personal-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@
#include <asm/mach/pci.h>
#include <asm/mach-types.h>

static int irqmap_personal_server[] __initdata = {
static int irqmap_personal_server[] = {
IRQ_IN0, IRQ_IN1, IRQ_IN2, IRQ_IN3, 0, 0, 0,
IRQ_DOORBELLHOST, IRQ_DMA1, IRQ_DMA2, IRQ_PCI
};

static int __init personal_server_map_irq(const struct pci_dev *dev, u8 slot,
u8 pin)
static int personal_server_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
{
unsigned char line;

Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-keystone/keystone.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ static void __init keystone_init(void)
static long long __init keystone_pv_fixup(void)
{
long long offset;
phys_addr_t mem_start, mem_end;
u64 mem_start, mem_end;

mem_start = memblock_start_of_DRAM();
mem_end = memblock_end_of_DRAM();
Expand All @@ -75,7 +75,7 @@ static long long __init keystone_pv_fixup(void)
if (mem_start < KEYSTONE_HIGH_PHYS_START ||
mem_end > KEYSTONE_HIGH_PHYS_END) {
pr_crit("Invalid address space for memory (%08llx-%08llx)\n",
(u64)mem_start, (u64)mem_end);
mem_start, mem_end);
return 0;
}

Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-omap1/ams-delta-fiq-handler.S
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <linux/platform_data/gpio-omap.h>

#include <asm/assembler.h>
#include <asm/irq.h>

#include "ams-delta-fiq.h"
#include "board-ams-delta.h"
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/probes/uprobes/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,15 +204,15 @@ unsigned long uprobe_get_swbp_addr(struct pt_regs *regs)
static struct undef_hook uprobes_arm_break_hook = {
.instr_mask = 0x0fffffff,
.instr_val = (UPROBE_SWBP_ARM_INSN & 0x0fffffff),
.cpsr_mask = MODE_MASK,
.cpsr_mask = (PSR_T_BIT | MODE_MASK),
.cpsr_val = USR_MODE,
.fn = uprobe_trap_handler,
};

static struct undef_hook uprobes_arm_ss_hook = {
.instr_mask = 0x0fffffff,
.instr_val = (UPROBE_SS_ARM_INSN & 0x0fffffff),
.cpsr_mask = MODE_MASK,
.cpsr_mask = (PSR_T_BIT | MODE_MASK),
.cpsr_val = USR_MODE,
.fn = uprobe_trap_handler,
};
Expand Down
4 changes: 4 additions & 0 deletions arch/arm64/boot/dts/allwinner/sun50i-a64-pine64-lts.dts
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@
compatible = "pine64,pine64-lts", "allwinner,sun50i-r18",
"allwinner,sun50i-a64";
};

&mmc0 {
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 push-push switch */
};
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
vmmc-supply = <&reg_dcdc1>;
disable-wp;
bus-width = <4>;
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; /* PF6 push-pull switch */
status = "okay";
};

Expand Down
8 changes: 4 additions & 4 deletions arch/arm64/include/asm/alternative.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ static inline void apply_alternatives_module(void *start, size_t length) { }
.popsection
.subsection 1
663: \insn2
664: .previous
.org . - (664b-663b) + (662b-661b)
664: .org . - (664b-663b) + (662b-661b)
.org . - (662b-661b) + (664b-663b)
.previous
.endif
.endm

Expand Down Expand Up @@ -191,11 +191,11 @@ static inline void apply_alternatives_module(void *start, size_t length) { }
*/
.macro alternative_endif
664:
.org . - (664b-663b) + (662b-661b)
.org . - (662b-661b) + (664b-663b)
.if .Lasm_alt_mode==0
.previous
.endif
.org . - (664b-663b) + (662b-661b)
.org . - (662b-661b) + (664b-663b)
.endm

/*
Expand Down
10 changes: 5 additions & 5 deletions arch/arm64/include/asm/word-at-a-time.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ static inline unsigned long find_zero(unsigned long mask)
*/
static inline unsigned long load_unaligned_zeropad(const void *addr)
{
unsigned long ret, offset;
unsigned long ret, tmp;

/* Load word from unaligned pointer addr */
asm(
"1: ldr %0, %3\n"
"2:\n"
" .pushsection .fixup,\"ax\"\n"
" .align 2\n"
"3: and %1, %2, #0x7\n"
" bic %2, %2, #0x7\n"
" ldr %0, [%2]\n"
"3: bic %1, %2, #0x7\n"
" ldr %0, [%1]\n"
" and %1, %2, #0x7\n"
" lsl %1, %1, #0x3\n"
#ifndef __AARCH64EB__
" lsr %0, %0, %1\n"
Expand All @@ -73,7 +73,7 @@ static inline unsigned long load_unaligned_zeropad(const void *addr)
" b 2b\n"
" .popsection\n"
_ASM_EXTABLE(1b, 3b)
: "=&r" (ret), "=&r" (offset)
: "=&r" (ret), "=&r" (tmp)
: "r" (addr), "Q" (*(unsigned long *)addr));

return ret;
Expand Down
2 changes: 1 addition & 1 deletion arch/riscv/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ config ARCH_FLATMEM_ENABLE
config ARCH_SPARSEMEM_ENABLE
def_bool y
depends on MMU
select SPARSEMEM_STATIC if 32BIT && SPARSMEM
select SPARSEMEM_STATIC if 32BIT && SPARSEMEM
select SPARSEMEM_VMEMMAP_ENABLE if 64BIT

config ARCH_SELECT_MEMORY_MODEL
Expand Down
2 changes: 2 additions & 0 deletions drivers/dma/dw/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ config DW_DMAC_CORE

config DW_DMAC
tristate "Synopsys DesignWare AHB DMA platform driver"
depends on HAS_IOMEM
select DW_DMAC_CORE
help
Support the Synopsys DesignWare AHB DMA controller. This
Expand All @@ -18,6 +19,7 @@ config DW_DMAC
config DW_DMAC_PCI
tristate "Synopsys DesignWare AHB DMA PCI driver"
depends on PCI
depends on HAS_IOMEM
select DW_DMAC_CORE
help
Support the Synopsys DesignWare AHB DMA controller on the
Expand Down
8 changes: 8 additions & 0 deletions drivers/gpio/gpiolib-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ static ssize_t export_store(struct class *class,
long gpio;
struct gpio_desc *desc;
int status;
struct gpio_chip *gc;
int offset;

status = kstrtol(buf, 0, &gpio);
if (status < 0)
Expand All @@ -468,6 +470,12 @@ static ssize_t export_store(struct class *class,
pr_warn("%s: invalid GPIO %ld\n", __func__, gpio);
return -EINVAL;
}
gc = desc->gdev->chip;
offset = gpio_chip_hwgpio(desc);
if (!gpiochip_line_is_valid(gc, offset)) {
pr_warn("%s: GPIO %ld masked\n", __func__, gpio);
return -EINVAL;
}

/* No extra locking here; FLAG_SYSFS just signifies that the
* request and export were done by on behalf of userspace, so
Expand Down
4 changes: 2 additions & 2 deletions drivers/gpu/drm/msm/adreno/a5xx_gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1131,8 +1131,8 @@ static int a5xx_pm_suspend(struct msm_gpu *gpu)

static int a5xx_get_timestamp(struct msm_gpu *gpu, uint64_t *value)
{
*value = gpu_read64(gpu, REG_A5XX_RBBM_PERFCTR_CP_0_LO,
REG_A5XX_RBBM_PERFCTR_CP_0_HI);
*value = gpu_read64(gpu, REG_A5XX_RBBM_ALWAYSON_COUNTER_LO,
REG_A5XX_RBBM_ALWAYSON_COUNTER_HI);

return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/gpu/drm/msm/adreno/a6xx_gpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,8 +773,8 @@ static int a6xx_get_timestamp(struct msm_gpu *gpu, uint64_t *value)
/* Force the GPU power on so we can read this register */
a6xx_gmu_set_oob(&a6xx_gpu->gmu, GMU_OOB_GPU_SET);

*value = gpu_read64(gpu, REG_A6XX_RBBM_PERFCTR_CP_0_LO,
REG_A6XX_RBBM_PERFCTR_CP_0_HI);
*value = gpu_read64(gpu, REG_A6XX_CP_ALWAYS_ON_COUNTER_LO,
REG_A6XX_CP_ALWAYS_ON_COUNTER_HI);

a6xx_gmu_clear_oob(&a6xx_gpu->gmu, GMU_OOB_GPU_SET);
return 0;
Expand Down
6 changes: 2 additions & 4 deletions drivers/hid/wacom_wac.c
Original file line number Diff line number Diff line change
Expand Up @@ -3574,8 +3574,6 @@ int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
{
struct wacom_features *features = &wacom_wac->features;

input_dev->evbit[0] |= BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);

if (!(features->device_type & WACOM_DEVICETYPE_PEN))
return -ENODEV;

Expand All @@ -3590,6 +3588,7 @@ int wacom_setup_pen_input_capabilities(struct input_dev *input_dev,
return 0;
}

input_dev->evbit[0] |= BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
__set_bit(BTN_TOUCH, input_dev->keybit);
__set_bit(ABS_MISC, input_dev->absbit);

Expand Down Expand Up @@ -3742,8 +3741,6 @@ int wacom_setup_touch_input_capabilities(struct input_dev *input_dev,
{
struct wacom_features *features = &wacom_wac->features;

input_dev->evbit[0] |= BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);

if (!(features->device_type & WACOM_DEVICETYPE_TOUCH))
return -ENODEV;

Expand All @@ -3756,6 +3753,7 @@ int wacom_setup_touch_input_capabilities(struct input_dev *input_dev,
/* setup has already been done */
return 0;

input_dev->evbit[0] |= BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
__set_bit(BTN_TOUCH, input_dev->keybit);

if (features->touch_max == 1) {
Expand Down
Loading