Currently the external modem's boot fail configurations,
boot_fail_action and n_pon_tries, are set via module parameters.
Convert it to an IOCTL so that a registered user-space
application has control over the configurations.
Change-Id: Iaf412b873fa452b99811a50e7ae886cc49cfcf81
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
The definitions under 'enum esoc_client_hook_prio' and 'struct
esoc_link_data' are used only by kernel drivers, and not needed
by user-space. Hence, move the definitions from uapi header file
(uapi/linux/esoc_ctrl.h) to kernel internal header file
(linux/esoc_client.h).
Change-Id: I74b4f470ff61518fa2df2e872595b5e8e6e4c307
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
Due to recent hardware limitations, the requirement is to do
the warm reset of the modem twice. Once for collecting the
dumps and the other for transferring the firmware images.
If during the process, the driver receives a failed notification,
then power-off the modem. Hence, add code to support these
functionalities.
Change-Id: I4923b6e89474a44bdde477ccbd0c4e73b9648aae
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
There is no way for the mdm-helper to know that the
modem has crashed to take necessary action.
Hence, added the support that sends a notification to the
user-space, through IOCTL, as and when the modem sends an
error fatal interrupt to the driver.
Change-Id: I0a596763b310641d4c9e93d03690ba96162515ff
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
Some subsystems/drivers require notifications from the esoc
driver as soon as the it powers on/off the modem.
For this, the clients cannot directly depend on the
SSR notifications.
Hence, adding support such that the clients who are
interested in listening to such events can register
themselves. Moreover, the order in which these notifications
are sent to the clients can be prioritized statically.
Also, a flexibilty is added such that the user-space
can get information, such as link-id, from the interested
client.
Change-Id: I8274f0fd5210b7d0186dddf63afd69fc98d2e110
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
This is a snapshot of the esoc driver as of msm-4.4 commit <9d5748a>
(Merge "ARM: dts: msm: disable wdog wakeup on msm8996 vplatform").
The change also removes the support for older modems which are no
longer used.
Change-Id: I879768a3c56c986e66371700c062f3fa41448af7
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>