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

[pull] master from torvalds:master #64

Merged
merged 122 commits into from
Aug 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
d313279
HID: usbhid: do not sleep when opening device
dtor Jun 10, 2020
8e9ddbd
HID: usbhid: remove redundant assignment to variable retval
Jun 10, 2020
1ad273d
HID: input: do not run GET_REPORT unless there's a Resolution Multiplier
whot Jun 9, 2020
99bbe30
f2fs: avoid checkpatch error
Jun 16, 2020
742532d
f2fs: use kfree() instead of kvfree() to free superblock data
evdenis Jun 9, 2020
6f64892
f2fs: remove useless truncate in f2fs_collapse_range()
FWei-HW Jun 15, 2020
db5ae36
f2fs: fix a race condition between f2fs_write_end_io and f2fs_del_fsy…
Jun 18, 2020
da52f8a
f2fs: get the right gc victim section when section has several segments
Jun 18, 2020
ba87a45
f2fs: use kfree() to free variables allocated by match_strdup()
Jun 17, 2020
a8cbf80
HID: Wiimote: Treat the d-pad as an analogue stick
May 26, 2020
05b8465
Input: elantech - remove redundant assignments to variable error
Jul 7, 2020
deae576
Input: exc3000 - switch to i2c's probe_new API
sre May 20, 2020
7e34106
HID: intel-ish-hid: Replace PCI_DEV_FLAGS_NO_D3 with pci_save_state
khfeng Jun 29, 2020
b72cdfa
HID: lenovo: Merge tpkbd and cptkbd data structures
jwrdegoede Jul 4, 2020
484921f
HID: lenovo: Factor out generic parts of the LED code
jwrdegoede Jul 4, 2020
ef550c5
HID: lenovo: Rename fn_lock sysfs attr handlers to make them generic
jwrdegoede Jul 4, 2020
bc04b37
HID: lenovo: Add ThinkPad 10 Ultrabook Keyboard support
jwrdegoede Jul 4, 2020
c87de33
HID: lenovo: Add ThinkPad 10 Ultrabook Keyboard fn_lock support
jwrdegoede Jul 4, 2020
4942942
HID: lenovo: Fix spurious F23 key press report during resume from sus…
jwrdegoede Jul 4, 2020
08a6caa
Input: cm109 - remove needless check before usb_free_coherent()
ISCAS-Vulab Jul 7, 2020
6f49c4f
Input: Use fallthrough pseudo-keyword
GustavoARSilva Jul 7, 2020
0ef8183
f2fs: add prefix for exported symbols
chaseyu Jun 18, 2020
fa67955
f2fs: fix to document reserved special compression extension
chaseyu Jun 19, 2020
79963d9
f2fs: shrink node_write lock coverage
chaseyu Jun 18, 2020
f608c38
f2fs: clean up parameter of f2fs_allocate_data_block()
chaseyu Jun 18, 2020
9776750
f2fs: add f2fs_gc exception handle in f2fs_ioc_gc_range
Jun 28, 2020
0759e2c
f2fs: show more debug info for per-temperature log
chaseyu Jun 28, 2020
a6d601f
f2fs: fix to wait page writeback before update
chaseyu Jun 28, 2020
e5cc2c5
f2fs: fix typo in comment of f2fs_do_add_link
Jun 25, 2020
b815bdc
f2fs: remove useless parameter of __insert_free_nid()
Jun 28, 2020
250e84d
f2fs: fix wrong return value of f2fs_bmap_compress()
chaseyu Jun 28, 2020
b79b0a3
f2fs: support to trace f2fs_bmap()
chaseyu Jun 29, 2020
dd5a09b
f2fs: support to trace f2fs_fiemap()
chaseyu Jun 29, 2020
d078319
f2fs: remove the unused compr parameter
Jun 16, 2020
eb1353c
f2fs: fix to check page dirty status before writeback
chaseyu Jun 19, 2020
9a99c17
f2fs: make trace enter and end in pairs for unlink
Jun 20, 2020
29b993c
f2fs: fix an oops in f2fs_is_compressed_page
yuchangchun1 Jun 20, 2020
9039d83
f2fs: lost matching-pair of trace in f2fs_truncate_inode_blocks
Jun 20, 2020
901d745
f2fs: split f2fs_allocate_new_segments()
chaseyu Jun 22, 2020
b797309
f2fs: add parameter op_flag in f2fs_submit_page_read()
Jul 1, 2020
d7cd370
f2fs: fix return value of move_data_block()
chaseyu Jul 1, 2020
6b12367
f2fs: avoid readahead race condition
Jun 23, 2020
0e5e811
f2fs: add GC_URGENT_LOW mode in gc_urgent
Jul 2, 2020
ffcde4b
f2fs: remove write attribute of main_blkaddr sysfs node
gdhe55555 Jul 3, 2020
f567adb
f2fs: fix to wait GCed compressed page writeback
chaseyu Jul 3, 2020
4fc781a
f2fs: fix wrong description of compress feature in f2fs.rst
chaseyu Jul 3, 2020
9627a7b
f2fs: fix error path in do_recover_data()
chaseyu Jul 6, 2020
aff6fbb
f2fs: don't keep meta inode pages used for compressed block migration
chaseyu Jul 7, 2020
4f57cac
HID: input: Fix devices that return multiple bytes in battery report
glikely Jul 10, 2020
606e702
Input: mt - cleanup open-coded __set_bit()
osctobe Jul 16, 2020
77da21c
Input: elan_i2c - handle firmware not implementing "get pattern" command
jinglewu Jul 16, 2020
fc7c882
Input: elan_i2c - make fetching IC type of older controllers more robust
jinglewu Jul 16, 2020
40d8aa9
Input: elan_i2c - handle devices with patterns above 1
jinglewu Jul 16, 2020
df10cc8
Input: elan_i2c - fix detecting IAP version on older controllers
jinglewu Jul 16, 2020
059d6c2
Input: elan_i2c - add support for different firmware page sizes
jinglewu Jul 17, 2020
bfd9b92
Input: elan_i2c - handle firmware updated on newer ICs
jinglewu Jul 17, 2020
8d73ec7
Input: elan_i2c - add firmware update info for ICs 0x11, 0x13, 0x14
jinglewu Jul 17, 2020
b266eac
HID: mcp2221: Replace HTTP links with HTTPS ones
Al2Klimov Jul 13, 2020
238b5bd
HID: udraw-ps3: Replace HTTP links with HTTPS ones
Al2Klimov Jul 18, 2020
b1631b8
HID: Replace HTTP links with HTTPS ones
Al2Klimov Jul 18, 2020
3357af8
f2fs: use generic names for generic ioctls
ebiggers Jul 14, 2020
02772fb
f2fs: compress: fix to avoid memory leak on cc->cpages
chaseyu Jul 20, 2020
887e037
f2fs: segment.h: delete a duplicated word
rddunlap Jul 20, 2020
3d712af
Input: elan_i2c - do not constantly re-query pattern ID
dtor Jul 20, 2020
68f775d
HID: quirks: add NOGET quirk for Logitech GROUP
ikjn-cros Jul 21, 2020
04d5ce6
Input: elan_i2c - add support for high resolution reports
jinglewu Jul 20, 2020
b0f3b87
f2fs: should avoid inode eviction in synchronous path
Jul 16, 2020
9af8464
f2fs: add F2FS_IOC_SEC_TRIM_FILE ioctl
Jul 21, 2020
53aab92
Input: synaptics-rmi4 - drop a duplicated word
rddunlap Jul 21, 2020
9b031c8
Merge branch 'elan-i2c' into next
dtor Jul 22, 2020
a5c33d5
Merge branch 'for-linus' into next
dtor Jul 22, 2020
4aec14d
Input: psmouse - add a newline when printing 'proto' by sysfs
fenghusthu Jul 22, 2020
37bd9e8
Input: ati_remote2 - add missing newlines when printing module parame…
fenghusthu Jul 22, 2020
68e79ba
f2fs: Change the type of f2fs_flush_inline_data() to void
Jul 21, 2020
99c787c
f2fs: fix use-after-free issue
Jul 24, 2020
a87aff1
f2fs: space related cleanup
Jul 24, 2020
944dd22
f2fs: compress: fix to update isize when overwriting compressed file
chaseyu Jul 24, 2020
b2f57a8
f2fs: compress: delay temp page allocation
chaseyu Jul 25, 2020
bbca4d3
Input: uinput - fix typo in function name documentation
pavelmachek Jul 24, 2020
74d905d
Input: atmel_mxt_ts - only read messages in mxt_acquire_irq() when ne…
ndyer Jul 29, 2020
873a3a1
Input: elan_i2c - add ic type 0x15
jinglewu Jul 30, 2020
a7a8f4a
ubifs: add option to specify version for new file systems
djfun Jul 7, 2020
fcf4419
ubifs: misc.h: delete a duplicated word
rddunlap Jul 20, 2020
3b18525
ubi: fastmap: Don't produce the initial next anchor PEB when fastmap …
Jul 7, 2020
c3fc1a3
ubi: fastmap: Free fastmap next anchor peb during detach
Jul 7, 2020
094b6d1
ubifs: Fix wrong orphan node deletion in ubifs_jnl_update|rename
Jul 7, 2020
a68005a
jffs2: fix jffs2 mounting failure
Jun 9, 2020
798b734
jffs2: fix UAF problem
Jun 19, 2020
5deaf1f
gfs2: Add some flags missing from glock output
AstralBob Jun 9, 2020
4c5c301
gfs2: Pass glock holder to gfs2_file_direct_{read,write}
Jun 29, 2020
c07bfb4
gfs2: Fix refcount leak in gfs2_glock_poke
Jul 27, 2020
c9dff08
fs: Fix typo in comment
Jul 9, 2020
1f07cc5
f2fs: correct comment of f2fs_exist_written_data
Jul 25, 2020
1fd2801
f2fs: fix deadlock between quota writes and checkpoint
Jul 28, 2020
8fa4101
f2fs: use macro instead of f2fs verity version
Jul 29, 2020
a86d27d
f2fs: compress: add sanity check during compressed cluster read
chaseyu Jul 29, 2020
1f0b067
f2fs: compress: disable compression mount option if compression is off
chaseyu Jul 29, 2020
567c4bf
f2fs: make file immutable even if releasing zero compression block
Jul 30, 2020
58f7e00
f2fs: replace test_and_set/clear_bit() with set/clear_bit()
Jul 31, 2020
9feffe1
f2fs: update_sit_entry: Make the judgment condition of f2fs_bug_on mo…
Aug 1, 2020
828add7
f2fs: prepare a waiter before entering io_schedule
Aug 4, 2020
d431b9e
Input: ims-pcu - return error code rather than -ENOMEM
Aug 6, 2020
47fcd0f
Input: alps - remove redundant assignment to variable ret
Aug 6, 2020
ea38f06
Input: sentelic - fix error return when fsp_reg_write fails
Aug 6, 2020
1053653
dt-bindings: touchscreen: Convert EETI EXC3000 touchscreen to json-sc…
sre Aug 6, 2020
3bdd21c
Input: exc3000 - add EXC80H60 and EXC80H84 support
sre Aug 6, 2020
27aced1
Input: exc3000 - add reset gpio support
sre Aug 6, 2020
d862a30
Input: exc3000 - add support to query model and fw_version
sre Aug 6, 2020
b57bc0f
gfs2: Fix inaccurate comment
AstralBob Jul 22, 2020
b0be23b
gfs2: print details on transactions that aren't properly ended
AstralBob Jul 23, 2020
70499cd
gfs2: Never call gfs2_block_zero_range with an open transaction
AstralBob Jul 24, 2020
e28c02b
gfs2: When gfs2_dirty_inode gets a glock error, dump the glock
AstralBob Jul 30, 2020
9e82380
Merge branch 'next' into for-linus
dtor Aug 7, 2020
a66eebd
Merge branch 'for-5.9/core-v2' into for-linus
Aug 10, 2020
cd6cad5
Merge branch 'for-5.9/intel-ish' into for-linus
Aug 10, 2020
ccac9ce
Merge branch 'for-5.9/lenovo' into for-linus
Aug 10, 2020
e6b6e19
Merge branch 'for-5.9/wiimote' into for-linus
Aug 10, 2020
b7b8e36
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Aug 10, 2020
4bcf69e
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Aug 10, 2020
163c3e3
Merge tag 'for-linus-5.9-rc1' of git://git.kernel.org/pub/scm/linux/k…
torvalds Aug 11, 2020
8c2618a
Merge tag 'gfs2-for-5.9' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Aug 11, 2020
086ba2e
Merge tag 'f2fs-for-5.9-rc1' of git://git.kernel.org/pub/scm/linux/ke…
torvalds Aug 11, 2020
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
15 changes: 15 additions & 0 deletions Documentation/ABI/testing/sysfs-driver-input-exc3000
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
What: /sys/bus/i2c/devices/xxx/fw_version
Date: Aug 2020
Contact: linux-input@vger.kernel.org
Description: Reports the firmware version provided by the touchscreen, for example "00_T6" on a EXC80H60

