Skip to content

smsc-ircc2: sysfs, suspend and other patches

Dmitry Torokhov lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9smsc-ircc2: whitespace fixesdrivers/net/irda/smsc-ircc2.c drivers/net/irda/smsc-ircc2.h+217 -2170 replies
2/9smsc-ircc2: formatting fixesdrivers/net/irda/smsc-ircc2.c+315 -3220 replies
3/9smsc-ircc2: drop DIM macro in favor of ARRAY_SIZEdrivers/net/irda/smsc-ircc2.c+2 -30 replies
4/9smsc-ircc2: remove typedefsdrivers/net/irda/smsc-ircc2.c+13 -260 replies
5/9smsc-ircc2: dont pass iobase arounddrivers/net/irda/smsc-ircc2.c+26 -350 replies
6/9smsc-ircc2: add to sysfs as platform device, new PMdrivers/net/irda/smsc-ircc2.c+67 -580 replies
7/9smsc-ircc2: PM cleanup - do not close device when suspendingdrivers/net/irda/smsc-ircc2.c+29 -60 replies
8/9smsc-ircc2: use netdev_priv()drivers/net/irda/smsc-ircc2.c+11 -120 replies
9/9smsc-ircc2: dont use void * where specific type will dodrivers/net/irda/smsc-ircc2.c+4 -60 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/9] smsc-ircc2: sysfs, suspend and other patches

[ This is a resend. I apologize if you already received copy of these
patches...]

Hi,

The following patches attempt to convert smsc-ircc2 driver to the new power management scheme by registering driver/device as platform device. Additionally, suspend and resume methods were adjusted to keep network device open and not release IRQ/DMA upon suspend to make sure that they will still be available at resume time (IRQ and DMA simply disabled when suspending). Plus there some less significant cleanups.

The resulting driver loads on my laptop and survives swsusp suspend/resume cycle. Borrowed windows laptop recognizes and is being recognzed when moved into vicinity of the box. Unfortunately I was not able to test any higher-level protocols because IRDA connection would not stay on, but it is the same with the original driver as well.

I would appreciate if owners of laptops with this chip could give these patches a try. Thanks!

ircc2-whitespace.patch
- whitespace fixes

ircc2-formatting.patch
- some formatting changes for better readability

ircc2-remove-dim.patch
- remove homegrown DIM macro in favor of ARRAY_SIZE, fix out-of-bounds array access

ircc2-remove-typedef.patch
- drop some typedefs, use 'struct blah' instead

ircc2-cleanup.patch
- do not pass around iobase, it is available from smsc_ircc_cb structure

ircc2-pm.patch
- add smsc-ircc2 to sysfs/driver model as platform device/driver, switch to the new PM scheme.

ircc2-pm2.patch
- avoid closing interface in suspend methods - it will cause IRQ/DMA be released and they may not be availabe at resume.

ircc2-netdev-priv.patch
- switch to using netdev_priv().

ircc2-cleanup2.patch
- avoid using void * pointers where specific type will do.

--
Dmitry