linux-stable/include/linux/platform_data
Guenter Roeck 5278ad676f platform/chrome: Re-introduce cros_ec_cmd_xfer and use it for ioctls
[ Upstream commit 57b888ca25 ]

Commit 413dda8f2c ("platform/chrome: cros_ec_chardev: Use
cros_ec_cmd_xfer_status helper") inadvertendly changed the userspace ABI.
Previously, cros_ec ioctls would only report errors if the EC communication
failed, and otherwise return success and the result of the EC
communication. An EC command execution failure was reported in the EC
response field. The above mentioned commit changed this behavior, and the
ioctl itself would fail. This breaks userspace commands trying to analyze
the EC command execution error since the actual EC command response is no
longer reported to userspace.

Fix the problem by re-introducing the cros_ec_cmd_xfer() helper, and use it
to handle ioctl messages.

Fixes: 413dda8f2c ("platform/chrome: cros_ec_chardev: Use cros_ec_cmd_xfer_status helper")
Cc: Daisuke Nojiri <dnojiri@chromium.org>
Cc: Rob Barnes <robbarnes@google.com>
Cc: Rajat Jain <rajatja@google.com>
Cc: Brian Norris <briannorris@chromium.org>
Cc: Parth Malkan <parthmalkan@google.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-09 10:26:01 +02:00
..
gpio
media media: camera-mx3: Remove unused header file 2021-03-22 11:58:22 +01:00
txx9
x86 platform/x86: simatic-ipc: add main driver for Siemens devices 2021-12-23 18:09:06 +01:00
ad5449.h
ad5761.h
ad7266.h
ad7791.h
ad7793.h
ad7887.h
adau17x1.h
adp5588.h
adp8860.h
adp8870.h
ads7828.h
ams-delta-fiq.h
apds990x.h
arm-ux500-pm.h
asoc-imx-ssi.h
asoc-kirkwood.h
asoc-palm27x.h
asoc-s3c.h
asoc-s3c24xx_simtec.h
asoc-ti-mcbsp.h
asoc-ux500-msp.h
ata-pxa.h
ata-samsung_cf.h
atmel.h
b53.h
bcm7038_wdt.h watchdog: bcm7038_wdt: Support platform data configuration 2021-12-28 13:59:07 +01:00
bcmgenet.h
bd6107.h
bh1770glc.h
brcmfmac.h brcmfmac: Replace zero-length array with flexible array member 2021-09-24 14:20:44 +03:00
clk-da8xx-cfgchip.h
clk-davinci-pll.h
clk-fch.h ACPI: APD: Add a fmw property clk-name 2022-01-06 17:57:52 -08:00
clk-s3c2410.h
cpuidle-exynos.h
cros_ec_chardev.h
cros_ec_commands.h power: supply: PCHG: Peripheral device charger 2021-07-16 15:54:34 +02:00
cros_ec_proto.h platform/chrome: Re-introduce cros_ec_cmd_xfer and use it for ioctls 2022-06-09 10:26:01 +02:00
cros_ec_sensorhub.h
cros_usbpd_notify.h
crypto-ux500.h
cyttsp4.h
davinci-cpufreq.h
davinci_asp.h ASoC: ti: davinci-mcasp: Add support for the OMAP4 version of McASP 2021-07-11 23:46:39 +01:00
dma-dw.h dmaengine: dw: Convert members to u32 in platform data 2021-08-06 19:18:35 +05:30
dma-ep93xx.h
dma-hsu.h
dma-imx.h
dma-iop32x.h
dma-mcf-edma.h
dma-mmp_tdma.h
dma-mv_xor.h
dma-s3c24xx.h
dma-ste-dma40.h
dmtimer-omap.h
ds620.h
dsa.h
edma.h
elm.h
emif_plat.h
eth-ep93xx.h
eth_ixp4xx.h net: ethernet: ixp4xx: Support device tree probing 2021-04-25 18:27:13 -07:00
fb-s3c2410.h
g762.h
gpio-ath79.h
gpio-davinci.h
gpio-htc-egpio.h
gpio-omap.h gpio: omap: Save and restore sysconfig 2021-04-21 16:43:51 +02:00
gpio_backlight.h
gpmc-omap.h
gsc_hwmon.h
hirschmann-hellcreek.h net: dsa: hellcreek: Report switch name and ID 2021-03-22 18:02:10 -07:00
hsmmc-omap.h
hwmon-s3c.h
i2c-davinci.h
i2c-gpio.h
i2c-imx.h
i2c-mux-gpio.h
i2c-mux-reg.h
i2c-ocores.h
i2c-omap.h
i2c-pca-platform.h
i2c-pxa.h
i2c-s3c2410.h
i2c-xiic.h
ina2xx.h
intel-mid_wdt.h
invensense_mpu6050.h iio:imu:mpu6050: Modify matricies to matrices 2021-03-29 11:06:01 +01:00
iommu-omap.h
irda-pxaficp.h
irda-sa11x0.h
isl9305.h
itco_wdt.h
keyboard-pxa930_rotary.h
keyboard-spear.h
keypad-ep93xx.h
keypad-nomadik-ske.h
keypad-omap.h
keypad-pxa27x.h
keyscan-davinci.h
lcd-mipid.h
leds-lm355x.h
leds-lm3642.h
leds-lp55xx.h
leds-omap.h
leds-s3c24xx.h
lm3630a_bl.h
lm3639_bl.h
lm8323.h
lp855x.h
lp8727.h
lp8755.h
ltc4245.h
lv5207lp.h
max197.h
max732x.h
max3421-hcd.h
max6639.h
max6697.h
mcs.h
mdio-bcm-unimac.h
mdio-gpio.h
mfd-mcp-sa11x0.h
microchip-ksz.h
mlxcpld.h i2c: mux: mlxcpld: Add callback to notify mux creation completion 2021-02-09 11:35:44 +01:00
mlxreg.h platform_data/mlxreg: Add new field for secured access 2021-10-19 10:41:56 +02:00
mmc-davinci.h
mmc-esdhc-mcf.h
mmc-mxcmmc.h
mmc-omap.h mmc: omap: remove unused struct component card_detect_irq 2021-02-01 11:54:44 +01:00
mmc-pxamci.h
mmc-s3cmci.h
mmc-sdhci-s3c.h
mmp_audio.h
mmp_dma.h
mouse-pxa930_trkball.h
mtd-davinci-aemif.h
mtd-davinci.h
mtd-nand-omap2.h Memory controller drivers for v5.17 - OMAP GPMC 2021-12-31 12:45:57 +01:00
mtd-nand-pxa3xx.h
mtd-nand-s3c2410.h
mtd-orion_nand.h
mv88e6xxx.h
mv_usb.h
net-cw1200.h
nfcmrvl.h
omap-twl4030.h
omap-wd-timer.h
omap1_bl.h
omapdss.h
pca953x.h
pcf857x.h
pcmcia-pxa2xx_viper.h
phy-da8xx-usb.h
pinctrl-single.h
pm33xx.h
pxa2xx_udc.h
pxa_sdhci.h
regulator-haptic.h
rtc-ds2404.h
rtc-v3020.h
s3c-hsotg.h
s3c-hsudc.h
sa11x0-serial.h
sc18is602.h
sdhci-pic32.h
serial-omap.h
serial-sccnxp.h
sgi-w1.h
shmob_drm.h
sht3x.h
shtc1.h
si5351.h
simplefb.h video: fbdev: simplefb: Add "r5g5b5a1" mode 2021-01-20 12:12:22 +01:00
spi-davinci.h
spi-ep93xx.h
spi-mt65xx.h spi: mediatek: add tick_delay support 2021-07-14 13:30:43 +01:00
spi-omap2-mcspi.h
spi-s3c64xx.h
ssm2518.h
st33zp24.h
st_sensors_pdata.h iio: magnetometer: st_magn: Provide default platform data 2021-05-17 13:54:22 +01:00
syscon.h
tda9950.h
ti-aemif.h
ti-prm.h
ti-sysc.h bus: ti-sysc: Handle otg force idle quirk 2021-09-21 12:56:14 +03:00
timer-ixp4xx.h
touchscreen-s3c2410.h
tps68470.h platform_data: Add linux/platform_data/tps68470.h file 2021-12-13 11:44:48 +01:00
tsc2007.h
tsl2563.h
tsl2772.h
uio_dmem_genirq.h
uio_pruss.h
usb-davinci.h
usb-ehci-orion.h
usb-musb-ux500.h
usb-ohci-pxa27x.h
usb-ohci-s3c2410.h
usb-omap.h
usb-omap1.h ARM: omap1: move omap15xx local bus handling to usb.c 2021-10-05 15:39:50 +02:00
usb-pxa3xx-ulpi.h
usb-s3c2410_udc.h
usb3503.h
video-ep93xx.h
video-imxfb.h
video-mx3fb.h
video-pxafb.h
video_s3c.h
voltage-omap.h
wan_ixp4xx_hss.h
wilco-ec.h
wiznet.h
wkup_m3.h
xilinx-ll-temac.h
xtalk-bridge.h
zforce_ts.h