Access: Read
Valid values: Represented as string

What: /sys/bus/i2c/devices/xxx/model
Date: Aug 2020
Contact: linux-input@vger.kernel.org
Description: Reports the model identification provided by the touchscreen, for example "Orion_1320" on a EXC80H60

Access: Read
Valid values: Represented as string
4 changes: 3 additions & 1 deletion Documentation/ABI/testing/sysfs-fs-f2fs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ Date: August 2017
Contact: "Jaegeuk Kim" <jaegeuk@kernel.org>
Description: Do background GC agressively when set. When gc_urgent = 1,
background thread starts to do GC by given gc_urgent_sleep_time
interval. It is set to 0 by default.
interval. When gc_urgent = 2, F2FS will lower the bar of
checking idle in order to process outstanding discard commands
and GC a little bit aggressively. It is set to 0 by default.

What: /sys/fs/f2fs/<disk>/gc_urgent_sleep_time
Date: August 2017
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/input/touchscreen/eeti,exc3000.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: EETI EXC3000 series touchscreen controller

maintainers:
- Dmitry Torokhov <dmitry.torokhov@gmail.com>

allOf:
- $ref: touchscreen.yaml#

properties:
compatible:
enum:
- eeti,exc3000
- eeti,exc80h60
- eeti,exc80h84
reg:
const: 0x2a
interrupts:
maxItems: 1
reset-gpios:
maxItems: 1
touchscreen-size-x: true
touchscreen-size-y: true
touchscreen-inverted-x: true
touchscreen-inverted-y: true
touchscreen-swapped-x-y: true

