Commit graph

894,770 commits

Author SHA1 Message Date
Pali Rohár
abbeaaddc1 exfat: Simplify exfat_utf8_d_hash() for code points above U+FFFF
Function partial_name_hash() takes long type value into which can be stored
one Unicode code point. Therefore conversion from UTF-32 to UTF-16 is not
needed.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Git-commit: dddf7da3985ee144b46ee287e81e47b9ee8bb980
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: lixiang <lixiang@codeaurora.org>
2021-02-22 11:22:31 +08:00
Joe Perches
f1ea0af86b exfat: Use a more common logging style
Remove the direct use of KERN_<LEVEL> in functions by creating
separate exfat_<level> macros.

Miscellanea:

o Remove several unnecessary terminating newlines in formats
o Realign arguments and fit to 80 columns where appropriate

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Git-commit: d1727d55c0327efdba2a5bad7801d509b721fef3
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: lixiang <lixiang@codeaurora.org>
2021-02-22 11:22:29 +08:00
Pali Rohár
6d48c579cc exfat: Simplify exfat_utf8_d_cmp() for code points above U+FFFF
If two Unicode code points represented in UTF-16 are different then also
their UTF-32 representation must be different. Therefore conversion from
UTF-32 to UTF-16 is not needed.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Git-commit: 197298a64983e2beaf1a87413daff3044b4f3821
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: lixiang <lixiang@codeaurora.org>
2021-02-22 11:22:24 +08:00
Wei Yongjun
825b6f8a99 exfat: fix possible memory leak in exfat_find()
'es' is malloced from exfat_get_dentry_set() in exfat_find() and should
be freed before leaving from the error handling cases, otherwise it will
cause memory leak.

Fixes: 5f2aa075070c ("exfat: add inode operations")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Git-commit: 94182167ec730dadcaea5fbc6bb8f1136966ef66
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: lixiang <lixiang@codeaurora.org>
2021-02-22 11:21:52 +08:00
Eric Sandeen
2e00273fd9 exfat: use iter_file_splice_write
Doing copy_file_range() on exfat with a file opened for direct IO leads
to an -EFAULT:

       -c "copy_range -d 16384 -l 16384 -f 0" /mnt/test/junk
copy_range: Bad address

and the reason seems to be that we go through:

default_file_splice_write
 splice_from_pipe
  __splice_from_pipe
   write_pipe_buf
    __kernel_write
     new_sync_write
      generic_file_write_iter
       generic_file_direct_write
        exfat_direct_IO
         do_blockdev_direct_IO
          iov_iter_get_pages

and land in iterate_all_kinds(), which does "return -EFAULT" for our kvec
iter.

Setting exfat's splice_write to iter_file_splice_write fixes this and lets
fsx (which originally detected the problem) run to success from
the xfstests harness.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Git-commit: 035779483072ff7854943dc0cbae82c4e0070d15
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: lixiang <lixiang@codeaurora.org>
2021-02-22 10:46:32 +08:00
Eric Sandeen
ab2add7a46 exfat: truncate atimes to 2s granularity
The timestamp for access_time has double seconds granularity(There is no
10msIncrement field for access_time unlike create/modify_time).
exfat's atimes are restricted to only 2s granularity so after
we set an atime, round it down to the nearest 2s and set the
sub-second component of the timestamp to 0.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Git-commit: 81df1ad40644b706a1cdbd28a1471f9f0c0ea3e8
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: lixiang <lixiang@codeaurora.org>
2021-02-22 10:45:35 +08:00
Eric Sandeen
aeabe3d3e8 exfat: properly set s_time_gran
The s_time_gran superblock field indicates the on-disk nanosecond
granularity of timestamps, and for exfat that seems to be 10ms, so
set s_time_gran to 10000000ns. Without this, in-memory timestamps
change when they get re-read from disk.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Git-commit: 674a9985b8e35288225f2b67829a7dee3bf761da
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: lixiang <lixiang@codeaurora.org>
2021-02-22 10:44:24 +08:00
Tetsuhiro Kohada
26b4ea6821 exfat: remove 'bps' mount-option
remount fails because exfat_show_options() returns unsupported
option 'bps'.
> # mount -o ro,remount
> exfat: Unknown parameter 'bps'

