Skip to contentSkip to conversation

New set of input patches

PATCH Dmitry Torokhov 2 participants 4 messages Jun 28, 2004 – Jun 29, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines · Vojtech Pavlik
Quoted 1 line · Dmitry Torokhov
Quoted 1 line

IMO drivers have no bussiness messing with the serio locks. We could

use

Quoted 1 line
Quoted 1 line

'plug' and 'unplug' functions like the network driver use, or handle

it

Quoted 9 lines
Quoted 3 lines
Quoted 1 line

inside the driver, but taking the lock is the wrong thing to do.

OK, I just don't want to introduce another lock just for that...

I think a bit in flags "PSMOUSE_ENABLED", like we have the "ATKBD_ENABLED" bit might be just fine - handle the interrupt, but throw away the data during the protocol switch. We aren't interested in the data anyway.

But the flag will not give you atomicity of resetting other fields, like pktcount. I guess we can ensure it by carefully rearranging the states and what is reset at what point but it is too fragile.

Would you accept a pair serio_rx_suspend/serio_rx_resume that would still take the lock internally but not expose this fact to the driver?

Quoted 10 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

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.

I'll have to look closer on this one - I think we want to pass the

data

Quoted 3 lines
Quoted 2 lines

to the serio layer even if there is no driver listening on the passthrough serio.

Quoted 9 lines
Quoted 1 line

We probably should issue serio_interrupt on child port to force rescan

but

Quoted 1 line

that packet has no business in parent's motion handling routine and

that's

Quoted 1 line

what this patch tries to fix. Anyway, I will look at it more later.

Indeed, we need it for the rescan. It shouldn't be that hard to fix at once.

Ok

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines

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

Did he accept them already?

Quoted 7 lines
Quoted 1 line

No, not yet. He promised to take a look at

platoform_device_register_simple by

Quoted 1 line

the end of the week but I guess kernel.bkbits.net troubles might

intervene...

Quoted 1 line

And other 2 I just send out today.

Ok. I'll wait then.

Sysfs changes should be useable even without platform device changes and I would like start syncing with you. Would you take patches 2 through 10 (I will drop the legacy_position stuff)?

--
Dmitry

#1 lore raw
Quoted 6 lines · Dmitry Torokhov

But the flag will not give you atomicity of resetting other fields, like pktcount. I guess we can ensure it by carefully rearranging the states and what is reset at what point but it is too fragile.

Would you accept a pair serio_rx_suspend/serio_rx_resume that would still take the lock internally but not expose this fact to the driver?

Yes, but don't call them suspend/resume. That sounds too much like powermanagement, which it isn't. Network uses start/stop. Block layer uses plug/unplug - in the sense that you have a pipe, and if you don't want any more data, you plug it.

Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

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

Did he accept them already?

No, not yet. He promised to take a look at

platoform_device_register_simple by

Quoted 1 line

the end of the week but I guess kernel.bkbits.net troubles might

Quoted 8 lines
Quoted 4 lines

intervene...

Quoted 1 line

And other 2 I just send out today.

Ok. I'll wait then.

Sysfs changes should be useable even without platform device changes and I would like start syncing with you. Would you take patches 2 through 10 (I will drop the legacy_position stuff)?

Yes.

Signature · 2 lines
Vojtech Pavlik
SuSE Labs, SuSE CR
#2 lore raw
Quoted 8 lines · Vojtech Pavlik
Quoted 4 lines · Dmitry Torokhov

Sysfs changes should be useable even without platform device changes and I would like start syncing with you. Would you take patches 2 through 10 (I will drop the legacy_position stuff)?

Yes.

Vojtech,

As we discussed I dropped the legacy_position sysfs attribute and moved patches 2 through 10 to my repository on bkbits.net. I also moved patch #14 because sa1111ps2, gscps2, ambakmi and pcips2 have already been integrated with sysfs so linking their serio ports to their devices are simple one-liners not depending on anything I sent to Greg.

Please do:

bk pull bk://dtor.bkbits.net/input

Signature · 1 line
Dmitry
#3 lore raw
Quoted 18 lines · Dmitry Torokhov
Quoted 8 lines · Vojtech Pavlik
Quoted 4 lines · Dmitry Torokhov

Sysfs changes should be useable even without platform device changes and I would like start syncing with you. Would you take patches 2 through 10 (I will drop the legacy_position stuff)?

Yes.

Vojtech,

As we discussed I dropped the legacy_position sysfs attribute and moved patches 2 through 10 to my repository on bkbits.net. I also moved patch #14 because sa1111ps2, gscps2, ambakmi and pcips2 have already been integrated with sysfs so linking their serio ports to their devices are simple one-liners not depending on anything I sent to Greg.

Quoted 3 lines

Please do:

bk pull bk://dtor.bkbits.net/input

Thanks!

Signature · 2 lines
Vojtech Pavlik
SuSE Labs, SuSE CR