required:
- compatible
- reg
- interrupts
- touchscreen-size-x
- touchscreen-size-y

additionalProperties: false

examples:
- |
#include "dt-bindings/interrupt-controller/irq.h"
i2c {
#address-cells = <1>;
#size-cells = <0>;
touchscreen@2a {
compatible = "eeti,exc3000";
reg = <0x2a>;
interrupt-parent = <&gpio1>;
interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
touchscreen-size-x = <4096>;
touchscreen-size-y = <4096>;
touchscreen-inverted-x;
touchscreen-swapped-x-y;
};
};
26 changes: 0 additions & 26 deletions Documentation/devicetree/bindings/input/touchscreen/exc3000.txt

This file was deleted.

6 changes: 4 additions & 2 deletions Documentation/filesystems/f2fs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ compress_extension=%s Support adding specified extension, so that f2fs can enab
on compression extension list and enable compression on
these file by default rather than to enable it via ioctl.
For other files, we can still enable compression via ioctl.
Note that, there is one reserved special extension '*', it
can be set to enable compression for all files.
inlinecrypt When possible, encrypt/decrypt the contents of encrypted
files using the blk-crypto framework rather than
filesystem-layer encryption. This allows the use of
Expand Down Expand Up @@ -743,8 +745,8 @@ Compression implementation

