android_kernel_asus_sm8350/drivers
Vadim Pasternak 83382eafc7 mlxsw: i2c: Limit single transaction buffer size
[ Upstream commit d7248f1cc835bd80e936dc5b2d94b149bdd0077d ]

Maximum size of buffer is obtained from underlying I2C adapter and in
case adapter allows I2C transaction buffer size greater than 100 bytes,
transaction will fail due to firmware limitation.

As a result driver will fail initialization.

Limit the maximum size of transaction buffer by 100 bytes to fit to
firmware.

Remove unnecessary calculation:
max_t(u16, MLXSW_I2C_BLK_DEF, quirk_size).
This condition can not happened.

Fixes: 3029a693be ("mlxsw: i2c: Allow flexible setting of I2C transactions size")
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-23 10:59:43 +02:00
..
accessibility
acpi ACPI: processor: perflib: Avoid updating frequency QoS unnecessarily 2023-08-11 11:53:53 +02:00
amba
android binder: fix memory leak in binder_init() 2023-08-16 18:19:23 +02:00
ata ata: pata_ns87415: mark ns87560_tf_read static 2023-08-11 11:53:49 +02:00
atm treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
auxdisplay
base regmap: rbtree: Use alloc_flags for memory allocations 2023-09-23 10:59:41 +02:00
bcma
block loop: Select I/O scheduler 'none' from inside add_disk() 2023-08-11 11:53:54 +02:00
bluetooth Bluetooth: nokia: fix value check in nokia_bluetooth_serdev_probe() 2023-09-23 10:59:42 +02:00
bus bus: ti-sysc: Flush posted write on enable before reset 2023-08-30 16:27:17 +02:00
cdrom
char hwrng: iproc-rng200 - Implement suspend and resume calls 2023-09-23 10:59:42 +02:00
clk clk: fixed-mmio: make COMMON_CLK_FIXED_MMIO depend on HAS_IOMEM 2023-09-23 10:59:39 +02:00
clocksource clocksource/drivers/cadence-ttc: Fix memory leak in ttc_timer_probe 2023-07-27 08:37:05 +02:00
connector
counter counter: 104-quad-8: Fix race condition between FLAG and CNTR reads 2023-05-17 11:35:31 +02:00
cpufreq cpufreq: powernow-k8: Use related_cpus instead of cpus in driver.exit() 2023-09-23 10:59:41 +02:00
cpuidle cpuidle: dt: Return the correct numbers of parsed idle states 2023-01-18 11:40:53 +01:00
crypto crypto: caam - fix unchecked return value error 2023-09-23 10:59:42 +02:00
dax
dca
devfreq PM/devfreq: governor: Add a private governor_data for governor 2023-01-18 11:41:52 +01:00
dio drivers: dio: fix possible memory leak in dio_init() 2023-01-18 11:41:21 +01:00
dma idmaengine: make FSL_EDMA and INTEL_IDMA64 depends on HAS_IOMEM 2023-09-23 10:59:39 +02:00
dma-buf dma-buf/sw_sync: Avoid recursive lock during fence signal 2023-08-30 16:27:28 +02:00
edac EDAC/skx: Fix overflows on the DRAM row address mapping arrays 2023-05-17 11:35:35 +02:00
eisa
extcon extcon: Fix kernel doc of property capability fields to avoid warnings 2023-07-27 08:37:20 +02:00
firewire treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
firmware firmware: stratix10-svc: Fix an NULL vs IS_ERR() bug in probe 2023-09-23 10:59:37 +02:00
fpga fpga: bridge: fix kernel-doc parameter description 2023-05-17 11:35:46 +02:00
fsi fsi: master-ast-cf: Add MODULE_FIRMWARE macro 2023-09-23 10:59:37 +02:00
gnss
gpio gpio: tps68470: Make tps68470_gpio_output() always set the initial value 2023-08-11 11:53:44 +02:00
gpu drm/amd/display: check TG is non-null before checking if enabled 2023-08-30 16:27:23 +02:00
greybus
hid HID: wacom: remove the battery when the EKR is off 2023-09-23 10:59:37 +02:00
hsi HSI: omap_ssi_core: Fix error handling in ssi_init() 2023-01-18 11:41:28 +01:00
hv Drivers: hv: vmbus: Fix vmbus_wait_for_unload() to scan present CPUs 2023-06-28 10:18:36 +02:00
hwmon hwmon: (nct7802) Fix for temp6 (PECI1) processed even if PECI1 disabled 2023-08-11 11:53:52 +02:00
hwspinlock
hwtracing coresight: Fix signedness bug in tmc_etr_buf_insert_barrier_packet() 2023-05-30 12:44:10 +01:00
i2c i2c: bcm-iproc: Fix bcm_iproc_i2c_isr deadlock issue 2023-08-30 16:27:15 +02:00
i3c
ide treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
idle
iio iio: addac: stx104: Fix race condition when converting analog-to-digital 2023-08-30 16:27:12 +02:00
infiniband IB/hfi1: Fix possible panic during hotplug remove 2023-08-16 18:19:24 +02:00
input Input: adxl34x - do not hardcode interrupt trigger type 2023-07-27 08:37:13 +02:00
interconnect interconnect: Do not skip aggregation for disabled paths 2023-08-30 16:27:27 +02:00
iommu iommu/amd: Fix "Guest Virtual APIC Table Root Pointer" configuration in IRTE 2023-08-30 16:27:12 +02:00
ipack
irqchip irqchip/mips-gic: Don't touch vl_map if a local interrupt is not routable 2023-08-30 16:27:27 +02:00
isdn mISDN: Update parameter type of dsp_cmx_send() 2023-08-16 18:19:23 +02:00
leds leds: trigger: netdev: Recheck NETDEV_LED_MODE_LINKUP on dev rename 2023-08-30 16:27:14 +02:00
lightnvm
macintosh macintosh: via-pmu-led: requires ATA to be set 2023-05-17 11:35:50 +02:00
mailbox mailbox: ti-msgmgr: Fill non-message tx data fields with 0x0 2023-07-27 08:37:23 +02:00
mcb mcb-pci: Reallocate memory region to avoid memory overlapping 2023-05-30 12:44:04 +01:00
md dm integrity: reduce vmalloc space footprint on 32-bit architectures 2023-08-30 16:27:22 +02:00
media media: vcodec: Fix potential array out-of-bounds in encoder queue_setup 2023-08-30 16:27:26 +02:00
memory memory: brcmstb_dpfe: fix testing array offset after use 2023-07-27 08:37:14 +02:00
memstick memstick r592: make memstick_debug_get_tpc_name() static 2023-07-27 08:37:10 +02:00
message scsi: message: mptlan: Fix use after free bug in mptlan_remove() due to race condition 2023-05-30 12:44:03 +01:00
mfd mfd: stmpe: Only disable the regulators if they are enabled 2023-07-27 08:37:22 +02:00
misc misc: pci_endpoint_test: Re-init completion for every test 2023-07-27 08:37:37 +02:00
mmc mmc: au1xmmc: force non-modular build and remove symbol_get usage 2023-09-23 10:59:36 +02:00
mtd mtd: rawnand: omap_elm: Fix incorrect type in assignment 2023-08-11 11:54:00 +02:00
mux
net mlxsw: i2c: Limit single transaction buffer size 2023-09-23 10:59:43 +02:00
nfc nfcsim.c: Fix error checking for debugfs_create_dir 2023-06-28 10:18:41 +02:00
ntb NTB: ntb_tool: Add check for devm_kcalloc 2023-07-27 08:37:32 +02:00
nubus
nvdimm
nvme nvme-rdma: fix potential unbalanced freeze & unfreeze 2023-08-16 18:19:24 +02:00
nvmem nvmem: core: fix cell removal on error 2023-02-22 12:50:28 +01:00
of of: Fix modalias string generation 2023-05-17 11:35:47 +02:00
opp OPP: Fix passing 0 to PTR_ERR in _opp_attach_genpd() 2023-09-23 10:59:40 +02:00
oprofile
parisc parisc: led: Fix potential null-ptr-deref in start_task() 2023-01-18 11:41:50 +01:00
parport
pci PCI: acpiphp: Use pci_assign_unassigned_bridge_resources() only for non-root bus 2023-08-30 16:27:26 +02:00
pcmcia pcmcia: rsrc_nonstatic: Fix memory leak in nonstatic_release_resource_db() 2023-08-30 16:27:10 +02:00
perf perf/imx_ddr: don't enable counter0 if none of 4 counters are used 2023-09-23 10:59:41 +02:00
phy phy: hisilicon: Fix an out of bounds check in hisi_inno_phy_probe() 2023-08-11 11:53:47 +02:00
pinctrl pinctrl: amd: Don't show Invalid config param errors 2023-09-23 10:59:37 +02:00
platform platform/mellanox: Fix mlxbf-tmfifo not handling all virtio CONSOLE notifications 2023-09-23 10:59:39 +02:00
pnp PNP: fix name memory leak in pnp_alloc_dev() 2023-01-18 11:40:54 +01:00
power power: supply: Fix logic checking if system is running from battery 2023-06-21 15:44:09 +02:00
powercap powercap: RAPL: Fix CONFIG_IOSF_MBI dependency 2023-07-27 08:37:06 +02:00
pps
ps3
ptp ptp_qoriq: fix memory leak in probe() 2023-04-05 11:16:43 +02:00
pwm pwm: meson: fix handling of period/duty if greater than UINT_MAX 2023-08-11 11:53:46 +02:00
rapidio rapidio: devices: fix missing put_device in mport_cdev_open 2023-01-18 11:40:59 +01:00
ras
regulator regulator: core: Streamline debugfs operations 2023-07-27 08:37:07 +02:00
remoteproc remoteproc: st: Call of_node_put() on iteration error 2023-05-17 11:36:01 +02:00
reset
rpmsg rpmsg: glink: Avoid infinite loop on intent for missing channel 2023-03-11 16:43:53 +01:00
rtc rtc: ds1685: use EXPORT_SYMBOL_GPL for ds1685_rtc_poweroff 2023-09-23 10:59:36 +02:00
s390 s390/dasd: fix hanging device after request requeue 2023-09-23 10:59:38 +02:00
sbus
scsi scsi: storvsc: Always set no_report_opcodes 2023-09-23 10:59:39 +02:00
sfi
sh
siox
slimbus
soc soc/fsl/qe: fix usb.c build errors 2023-07-27 08:37:14 +02:00
soundwire
spi spi: tegra20-sflash: fix to check return value of platform_get_irq() in tegra_sflash_probe() 2023-09-23 10:59:41 +02:00
spmi spmi: Add a check for remove callback when removing a SPMI driver 2023-05-17 11:35:49 +02:00
ssb treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
staging staging: rtl8712: fix race condition 2023-09-23 10:59:37 +02:00
target scsi: target: iscsi: Prevent login threads from racing between each other 2023-06-28 10:18:40 +02:00
tc
tee
thermal thermal: intel: BXT_PMIC: select REGMAP instead of depending on it 2023-03-11 16:44:13 +01:00
thunderbolt thunderbolt: Use const qualifier for ring_interrupt_index 2023-04-05 11:16:39 +02:00
tty serial: sc16is7xx: fix bug when first setting GPIO direction 2023-09-23 10:59:37 +02:00
uio uio: uio_dmem_genirq: Fix deadlock between irq config and handling 2023-01-18 11:41:22 +01:00
usb USB: serial: option: add FOXCONN T99W368/T99W373 product 2023-09-23 10:59:37 +02:00
vfio vfio: platform: Do not pass return buffer to ACPI _RST method 2023-01-18 11:41:22 +01:00
vhost treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
video fbdev: fix potential OOB read in fast_imageblit() 2023-08-30 16:27:21 +02:00
virt
virtio virtio-mmio: don't break lifecycle of vm_dev 2023-08-30 16:27:15 +02:00
visorbus
vlynq
vme vme: Fix error not catched in fake_init() 2023-01-18 11:41:26 +01:00
w1 w1: fix loop in w1_fini() 2023-07-27 08:37:19 +02:00
watchdog watchdog: menz069_wdt: fix watchdog initialisation 2023-06-09 10:28:55 +02:00
xen xen/pvcalls-back: fix double frees with pvcalls_new_active_socket() 2023-05-30 12:44:10 +01:00
zorro
Kconfig
Makefile