# # RMI4 configuration # config RMI4_CORE tristate "Synaptics RMI4 bus support" help Say Y here if you want to support the Synaptics RMI4 bus. This is required for all RMI4 device support. If unsure, say Y. config RMI4_I2C tristate "RMI4 I2C Support" depends on RMI4_CORE && I2C help Say Y here if you want to support RMI4 devices connected to an I2C bus. If unsure, say Y. config RMI4_SPI tristate "RMI4 SPI Support" depends on RMI4_CORE && SPI help Say Y here if you want to support RMI4 devices connected to a SPI bus. If unsure, say N. config RMI4_SMB tristate "RMI4 SMB Support" depends on RMI4_CORE && I2C help Say Y here if you want to support RMI4 devices connected to an SMB bus. If unsure, say N. To compile this driver as a module, choose M here: the module will be called rmi_smbus. config RMI4_F03 bool "RMI4 Function 03 (PS2 Guest)" depends on RMI4_CORE depends on SERIO=y || RMI4_CORE=SERIO help Say Y here if you want to add support for RMI4 function 03. Function 03 provides PS2 guest support for RMI4 devices. This includes support for TrackPoints on TouchPads. config RMI4_2D_SENSOR bool depends on RMI4_CORE config RMI4_F11 bool "RMI4 Function 11 (2D pointing)" select RMI4_2D_SENSOR depends on RMI4_CORE help Say Y here if you want to add support for RMI4 function 11. Function 11 provides 2D multifinger pointing for touchscreens and touchpads. For sensors that support relative pointing, F11 also provides mouse input. config RMI4_F12 bool "RMI4 Function 12 (2D pointing)" select RMI4_2D_SENSOR depends on RMI4_CORE help Say Y here if you want to add support for RMI4 function 12. Function 12 provides 2D multifinger pointing for touchscreens and touchpads. For sensors that support relative pointing, F12 also provides mouse input. config RMI4_F30 bool "RMI4 Function 30 (GPIO LED)" depends on RMI4_CORE help Say Y here if you want to add support for RMI4 function 30. Function 30 provides GPIO and LED support for RMI4 devices. This includes support for buttons on TouchPads and ClickPads. config RMI4_F34 bool "RMI4 Function 34 (Device reflash)" depends on RMI4_CORE select FW_LOADER help Say Y here if you want to add support for RMI4 function 34. Function 34 provides support for upgrading the firmware on the RMI4 device via the firmware loader interface. This is triggered using a sysfs attribute. config RMI4_F54 bool "RMI4 Function 54 (Analog diagnostics)" depends on RMI4_CORE depends on VIDEO_V4L2=y || (RMI4_CORE=m && VIDEO_V4L2=m) select VIDEOBUF2_VMALLOC select RMI4_F55 help Say Y here if you want to add support for RMI4 function 54 Function 54 provides access to various diagnostic features in certain RMI4 touch sensors. config RMI4_F55 bool "RMI4 Function 55 (Sensor tuning)" depends on RMI4_CORE help Say Y here if you want to add support for RMI4 function 55 Function 55 provides access to the RMI4 touch sensor tuning mechanism. m.submit();'>space:mode:
authorTejun Heo <tj@kernel.org>2017-01-26 16:47:28 -0500
committerTejun Heo <tj@kernel.org>2017-01-26 16:47:28 -0500
commit07cd12945551b63ecb1a349d50a6d69d1d6feb4a (patch)
tree75f65eba7eac9277971082a2d5a4cf1370562c0c /tools
parent7ce7d89f48834cefece7804d38fc5d85382edf77 (diff)
cgroup: don't online subsystems before cgroup_name/path() are operational
While refactoring cgroup creation, a5bca2152036 ("cgroup: factor out cgroup_create() out of cgroup_mkdir()") incorrectly onlined subsystems before the new cgroup is associated with it kernfs_node. This is fine for cgroup proper but cgroup_name/path() depend on the associated kernfs_node and if a subsystem makes the new cgroup_subsys_state visible, which they're allowed to after onlining, it can lead to NULL dereference. The current code performs cgroup creation and subsystem onlining in cgroup_create() and cgroup_mkdir() makes the cgroup and subsystems visible afterwards. There's no reason to online the subsystems early and we can simply drop cgroup_apply_control_enable() call from cgroup_create() so that the subsystems are onlined and made visible at the same time. Signed-off-by: Tejun Heo <tj@kernel.org> Reported-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru> Fixes: a5bca2152036 ("cgroup: factor out cgroup_create() out of cgroup_mkdir()") Cc: stable@vger.kernel.org # v4.6+
Diffstat (limited to 'tools')