- In order to eliminate write amplification during overwrite, F2FS only
support compression on write-once file, data can be compressed only when
all logical blocks in file are valid and cluster compress ratio is lower
than specified threshold.
all logical blocks in cluster contain valid data and compress ratio of
cluster data is lower than specified threshold.

- To enable compression on regular inode, there are three ways:

Expand Down
6 changes: 3 additions & 3 deletions Documentation/input/uinput.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ the sake of simplicity.

/*
* Give userspace some time to read the events before we destroy the
* device with UI_DEV_DESTOY.
* device with UI_DEV_DESTROY.
*/
sleep(1);

Expand Down Expand Up @@ -164,7 +164,7 @@ mouse.

/*
* Give userspace some time to read the events before we destroy the
* device with UI_DEV_DESTOY.
* device with UI_DEV_DESTROY.
*/
sleep(1);

Expand Down Expand Up @@ -233,7 +233,7 @@ but interact with uinput via ioctl calls, or use libevdev.

/*
* Give userspace some time to read the events before we destroy the
* device with UI_DEV_DESTOY.
* device with UI_DEV_DESTROY.
*/
sleep(1);

Expand Down
2 changes: 1 addition & 1 deletion drivers/hid/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ config HID
removed from the HID bus by the transport-layer drivers, such as
usbhid (USB_HID) and hidp (BT_HIDP).

