Skip to content

nokia-modem: kernel based PM

Sebastian Reichel linux-omap lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5HSI: nokia-modem: simplify kernel access to gpiosdrivers/hsi/clients/nokia-modem.c+85 -300 replies
2/5HSI: nokia-modem: kernel based PMdrivers/hsi/clients/nokia-modem.c drivers/hsi/clients/ssi_protocol.c include/linux/hsi/ssi_protocol.h+141 -53 replies
3/5HSI: ssi-protocol: export modem info via sysfsdrivers/hsi/clients/nokia-modem.c drivers/hsi/clients/ssi_protocol.c include/linux/hsi/ssi_protocol.h+47 -72 replies
4/5HSI: nokia-modem: drop support for disabled pmdrivers/hsi/clients/nokia-modem.c+6 -13 replies
5/5HSI: ssi-protocol: clear carrier flag on opendrivers/hsi/clients/ssi_protocol.c+2 -00 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/5] nokia-modem: kernel based PM

Hi,

Some may remember, that in-kernel modem PM was still on the TODO list for the N9xx modem driver. This patchset adds this by hooking to the phonet interface state. In other words:

'ifconfig phonet0 up' will enable the modem and 'ifconfig phonet0 down' will disable the modem. The actual state is mapped to the carrier state (which was more or less the case already).

So using the modem can be done like this now:

0. nokia-modem should be loaded with pm=2
1. ifconfig phonet0 up
2. wait for carrier on phonet0
3. communicate with the modem via isi on phonet0
4. ifconfig phonet0 down

The old pm method (exporting the gpios) is still available and still the default for now. The plan is to switch the default pm method in some future kernel release (when support for the simpler interface has been added to ofono).

-- Sebastian

Sebastian Reichel (5):
HSI: nokia-modem: simplify kernel access to gpios
HSI: nokia-modem: kernel based PM
HSI: ssi-protocol: export modem info via sysfs
HSI: nokia-modem: drop support for disabled pm
HSI: ssi-protocol: clear carrier flag on open

 drivers/hsi/clients/nokia-modem.c  | 240 +++++++++++++++++++++++++++++++------
 drivers/hsi/clients/ssi_protocol.c |  56 ++++++++-
 include/linux/hsi/ssi_protocol.h   |  20 ++++
 3 files changed, 277 insertions(+), 39 deletions(-)
Signature · 1 line
2.7.0.rc3