android_kernel_oneplus_msm8998/drivers/i2c/busses
Sowjanya Komatineni fefcb294a4 i2c: tegra: fix maximum transfer size
commit f4e3f4ae1d9c9330de355f432b69952e8cef650c upstream.

Tegra186 and prior supports maximum 4K bytes per packet transfer
including 12 bytes of packet header.

This patch fixes max write length limit to account packet header
size for transfers.

Cc: stable@vger.kernel.org # 4.4+

Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-03-23 08:44:37 +01:00
..
i2c-acorn.c
i2c-ali15x3.c
i2c-ali1535.c
i2c-ali1563.c
i2c-amd756-s4882.c
i2c-amd756.c
i2c-amd8111.c
i2c-at91.c i2c: at91: ensure state is restored after suspending 2017-10-21 17:09:06 +02:00
i2c-au1550.c i2c: au1550: Convert to devm_kzalloc and devm_ioremap_resource 2015-10-23 23:31:11 +02:00
i2c-axxia.c i2c-axxia: check for error conditions first 2019-02-20 10:13:09 +01:00
i2c-bcm-iproc.c i2c: iproc: Add suspend/resume support 2015-06-03 03:04:53 +09:00
i2c-bcm-kona.c
i2c-bcm2835.c i2c: busses: i2c-bcm2835: limits cdiv to allowed values 2015-06-23 19:55:19 +02:00
i2c-bfin-twi.c i2c: Fix typo in i2c-bfin-twi.c 2015-07-31 13:32:31 +02:00
i2c-brcmstb.c i2c: brcmstb: allocate correct amount of memory for regmap 2016-03-09 15:34:56 -08:00
i2c-cadence.c i2c: cadence: Fix the hold bit setting 2019-03-23 08:44:33 +01:00
i2c-cbus-gpio.c
i2c-cpm.c i2c: cpm: Fix build break due to incompatible pointer types 2016-05-04 14:48:47 -07:00
i2c-cros-ec-tunnel.c i2c: cros-ec-tunnel: Fix usage of cros_ec_cmd_xfer() 2016-09-07 08:32:43 +02:00
i2c-davinci.c i2c: davinci: Avoid zero value of CLKH 2018-09-05 09:18:35 +02:00
i2c-designware-baytrail.c
i2c-designware-core.c i2c: designware: fix IO timeout issue for AMD controller 2015-12-12 18:00:16 +01:00
i2c-designware-core.h i2c: designware: fix IO timeout issue for AMD controller 2015-12-12 18:00:16 +01:00
i2c-designware-pcidrv.c i2c: add ACPI support for I2C mux ports 2015-10-25 15:49:46 +01:00
i2c-designware-platdrv.c i2c: designware: Fix system suspend 2017-08-30 10:19:23 +02:00
i2c-digicolor.c
i2c-diolan-u2c.c
i2c-dln2.c
i2c-efm32.c i2c: efm32: fix a failure path in efm32_i2c_probe() 2016-08-20 18:09:19 +02:00
i2c-eg20t.c i2c-eg20t: fix race between i2c init and interrupt enable 2016-09-30 10:18:38 +02:00
i2c-elektor.c
i2c-emev2.c i2c: emev2: add driver 2015-08-10 08:37:29 +02:00
i2c-exynos5.c i2c: exynos5: Fix possible ABBA deadlock by keeping I2C clock prepared 2016-05-04 14:48:47 -07:00
i2c-gpio.c
i2c-highlander.c
i2c-hix5hd2.c i2c: hix5hd2: Fix modalias to make module auto-loading work 2015-05-12 18:09:33 +02:00
i2c-hydra.c
i2c-i801.c i2c: i801: Allow ACPI AML access I/O ports not reserved for SMBus 2018-10-10 08:52:09 +02:00
i2c-ibm_iic.c i2c: ibm-iic: Fix module autoload for OF platform driver 2015-10-20 18:14:01 +02:00
i2c-ibm_iic.h
i2c-img-scb.c i2c: img-scb: verify support for requested bit rate 2015-10-10 08:40:11 +01:00
i2c-imx.c i2c: imx: Fix race condition in dma read 2018-08-24 13:27:01 +02:00
i2c-iop3xx.c
i2c-iop3xx.h
i2c-isch.c
i2c-ismt.c i2c: ismt: fix wrong device address when unmap the data buffer 2018-08-17 20:56:44 +02:00
i2c-jz4780.c i2c: jz4780: drop superfluous init 2017-09-02 07:06:50 +02:00
i2c-kempld.c
i2c-lpc2k.c i2c: lpc2k: add driver 2015-08-24 14:05:18 +02:00
i2c-meson.c i2c: meson: fix wrong variable usage in meson_i2c_put_data 2017-10-08 10:14:20 +02:00
i2c-mpc.c
i2c-mt65xx.c i2c: mediatek: add i2c resume support 2015-10-23 21:58:32 +02:00
i2c-mv64xxx.c i2c: mv64xxx: Apply errata delay only in standard mode 2018-05-30 07:49:11 +02:00
i2c-mxs.c i2c: constify platform_device_id 2015-05-12 18:27:48 +02:00
i2c-nforce2-s4985.c
i2c-nforce2.c
i2c-nomadik.c
i2c-ocores.c i2c: ocores: support big-endian register layout 2015-10-20 17:47:45 +02:00
i2c-octeon.c i2c: octeon: remove unused signal handling 2015-06-17 14:50:03 +02:00
i2c-omap.c i2c: omap: fix cleanup regression 2015-08-10 08:37:33 +02:00
i2c-opal.c
i2c-parport-light.c
i2c-parport.c i2c: parport: start using pr_fmt 2015-08-10 08:37:28 +02:00
i2c-parport.h i2c: parport: Add VCT-jig adapter 2015-08-10 08:37:34 +02:00
i2c-pasemi.c
i2c-pca-isa.c
i2c-pca-platform.c
i2c-piix4.c i2c: piix4: Fix request_region size 2017-06-17 06:39:36 +02:00
i2c-pmcmsp.c
i2c-pnx.c Merge branch 'i2c/for-4.4' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2015-11-10 11:58:25 -08:00
i2c-powermac.c
i2c-puv3.c
i2c-pxa-pci.c
i2c-pxa.c i2c: pxa: Add support for pxa910/988 & new configuration features 2015-10-25 09:36:43 +01:00
i2c-qup.c i2c: qup: skip qup_i2c_suspend if the device is already runtime suspended 2016-09-30 10:18:38 +02:00
i2c-rcar.c i2c: rcar: fix resume by always initializing registers before transfer 2018-07-11 16:03:47 +02:00
i2c-riic.c i2c: riic: fix restart condition 2017-12-16 10:33:53 +01:00
i2c-rk3x.c i2c: rk3x: populate correct variable for sda_falling_time 2015-11-30 14:27:41 +01:00
i2c-robotfuzz-osif.c
i2c-s3c2410.c i2c: s3c2410: enable RuntimePM before registering to the core 2015-10-15 14:26:07 +02:00
i2c-scmi.c i2c: scmi: Fix probe error on devices with an empty SMB0001 ACPI device node 2018-12-21 14:09:53 +01:00
i2c-sh7760.c
i2c-sh_mobile.c i2c: sh_mobile: add support for r8a7795 (R-Car H3) 2015-10-20 18:10:20 +02:00
i2c-sibyte.c
i2c-simtec.c
i2c-sirf.c i2c: sirf: tune the divider to make i2c bus freq more accurate 2015-10-23 22:48:45 +02:00
i2c-sis96x.c
i2c-sis630.c
i2c-sis5595.c
i2c-st.c i2c: do not use 0x in front of %pa 2015-12-01 02:01:27 +01:00
i2c-stu300.c i2c: stu300: Fix module autoload for OF platform driver 2015-10-20 18:15:39 +02:00
i2c-sun6i-p2wi.c
i2c-taos-evm.c
i2c-tegra.c i2c: tegra: fix maximum transfer size 2019-03-23 08:44:37 +01:00
i2c-tiny-usb.c i2c: i2c-tiny-usb: fix buffer not being DMA capable 2017-06-07 12:06:00 +02:00
i2c-uniphier-f.c i2c: uniphier-f: issue STOP only for last message or I2C_M_STOP 2018-10-10 08:52:11 +02:00
i2c-uniphier.c i2c: uniphier: issue STOP only for last message or I2C_M_STOP 2018-10-10 08:52:11 +02:00
i2c-versatile.c
i2c-via.c
i2c-viapro.c
i2c-viperboard.c i2c: viperboard: clean up inconsistent indenting 2015-08-10 08:37:38 +02:00
i2c-wmt.c
i2c-xgene-slimpro.c i2c: xgene: Avoid dma_buffer overrun 2016-11-10 16:36:31 +01:00
i2c-xiic.c i2c: xiic: Make the start and the byte count write atomic 2018-09-19 22:48:55 +02:00
i2c-xlp9xx.c
i2c-xlr.c
Kconfig i2c: i801: add Intel Lewisburg device IDs 2015-11-20 16:22:21 +01:00
Makefile i2c: uniphier_f: add UniPhier FIFO-builtin I2C driver 2015-10-23 21:55:46 +02:00
scx200_acb.c