To fix the problem, just remove 'bps' option from exfat_show_options().

Signed-off-by: Tetsuhiro Kohada <Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Git-commit: cbd445d9a9bdb7020beee2477577b9472cca60be
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: lixiang <lixiang@codeaurora.org>
2021-02-22 10:43:28 +08:00
Tetsuhiro Kohada
8d5268375f exfat: Unify access to the boot sector
Unify access to boot sector via 'sbi->pbr_bh'.
This fixes vol_flags inconsistency at read failed in fs_set_vol_flags(),
and buffer_head leak in __exfat_fill_super().

Signed-off-by: Tetsuhiro Kohada <Kohada.Tetsuhiro@dc.MitsubishiElectric.co.jp>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Git-commit: b0516833d8096c40ead3169c90d87392fb5f8f45
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: lixiang <lixiang@codeaurora.org>
2021-02-22 10:42:32 +08:00
Thomas Backlund
f3a0472900 exfat: add missing MODULE_ALIAS_FS()
This adds the necessary MODULE_ALIAS_FS() to exfat so the module gets
automatically loaded when an exfat filesystem is mounted.

Signed-off-by: Thomas Backlund <tmb@mageia.org>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Git-commit: cd76ac258cd92a6425cb68f95a76d6abdce5395a
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: lixiang <lixiang@codeaurora.org>
2021-02-22 10:40:14 +08:00
Pali Rohár
5d49b18801 exfat: Fix discard support
Discard support was always unconditionally disabled. Now it is disabled
only in the case when blk_queue_discard() returns false.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Git-commit: b7e038a92449f191395fbb86538b14093c529833
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: lixiang <lixiang@codeaurora.org>
2021-02-22 10:38:01 +08:00
Lakshit Tyagi
d517d32a3f msm: Add config option for AQC glue driver
Add kernel config option for AQC glue driver for IOSSv2.

Change-Id: I70b328962867c9ef66428beb0cbd895285615094
Signed-off-by: Lakshit Tyagi <ltyagi@codeaurora.org>
2021-02-21 05:12:52 -08:00
Phanindra Babu Pabba
79489487a7 defconfig: Enable qseecom for sdxnightjar
Add config flag to enable qseecom and
TZ diag log drivers for sdxnightjar.

Change-Id: I68017faf02c1ca8f1f6a68ef01b93cb436abc04a
Signed-off-by: Phanindra Babu Pabba <pabba@codeaurora.org>
2021-02-20 02:23:27 -08:00
qctecmdr
98ed180626 Merge "usb: dwc3: Add debugfs entry to toggle compliance pattern" 2021-02-19 22:41:25 -08:00
qctecmdr
c63c285927 Merge "msm: pcie: add sysfs entry to output PCIe link ASPM stats" 2021-02-19 22:41:24 -08:00
qctecmdr
d7006445cf Merge "usb: dwc3-msm: Prevent switch to peripheral for host-mode only core" 2021-02-19 22:41:24 -08:00
qctecmdr
4918c41c06 Merge "msm: kgsl: Signal dump_gate only when worker finishes work" 2021-02-19 22:41:24 -08:00
qctecmdr
30bc6cb0a6 Merge "input: touchscreen: nt36xxx: Use disable/enable irq wake in LA to LE" 2021-02-19 22:41:23 -08:00
qctecmdr
04707ce95b Merge "tty: serial: msm: Add suspend resume support" 2021-02-19 22:41:23 -08:00
qctecmdr
78e3282dfd Merge "Kbuild: Support nested composite objects" 2021-02-19 22:41:22 -08:00
Deepak Kumar
cfc73b1e63 msm: kgsl: Access map_count only if entry is successfully allocated
In kgsl_mem_entry_create, access map_count only if entry is allocated
successfully to avoid invalid access.

