Modem reset implementation (via sysfs) + eDLP update
authorFaouaz TENOUTIT <faouazx.tenoutit@intel.com>
Wed, 21 Mar 2012 15:53:58 +0000 (16:53 +0100)
committerbuildbot <buildbot@intel.com>
Thu, 12 Apr 2012 13:40:49 +0000 (06:40 -0700)
commited156cb29fb9ea611ececf497a5d70d0242e6af7
treed44835ff381c65114116aa323a4165c505170c91
parentcdb498acb4ffe458b3c5813d825c5faaddd4c419
Modem reset implementation (via sysfs) + eDLP update

BZ: 26113

dlp_main.c
- Update the module version (1.1)
- Use the hsi_port_claimed to check if the HSI client is claimed
- Use the user provided debug parameter value (when used as module)
- Create a worqueue used for TTY data forwarding

dlp_ctrl.c
- Backport the modem cold reset implementation from MFLD
- Add log when a modem reset/power is requested
    - Correct the modem reset & power timing values
- Factorize the call of gpio_request/gpio_directions to one function
- Remove the gpio_export call, to stop exporting GPIO => Any applications
 should use the eDLP module params/ioctls to perform actions

dlp_net.c:
- Use the same value of TX timeout for TTY/NET channels
- Add the reset/hangup management
- No need to clainm the HSI port by the NET if (already done by the probe)
- Dont call the hsi_flusi in the net_stop function (avoid flushing everything)
- Send the CANCEL_CONN when closing the NET interface

dlp_tty.c:
    - Add a workqueue for TTY data forwrading (not the rx_complete anymore)
- Add the reset/hangup management
- Change TTYNAME defien to IPC_TTYNAME
- Send the CANCEL_CONN when closing the TTY port

Faouaz TENOUTIT <faouazx.tenoutit@intel.com>

Change-Id: I869f811da89b821d2b93a56bd8606c92037f435d
Signed-off-by: Faouaz TENOUTIT <faouazx.tenoutit@intel.com>
Reviewed-on: http://android.intel.com:8080/40000
Reviewed-by: Roulliere, Pierre <pierre.roulliere@intel.com>
Reviewed-by: Stoltz-douchet, OlivierX <olivierx.stoltz-douchet@intel.com>
Reviewed-by: Predon, Frederic <frederic.predon@intel.com>
Reviewed-by: Lebsir, SamiX <samix.lebsir@intel.com>
Tested-by: Lebsir, SamiX <samix.lebsir@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/hsi/clients/Kconfig
drivers/hsi/clients/dlp_ctrl.c
drivers/hsi/clients/dlp_main.c
drivers/hsi/clients/dlp_main.h
drivers/hsi/clients/dlp_net.c
drivers/hsi/clients/dlp_tty.c