android_kernel_motorola_sm6375/drivers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Leilk.Liu 7dc48c447a i2c: mediatek: fix potential incorrect use of I2C_MASTER_WRRD
[ Upstream commit b492183652808e0f389272bf63dc836241b287ff ]

The old IC does not support the I2C_MASTER_WRRD (write-then-read)
function, but the current code’s handling of i2c->auto_restart may
potentially lead to entering the I2C_MASTER_WRRD software flow,
resulting in unexpected bugs.

Instead of repurposing the auto_restart flag, add a separate flag
to signal I2C_MASTER_WRRD operations.

Also fix handling of msgs. If the operation (i2c->op) is
I2C_MASTER_WRRD, then the msgs pointer is incremented by 2.
For all other operations, msgs is simply incremented by 1.

Fixes: b2ed11e224 ("I2C: mediatek: Add driver for MediaTek MT8173 I2C controller")
Signed-off-by: Leilk.Liu <leilk.liu@mediatek.com>
Suggested-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-29 13:59:46 +01:00
..
accessibility
acpi ACPI: processor: idle: Fix memory leak when register cpuidle device failed 2025-10-29 13:59:46 +01:00
amba
android
ata ata: Fix SATA_MOBILE_LPM_POLICY description in Kconfig 2025-08-28 16:21:35 +02:00
atm atm: atmtcp: Prevent arbitrary write in atmtcp_recv_control(). 2025-09-04 14:05:54 +02:00
auxdisplay
base regmap: Remove superfluous check for !config in __regmap_init() 2025-10-29 13:59:46 +01:00
bcma
block drbd: add missing kref_get in handle_write_conflicts 2025-08-28 16:21:24 +02:00
bluetooth
bus Revert "bus: ti-sysc: Probe for l4_wkup and l4_cfg interconnect devices first" 2025-06-27 11:02:55 +01:00
cdrom
char ipmi: Fix strcpy source and destination the same 2025-08-28 16:21:29 +02:00
clk clk: sunxi-ng: v3s: Fix de clock definition 2025-08-28 16:21:20 +02:00
clocksource clocksource/i8253: Use raw_spinlock_irqsave() in clockevent_i8253_disable() 2025-06-04 14:32:29 +02:00
connector
counter
cpufreq cpufreq: armada-8k: Fix off by one in armada_8k_cpufreq_free_table() 2025-08-28 16:21:30 +02:00
cpuidle cpuidle: menu: Avoid discarding useful information 2025-06-04 14:32:32 +02:00
crypto crypto: qat - fix seq_file position update in adf_ring_next() 2025-08-28 16:21:21 +02:00
dax
dca
devfreq
dio
dma dmaengine: qcom: bam_dma: Fix DT error handling for num-channels/ees 2025-10-02 13:34:29 +02:00
dma-buf dma-buf: fix timeout handling in dma_resv_wait_timeout v2 2025-07-17 18:25:04 +02:00
edac EDAC/altera: Delete an inappropriate dma_free_coherent() call 2025-10-02 13:34:27 +02:00
eisa
extcon
firewire
firmware firmware: psci: Fix refcount leak in psci_dt_init 2025-06-27 11:02:46 +01:00
fpga fpga: zynq_fpga: Fix the wrong usage of dma_map_sgtable() 2025-08-28 16:21:32 +02:00
fsi
gnss
gpio gpio: pca953x: fix IRQ storm on system wake up 2025-09-09 18:44:00 +02:00
gpu drm/gma500: Fix null dereference in hdmi teardown 2025-10-02 13:34:33 +02:00
greybus
hid HID: hid-ntrig: fix unable to handle page fault in ntrig_report_version() 2025-09-04 14:05:56 +02:00
hsi
hv
hwmon hwmon: (occ) fix unaligned accesses 2025-06-27 11:02:57 +01:00
hwspinlock
hwtracing
i2c i2c: mediatek: fix potential incorrect use of I2C_MASTER_WRRD 2025-10-29 13:59:46 +01:00
i3c i3c: don't fail if GETHDRCAP is unsupported 2025-08-28 16:21:29 +02:00
ide
idle
iio iio: light: opt3001: fix deadlock due to concurrent flag access 2025-09-09 18:44:00 +02:00
infiniband IB/mlx5: Fix obj_type mismatch for SRQ event subscriptions 2025-10-02 13:34:33 +02:00
input Input: xpad - set correct controller type for Acer NGR200 2025-08-28 16:21:14 +02:00
interconnect
iommu
ipack
irqchip
isdn mISDN: Fix memory leak in dsp_hwec_enable() 2025-09-09 18:43:57 +02:00
leds
lightnvm
macintosh
mailbox mailbox: Not protect module_put with spin_lock_irqsave 2025-07-17 18:24:49 +02:00
mcb
md dm-integrity: limit MAX_TAG_SIZE to 255 2025-10-29 13:59:45 +01:00
media media: rc: fix races with imon_disconnect() 2025-10-29 13:59:45 +01:00
memory
memstick memstick: Fix deadlock by moving removing flag earlier 2025-08-28 16:21:32 +02:00
message
mfd mfd: max14577: Fix wakeup source leaks on device unbind 2025-07-17 18:24:49 +02:00
misc misc: rtsx: usb: Ensure mmc child device is active when card is present 2025-08-28 16:21:30 +02:00
mmc mmc: mvsdio: Fix dma_unmap_sg() nents value 2025-10-02 13:34:31 +02:00
mtd mtd: nand: raw: atmel: Respect tAR, tCLR in read setup timing 2025-10-02 13:34:28 +02:00
mux
net wifi: rtlwifi: rtl8192cu: Don't claim USB ID 07b8:8188 2025-10-29 13:59:45 +01:00
nfc
ntb
nubus
nvdimm libnvdimm/labels: Fix divide error in nd_label_data_init() 2025-06-04 14:32:30 +02:00
nvme nvmet-tcp: don't restore null sk_state_change 2025-06-04 14:32:35 +02:00
nvmem
of
opp
oprofile
parisc
parport
pci PCI/ACPI: Fix runtime PM ref imbalance on Hot-Plug Capable ports 2025-08-28 16:21:33 +02:00
pcmcia pcmcia: omap_cf: Mark driver struct with __refdata to prevent section mismatch 2025-10-02 13:34:30 +02:00
perf perf: arm_spe: Prevent overflow in PERF_IDX2OFF() 2025-10-29 13:59:46 +01:00
phy phy: ti-pipe3: fix device leak at unbind 2025-10-02 13:34:30 +02:00
pinctrl pinctrl: meson-gxl: add missing i2c_d pinmux 2025-10-29 13:59:46 +01:00
platform platform/x86: thinkpad_acpi: Handle KCOV __init vs inline mismatches 2025-08-28 16:21:25 +02:00
pnp
power power: supply: bq27xxx: restrict no-battery detection to bq27000 2025-10-02 13:34:31 +02:00
powercap
pps pps: fix poll support 2025-08-28 16:21:18 +02:00
ps3
ptp
pwm pwm: tiehrpwm: Fix corner case in clock divisor calculation 2025-10-29 13:59:46 +01:00
rapidio drivers/rapidio/rio_cm.c: prevent possible heap overwrite 2025-06-27 11:02:56 +01:00
ras
regulator regulator: core: fix NULL dereference on unbind due to stale coupling data 2025-08-28 16:21:17 +02:00
remoteproc
reset
rpmsg rpmsg: qcom_smd: Fix uninitialized return variable in __qcom_smd_send() 2025-06-27 11:02:48 +01:00
rtc rtc: ds1307: handle oscillator stop flag (OSF) for ds1341 2025-08-28 16:21:35 +02:00
s390 scsi: s390: zfcp: Ensure synchronous unit_add 2025-06-27 11:02:56 +01:00
sbus
scsi scsi: lpfc: Fix buffer free/clear order in deferred receive path 2025-09-09 18:43:59 +02:00
sfi
sh
siox
slimbus
soc soc: qcom: rpmh-rsc: Unconditionally clear _TRIGGER bit for TCS 2025-10-29 13:59:46 +01:00
soundwire soundwire: stream: restore params when prepare ports fail 2025-08-28 16:21:21 +02:00
spi spi: spi-fsl-lpspi: Reset FIFO and disable module on transfer abort 2025-09-09 18:44:01 +02:00
spmi
ssb
staging staging: axis-fifo: flush RX FIFO on read errors 2025-10-29 13:59:45 +01:00
target scsi: target: target_core_configfs: Add length check to avoid buffer overflow 2025-10-29 13:59:44 +01:00
tc
tee tee: Prevent size calculation wraparound on 32-bit kernels 2025-06-27 11:02:55 +01:00
thermal thermal: sysfs: Return ENODATA instead of EAGAIN for reads 2025-08-28 16:21:25 +02:00
thunderbolt thunderbolt: Fix copy+paste error in match_service_id() 2025-08-28 16:21:30 +02:00
tty serial: sc16is7xx: fix bug in flow control levels init 2025-10-02 13:34:32 +02:00
uio uio_hv_generic: Use correct size for interrupt and monitor pages 2025-06-27 11:02:52 +01:00
usb USB: serial: option: add SIMCom 8230C compositions 2025-10-29 13:59:45 +01:00
vfio
vhost vhost/net: Protect ubufs with rcu read lock in vhost_net_ubuf_put() 2025-09-04 14:05:53 +02:00
video fbcon: Fix OOB access in font allocation 2025-10-02 13:34:34 +02:00
virt
virtio
visorbus
vlynq
vme
w1
watchdog watchdog: dw_wdt: Fix default timeout 2025-08-28 16:21:27 +02:00
xen xen/swiotlb: relax alignment requirements 2025-06-04 14:32:37 +02:00
zorro
Kconfig
Makefile