Change-Id: I57bce1aec2da6a27b6d13dbee96ed86a45c9660c
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2021-02-19 23:35:25 +05:30
Ritesh Kumar
e44ea45369 input: touchscreen: nt36xxx: Use disable/enable irq wake in LA to LE
Touch uses gpio as irq in LA. As per latest change from pinctrl,
wakeup bit is disabled/enabled when disable_irq/enable_irq is called.
During transtion from LA to LE, disable_irq is called leading to
wakeup bit getting disabled and in LE Touch interrupts does not come.
So, use disable_irq_wake to disable Touch interrupts while transition
from LA to LE and use enable_irq_wake to enable back Touch interrupts
while transition from LE to LA.

Change-Id: Iad3391af40535d51daeef881c3d62b3ec893fff2
Signed-off-by: Ritesh Kumar <riteshk@codeaurora.org>
2021-02-19 07:18:04 -08:00
qctecmdr
cb6f97e574 Merge "drivers: soc: Add support for SM6150 llcc driver" 2021-02-19 05:45:46 -08:00
qctecmdr
b76d27384f Merge "defconfig: gen3auto: Enable Socinfo driver" 2021-02-19 05:45:45 -08:00
qctecmdr
e7a67c2747 Merge "Perf: Enable pmuv3 on 32 bit kernel" 2021-02-19 05:45:45 -08:00
qctecmdr
1db319056f Merge "smcinvoke: Update the correct result from qseecom" 2021-02-19 05:45:45 -08:00
qctecmdr
f5d108f404 Merge "msm: ep_pcie: Changes to avoid handle_perst_wq schedule out" 2021-02-19 05:45:45 -08:00
Aniket Randive
e5dc88d6c2 spi: spi-msm-geni: Set the mode1 for SPI slave
Spi slave will support only mode1, so set the CPHA parameter
for spi slave.

wrongly added condition by merge conflict, hence removing it.

Change-Id: I37f9b159b01c9253de1a9e8b46e41160fa940660
Signed-off-by: Aniket Randive <arandive@codeaurora.org>
2021-02-19 18:31:57 +05:30
Kavya Nunna
69a7ad9a03 power: smb1351: Remove otg_vreg support for charger
In the current deign, it is expected for the charger driver
to detect OTG and enable it without the USB driver to
explicitly enable it. As this support exists in the driver,
remove the OTG regulator configuration.

Change-Id: I165b144a2a8be88b493142de3a4a645e07f06253
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2021-02-19 17:30:53 +05:30
Pankaj Gupta
7a7d99de04 msm: kgsl: Signal dump_gate only when worker finishes work
Currently we are accessing snapshot structure after signaling
dump_gate. In corner cases this worker can get preempted
before driver reads this variable, and eventually client
dumps the snapshot and snapshot object gets released.
When worker gets back in execution it will read freed memory
and will case kernel panic.
To fix this race, do completion for dump_gate after finishing
work in worker kgsl_snapshot_save_frozen_objs.

Change-Id: Iaf3c9f9e75a6e3e19653d2d166e2da624796ec98
Signed-off-by: Pankaj Gupta <gpankaj@codeaurora.org>
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2021-02-19 17:25:17 +05:30
qctecmdr
6753ae03b3 Merge "i2c-msm-geni: Bypass ICC vote check for LE when dumping register" 2021-02-19 01:29:08 -08:00
qctecmdr
12af436ce6 Merge "usb: dwc3: Handle race between composition switch and cable disconnect" 2021-02-19 01:29:07 -08:00
qctecmdr
d2087f76fa Merge "defconfig: enable memory dump for perf build on sdxnightjar" 2021-02-19 01:29:07 -08:00
qctecmdr
91801e9520 Merge "Add support for new versions for BT chip" 2021-02-19 01:29:06 -08:00
qctecmdr
e39b3087c2 Merge "drivers: qcom: boot_stats: Update function signature" 2021-02-19 01:29:06 -08:00
qctecmdr
31e40c1439 Merge "drivers: qcom: socinfo: Add support for ADP hardware type" 2021-02-19 01:29:06 -08:00
qctecmdr
7c1dca2311 Merge "driver: soc: adsp vote: QMI driver to send ADSP vote" 2021-02-19 01:29:06 -08:00
qctecmdr
407c5c2763 Merge "msm: config: Enable adsprpc configuration" 2021-02-19 01:29:05 -08:00
qctecmdr
a3447330d7 Merge "defconfig: gen3auto: Set CONFIG_BLK_DEV_LOOP_MIN_COUNT to 16 for vts test" 2021-02-19 01:29:05 -08:00
qctecmdr
83857705fd Merge "usb: f_fs: Avoid use-after-free of epfile" 2021-02-19 01:29:05 -08:00
qctecmdr
c0c35a301d Merge "clk: qcom: gcc-yupik: Add support for PCIE clocks in YUPIK" 2021-02-19 01:29:04 -08:00
Harsh Agarwal
83e104196c usb: dwc3-msm: Prevent switch to peripheral for host-mode only core
Currently certain platforms have cores which are only host-mode
compatible. Prevent switch to peripharal mode for such cores so
as to prevent unanticipated core behavior and crashes.

