kernel_optimize_test/drivers/mfd
Doug Anderson d6c15ed2bc mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c result
We know how many bytes the EC should be sending us (which is also the
number of bytes transferred) and also how many bytes the EC actually
wanted to send to us.  When computing the checksum and copying back
data let's make sure we take the lesser of the two of those.  We'll
also complain if the EC tried to send us too many bytes.  The EC
sending us too few bytes is legit for when we send the EC an invalid
command.

This is based on similar code in cros_ec_spi.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
2014-07-09 16:38:21 +01:00
..
88pm80x.c
88pm800.c
88pm805.c mfd: 88pm805: msleep(1ms ~ 20ms) may not do what the caller intends 2014-07-09 16:38:02 +01:00
88pm860x-core.c mfd: 88pm860x-core: Repair formatting issues 2014-07-09 16:38:03 +01:00
88pm860x-i2c.c mfd: 88pm860x-i2c: Repair 'space before tab' warning 2014-07-09 16:38:03 +01:00
aat2870-core.c mfd: aat2870-core: Stop using obsolte simple_strtoul() 2014-07-09 16:38:04 +01:00
ab3100-core.c mfd: ab3100-core: Correct code sytle problems 2014-07-09 16:38:05 +01:00
ab3100-otp.c
ab8500-core.c mfd: ab8500-core: Resolve code style issues 2014-07-09 16:38:12 +01:00
ab8500-debugfs.c mfd: ab8500-debugfs: Simplify invalid debugfs data checking 2014-07-09 16:37:45 +01:00
ab8500-gpadc.c
ab8500-sysctrl.c
abx500-core.c
adp5520.c
arizona-core.c mfd: arizona: Rid data size incompatibility warn when building for 64bit 2014-07-09 16:38:01 +01:00
arizona-i2c.c mfd: arizona: Rid data size incompatibility warn when building for 64bit 2014-07-09 16:38:01 +01:00
arizona-irq.c
arizona-spi.c mfd: arizona: Rid data size incompatibility warn when building for 64bit 2014-07-09 16:38:01 +01:00
arizona.h mfd: arizona: Rid data size incompatibility warn when building for 64bit 2014-07-09 16:38:01 +01:00
as3711.c
as3722.c
asic3.c mfd: asic3: Fix potential null pointer dereference 2014-07-09 14:58:01 +01:00
axp20x.c
bcm590xx.c
cros_ec_i2c.c mfd: cros_ec: Use the proper size when looking at the cros_ec_i2c result 2014-07-09 16:38:21 +01:00
cros_ec_spi.c mfd: cros_ec: ec_dev->cmd_xfer() returns number of bytes received from EC 2014-07-09 14:58:20 +01:00
cros_ec.c mfd: cros_ec: Move EC interrupt to cros_ec_keyb 2014-07-09 14:58:20 +01:00
cs5535-mfd.c
da903x.c
da9052-core.c
da9052-i2c.c
da9052-irq.c
da9052-spi.c
da9055-core.c
da9055-i2c.c
da9063-core.c
da9063-i2c.c
da9063-irq.c
davinci_voicecodec.c
db8500-prcmu.c
dbx500-prcmu-regs.h
dm355evm_msp.c
ezx-pcap.c
htc-egpio.c
htc-i2cpld.c
htc-pasic3.c
intel_msic.c
intel_soc_pmic_core.c mfd: intel_soc_pmic: Rid compiler working for unused ACPI match table 2014-07-09 16:37:54 +01:00
intel_soc_pmic_core.h mfd: intel_soc_pmic: Core driver 2014-06-17 15:59:20 +01:00
intel_soc_pmic_crc.c mfd: intel_soc_pmic: Crystal Cove support 2014-06-17 15:59:38 +01:00
ipaq-micro.c
janz-cmodio.c
jz4740-adc.c
Kconfig mfd: sec-core: Prepare regulators for suspend state to reduce power-consumption 2014-07-09 14:58:12 +01:00
kempld-core.c
lm3533-core.c
lm3533-ctrlbank.c
lp3943.c
lp8788-irq.c
lp8788.c
lpc_ich.c
lpc_sch.c
Makefile Merge branches 'ib-mfd-extcon-regulator-3.17', 'ib-mfd-gpio-3.17' and 'ib-mfd-mmc-3.17' into ibs-for-mfd-merged 2014-07-09 14:55:13 +01:00
max8907.c
max8925-core.c
max8925-i2c.c
max8997-irq.c
max8997.c
max8998-irq.c
max8998.c
max14577.c
max77686-irq.c
max77686.c
max77693.c mfd: max77693: Handle IRQs using regmap 2014-06-17 15:17:00 +01:00
mc13xxx-core.c mfd: mc13xxx: Use regmap irq framework for interrupts 2014-07-09 14:58:10 +01:00
mc13xxx-i2c.c
mc13xxx-spi.c
mc13xxx.h mfd: mc13xxx: Use regmap irq framework for interrupts 2014-07-09 14:58:10 +01:00
mcp-core.c
mcp-sa11x0.c
menelaus.c
mfd-core.c
omap-usb-host.c
omap-usb-tll.c
omap-usb.h
palmas.c
pcf50633-adc.c
pcf50633-core.c mfd: pcf50633: Reconnect -ENOMEM error path 2014-07-09 14:58:14 +01:00
pcf50633-gpio.c
pcf50633-irq.c
pm8921-core.c mfd: pm8921-core: Remove unused variable 2014-07-09 14:58:09 +01:00
rc5t583-irq.c
rc5t583.c
rdc321x-southbridge.c
retu-mfd.c
rtl8411.c
rts5209.c
rts5227.c
rts5229.c
rts5249.c
rtsx_pcr.c mfd: rtsx: Add dma transfer function 2014-07-09 14:14:58 +01:00
rtsx_pcr.h
rtsx_usb.c
sec-core.c mfd: sec-core: Prepare regulators for suspend state to reduce power-consumption 2014-07-09 14:58:12 +01:00
sec-irq.c mfd: sec-core: Add support for S2MPU02 device 2014-07-09 14:58:11 +01:00
si476x-cmd.c
si476x-i2c.c
si476x-prop.c
sm501.c
smsc-ece1099.c
ssbi.c
sta2x11-mfd.c
stmpe-i2c.c mfd: stmpe: Rid data size incompatibility warn when building for 64bit 2014-07-09 16:37:55 +01:00
stmpe-spi.c
stmpe.c mfd: stmpe: Rid data size incompatibility warn when building for 64bit 2014-07-09 16:37:55 +01:00
stmpe.h mfd: stmpe: Rid data size incompatibility warn when building for 64bit 2014-07-09 16:37:55 +01:00
stw481x.c
sun6i-prcm.c
syscon.c
t7l66xb.c
tc3589x.c mfd: tc3589x: Translate onecell, not twocell 2014-07-09 14:58:01 +01:00
tc6387xb.c
tc6393xb.c
ti_am335x_tscadc.c
timberdale.c
timberdale.h
tmio_core.c
tps6105x.c
tps6507x.c
tps6586x.c
tps65010.c
tps65090.c
tps65217.c
tps65218.c
tps65910.c mfd: tps65910: Rid data size incompatibility warn when building for 64bit 2014-07-09 16:38:01 +01:00
tps65911-comparator.c
tps65912-core.c
tps65912-i2c.c
tps65912-irq.c
tps65912-spi.c
tps80031.c
twl-core.c
twl-core.h
twl4030-audio.c
twl4030-irq.c
twl4030-power.c
twl6030-irq.c
twl6040.c
ucb1x00-assabet.c
ucb1x00-core.c
ucb1x00-ts.c
ucb1400_core.c
vexpress-sysreg.c
viperboard.c
vx855.c
wl1273-core.c
wm831x-auxadc.c
wm831x-core.c
wm831x-i2c.c
wm831x-irq.c
wm831x-otp.c
wm831x-spi.c
wm5102-tables.c
wm5110-tables.c
wm8350-core.c
wm8350-gpio.c
wm8350-i2c.c
wm8350-irq.c
wm8350-regmap.c
wm8400-core.c
wm8994-core.c
wm8994-irq.c
wm8994-regmap.c mfd: wm8994: Add a bunch of missing defaults/readables 2014-07-09 14:58:07 +01:00
wm8994.h
wm8997-tables.c