Skip to content

New set of input patches

Dmitry Torokhov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest18 of 19 patches 6 repliesIn review

18 of 19 patches are in this archive. The cover letter announces 19.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19psmouse state lockingdrivers/input/mouse/psmouse-base.c+22 -100 replies
2/19serio connect/disconnect mandatorydrivers/input/serio/serio.c+5 -60 replies
3/19serio renames 1drivers/input/mouse/synaptics.c drivers/input/serio/ambakmi.c drivers/input/serio/gscps2.c +8 more+62 -620 replies
4/19serio renames 2drivers/input/joystick/iforce/iforce-main.c drivers/input/joystick/iforce/iforce-serio.c drivers/input/joystick/iforce/iforce.h +20 more+139 -1390 replies
5/19serio dynamic allocationdrivers/input/mouse/psmouse-base.c drivers/input/mouse/psmouse.h drivers/input/mouse/synaptics.c +16 more+562 -3720 replies
6/19serio avoid recursiondrivers/input/mouse/psmouse-base.c drivers/input/mouse/psmouse.h drivers/input/mouse/synaptics.c +2 more+231 -1060 replies
7/19serio sysfs intergrationdrivers/Makefile drivers/input/joystick/iforce/iforce-serio.c drivers/input/joystick/magellan.c +17 more+261 -830 replies
8/19serio rebinddrivers/input/serio/serio.c+33 -11 reply
10/19serio_raw driverdrivers/input/serio/Kconfig drivers/input/serio/Makefile drivers/input/serio/serio_raw.c+407 -00 replies
11/19add platform_device_register_simpledrivers/base/platform.c include/linux/device.h+70 -00 replies
12/19convert i8042 into a platform devicedrivers/input/serio/i8042.c+34 -260 replies
13/19more platform device conversionsdrivers/input/serio/ct82c710.c drivers/input/serio/maceps2.c drivers/input/serio/q40kbd.c +1 more+71 -360 replies
14/19bind serio ports and their parentsdrivers/input/serio/ambakmi.c drivers/input/serio/gscps2.c drivers/input/serio/pcips2.c +1 more+4 -00 replies
15/19synaptics passthrough handlingdrivers/input/mouse/synaptics.c+4 -30 replies
16/19add bus' default driver attributesdrivers/base/bus.c include/linux/device.h+36 -20 replies
17/19serio use bus' default driver/device attributesdrivers/input/serio/serio.c+15 -80 replies
18/19add driver_finddrivers/base/driver.c include/linux/device.h+17 -00 replies
19/19serio use driver_finddrivers/input/serio/serio.c+1 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/19] New set of input patches

Hi,

Here is the 2nd version of my set of input patches that mostly do serio sysfs integration. Among the changes - dropped psmouse KVM resync patch as it was bogus, added platform devices to those of serio providers that don't have proper parent device (i8042, q40kbd, etc).

01-psmouse-state-locking.patch
- Acquire underlying serio lock when changing psmouse state to prevent interrupt handler running on us

02-serio-connect-mandatory.patch
- Make serio driviers connect/disconnect methods mandatory as these methods open/close serio ports and link ports and drivers together. Presently if a driver does not implement connect method it will not be able to bind to a port anyway.

03-serio-rename-1.patch
- Rename serio->driver to serio->port_data as with sysfs integration driver is not the best name for arbitrary data

04-serio-rename-2.patch
- Rename serio_dev to serio_driver as they are drivers in sysfs sense

05-serio-dynamic-alloc.patch
- Switch from static to dynamic serio port allocation so serio ports drivers can be freely unloaded even if not all references to ports are dropped (sysfs req.)

06-serio-no-recursion.patch
- Do not do recursive discovery of children ports, needed for sysfs and generally better for stack usage.

07-serio-sysfs.patch
- sysfs integration. Register ports and drivers in driver model, link them all together under /sys/bus/serio. Every driver has a default attribute "descrip[tion" (from serio_driver->description); serio ports have "decription", "driver" and "legacy_position". Legacy_position porvides access to serio->phys to allow matching with data in /proc/bus/input/devices

08-serio-rebind.patch
- allow user to disconnect or rebind serio port by writing appropriate data to it's sysfs attribute:
echo -n "psmouse" > /sys/bus/serio/devices/serio0/driver echo -n "none" > /sys/bus/serio/devices/serio0/driver echo -n "reconnect" > /sys/bus/serio/devices/serio0/driver echo -n "rescan" > /sys/bus/serio/devices/serio0/driver

09-serio-manual-bind.patch
- allow marking some drivers as requiring manual bind (to be used when driver does not do automatic HW discovery)

10-serio_raw.patch
- raw access to serio data ala 2.4 /dev/psaux

(*) 11-platform-device-simple.patch
- Add platform_device_register_simple to register platform devices requiring minimal resource and memory management. The release function resides in driver core and that allows drivers registering such devices be unloaded without waiting for the last reference to be dropped.

12-i8042-to-platform-device.patch
- Convert i8042 to platform device instead of system device so its ports have proper parent.

13-serio-add-platform-devices.patch
- Add platform devices to ct82c710, maceps2, q40kbd and rpckbd.

14-serio-set-up-parents.patch
- Set up parent devices for serio ports in ambakmi, gscps2, pcips2 and sa1111ps2.c

15-synaptics-passthrough-handling.patch
- If data looks like a pass-through packet and tuchpad has pass-through capability do not pass it to the main handler if child port is disconnected.

(*) 16-bus-default-drv-attrs.patch
- Add bus' default driver attributes (similar to defaulr device attributes)

17-serio-use-bus-default-attrs.patch
- Use bus' default driver and device attributes to manage serio attributes

(*) 18-add-driver-find.patch
- Add driver_find function, similar to device_find, to search for a driver by its name.

19-serio-use-driver-find.patch
- Use driver_find in serio_rebind_driver instead of implementing it locally.

(*) These patches have also been sent to Greg KH.

This time I tried compiling the stuff using defconfing for SPACR64 and PPC64 (thanks to Andrew for pointing to me availability of cross-compile tools), so I should be a bit better now... Alpha failed on cpumask.h...

The patches are against today's Linus tree + recent pull form Vojtech's tree
+ recent pull from Greg KH's tree. I have patches against 2.6.7 that will bring it to my version of the tree at:

	http://www.geocities.com/dt_or/input/2_6_7/
Signature · 1 line
Dmitry