Change-Id: I163e878bfe7428ed339409adb8a491a6673ca055
Signed-off-by: Harsh Agarwal <harshq@codeaurora.org>
2021-02-19 00:54:30 -08:00
Piyush Dhyani
af46da5732 msm: ipa3: Adding IPA defconfig WLAN dependent on this flag
Adding changes to enable IPA defconfig for WLAN.

Change-Id: Ibe944dc00e0fdda8b823bad2abd2e7e0fb330264
Signed-off-by: Piyush Dhyani <pdhyani@codeaurora.org>
2021-02-19 13:46:53 +05:30
Pradeep P V K
d9d4222de7 mmc: host: Check for reset prior to DMA address unmap
Upon any command errors we should do a CMD and DAT reset
prior to DMA unmap but the current logic is other way.

So, with the existing change it could possible to access the
unmapped address before resetting and this leads to SMMU unmapped
address access faults. So, check for reset prior to DMA unmap.

Change-Id: I89a751118b00df1c952693a713cb5060739a0ed5
Suggested-by: Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Signed-off-by: Pradeep P V K <pragalla@codeaurora.org>
2021-02-19 12:52:06 +05:30
Anant Goel
081612311e soc: qcom: pil: Refine error handling for SCM ICC client
A NULL return for ICC get is valid for platforms where
CONFIG_INTERCONNECT is not defined. Refine the error handling
for the scm perf client to allow a NULL value.

Change-Id: I714a9091000e99aecb466a54968a140868659410
Signed-off-by: Anant Goel <anantg@codeaurora.org>
2021-02-18 21:53:03 -08:00
Mohammed Siddiq
4a70bdb237 cnss2: Add api to get pci reg dump for hang data
Add a cnss wrapper api to get pci reg dump for hang data.

Change-Id: Ic1e7b676b6999d8aa7f168625dd27fa7b9aa7746
Signed-off-by: Mohammed Siddiq <msiddiq@codeaurora.org>
2021-02-18 20:50:20 -08:00
Dennis Cagle
9f517a3751 defconfig: sdxlemur: Enable LKDTM driver
Enable LKDTM driver to enable testing PAN features

Change-Id: I4b6ddd88fb730d1814cfd77262faf7269470c266
Signed-off-by: Dennis Cagle <dcagle@codeaurora.org>
2021-02-18 19:30:50 -08:00
Guru Das Srinagesh
653c4926c3 power: smb5: Disable bat-temp irq upon debug battery detection
On some boards, debug batteries cause a high value of battery
temperature to be read due to HW faults, and thereby, the continuous
triggering of the "bat-temp" interrupt. Prevent this false positive from
occurring.

Change-Id: I7c8058d3470159bd3ee423bc9c4873c5fb4973b0
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
2021-02-18 12:32:39 -08:00
Vijayavardhan Vennapusa
c97caf3317 dt-bindings: add required macro definitions for SSPHY registers
Add required macro definitions for SSPHY registers to be accessed
for platforms having 11nm SSPHY.

Change-Id: Idc0de1e701f7c84a13a0795b6e3af9000563e324
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2021-02-18 09:54:43 -08:00
qctecmdr
84df7e4035 Merge "defconfig: gen3auto_debug: Add flags for suspend debug" 2021-02-18 03:01:54 -08:00