51a5e5e93c
[ Upstream commit 60c6b305c11b5fd167ce5e2ce42f3a9098c388f0 ]
TIOCSSERIAL is a horrid, underspecified, legacy interface which for most
serial devices is only useful for setting the close_delay and
closing_wait parameters.
A non-privileged user has only ever been able to set the since long
deprecated ASYNC_SPD flags and trying to change any other *supported*
feature should result in -EPERM being returned. Setting the current
values for any supported features should return success.
Fix the greybus implementation which instead indicated that the
TIOCSSERIAL ioctl was not even implemented when a non-privileged user
set the current values.
Fixes:
|
||
---|---|---|
.. | ||
Documentation | ||
tools | ||
Kconfig | ||
Makefile | ||
TODO | ||
arche-apb-ctrl.c | ||
arche-platform.c | ||
arche_platform.h | ||
audio_apbridgea.c | ||
audio_apbridgea.h | ||
audio_codec.c | ||
audio_codec.h | ||
audio_gb.c | ||
audio_manager.c | ||
audio_manager.h | ||
audio_manager_module.c | ||
audio_manager_private.h | ||
audio_manager_sysfs.c | ||
audio_module.c | ||
audio_topology.c | ||
authentication.c | ||
bootrom.c | ||
camera.c | ||
firmware.h | ||
fw-core.c | ||
fw-download.c | ||
fw-management.c | ||
gb-camera.h | ||
gbphy.c | ||
gbphy.h | ||
gpio.c | ||
greybus_authentication.h | ||
greybus_firmware.h | ||
hid.c | ||
i2c.c | ||
light.c | ||
log.c | ||
loopback.c | ||
power_supply.c | ||
pwm.c | ||
raw.c | ||
sdio.c | ||
spi.c | ||
spilib.c | ||
spilib.h | ||
uart.c | ||
usb.c | ||
vibrator.c |