For docs and specs, see http://www.usb.org/developers/hidpage/
For docs and specs, see https://www.usb.org/developers/hidpage/

If unsure, say Y.

Expand Down
2 changes: 1 addition & 1 deletion drivers/hid/hid-cp2112.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* host communicates with the CP2112 via raw HID reports.
*
* Data Sheet:
* http://www.silabs.com/Support%20Documents/TechnicalDocs/CP2112.pdf
* https://www.silabs.com/Support%20Documents/TechnicalDocs/CP2112.pdf
* Programming Interface Specification:
* https://www.silabs.com/documents/public/application-notes/an495-cp2112-interface-specification.pdf
*/
Expand Down
2 changes: 2 additions & 0 deletions drivers/hid/hid-ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@
#define USB_DEVICE_ID_LENOVO_CUSBKBD 0x6047
#define USB_DEVICE_ID_LENOVO_CBTKBD 0x6048
#define USB_DEVICE_ID_LENOVO_SCROLLPOINT_OPTICAL 0x6049
#define USB_DEVICE_ID_LENOVO_TP10UBKBD 0x6062
#define USB_DEVICE_ID_LENOVO_TPPRODOCK 0x6067
#define USB_DEVICE_ID_LENOVO_X1_COVER 0x6085
#define USB_DEVICE_ID_LENOVO_PIXART_USB_MOUSE_608D 0x608d
Expand Down Expand Up @@ -773,6 +774,7 @@
#define USB_DEVICE_ID_LOGITECH_G27_WHEEL 0xc29b
#define USB_DEVICE_ID_LOGITECH_WII_WHEEL 0xc29c
#define USB_DEVICE_ID_LOGITECH_ELITE_KBD 0xc30a
#define USB_DEVICE_ID_LOGITECH_GROUP_AUDIO 0x0882
#define USB_DEVICE_ID_S510_RECEIVER 0xc50c
#define USB_DEVICE_ID_S510_RECEIVER_2 0xc517
#define USB_DEVICE_ID_LOGITECH_CORDLESS_DESKTOP_LX500 0xc512
Expand Down
36 changes: 23 additions & 13 deletions drivers/hid/hid-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,13 @@ static int hidinput_query_battery_capacity(struct hid_device *dev)
u8 *buf;
int ret;

buf = kmalloc(2, GFP_KERNEL);
buf = kmalloc(4, GFP_KERNEL);
if (!buf)
return -ENOMEM;

ret = hid_hw_raw_request(dev, dev->battery_report_id, buf, 2,
ret = hid_hw_raw_request(dev, dev->battery_report_id, buf, 4,
dev->battery_report_type, HID_REQ_GET_REPORT);
if (ret != 2) {
if (ret < 2) {
kfree(buf);
return -ENODATA;
}
Expand Down Expand Up @@ -1560,21 +1560,12 @@ static bool __hidinput_change_resolution_multipliers(struct hid_device *hid,
{
struct hid_usage *usage;
bool update_needed = false;
bool get_report_completed = false;
int i, j;

if (report->maxfield == 0)
return false;

/*
* If we have more than one feature within this report we
* need to fill in the bits from the others before we can
* overwrite the ones for the Resolution Multiplier.
*/
if (report->maxfield > 1) {
hid_hw_request(hid, report, HID_REQ_GET_REPORT);
hid_hw_wait(hid);
}

for (i = 0; i < report->maxfield; i++) {
__s32 value = use_logical_max ?
report->field[i]->logical_maximum :
Expand All @@ -1593,6 +1584,25 @@ static bool __hidinput_change_resolution_multipliers(struct hid_device *hid,
if (usage->hid != HID_GD_RESOLUTION_MULTIPLIER)
continue;

/*
* If we have more than one feature within this
* report we need to fill in the bits from the
* others before we can overwrite the ones for the
* Resolution Multiplier.
*
* But if we're not allowed to read from the device,
* we just bail. Such a device should not exist
* anyway.
*/
if (!get_report_completed && report->maxfield > 1) {
if (hid->quirks & HID_QUIRK_NO_INIT_REPORTS)
return update_needed;

hid_hw_request(hid, report, HID_REQ_GET_REPORT);
hid_hw_wait(hid);
get_report_completed = true;
}

report->field[i]->value[j] = value;
update_needed = true;
}
Expand Down
Loading