LinuxKPI: qcom: update QMI and MHI

Minor updates to QMI and MHI (mostly making arguments const)
in order to facilitate porting the next generation athk driver.

MFC after:	10 days
This commit is contained in:
Bjoern A. Zeeb 2023-06-10 22:54:35 +00:00
parent ab55b58b5c
commit bee50f894b
3 changed files with 12 additions and 4 deletions

View file

@ -63,7 +63,7 @@ struct mhi_device {
};
struct mhi_controller_config {
struct mhi_channel_config *ch_cfg;
const struct mhi_channel_config *ch_cfg;
struct mhi_event_config *event_cfg;
int buf_len, max_channels, num_channels, num_events, use_bounce_buf;
@ -102,7 +102,7 @@ struct mhi_controller {
struct mhi_controller *linuxkpi_mhi_alloc_controller(void);
void linuxkpi_mhi_free_controller(struct mhi_controller *);
int linuxkpi_mhi_register_controller(struct mhi_controller *,
struct mhi_controller_config *);
const struct mhi_controller_config *);
void linuxkpi_mhi_unregister_controller(struct mhi_controller *);
/* -------------------------------------------------------------------------- */
@ -124,7 +124,7 @@ mhi_free_controller(struct mhi_controller *mhi_ctrl)
static inline int
mhi_register_controller(struct mhi_controller *mhi_ctrl,
struct mhi_controller_config *cfg)
const struct mhi_controller_config *cfg)
{
return (linuxkpi_mhi_register_controller(mhi_ctrl, cfg));
@ -196,6 +196,13 @@ mhi_pm_suspend(struct mhi_controller *mhi_ctrl)
return (0);
}
static __inline int
mhi_pm_resume(struct mhi_controller *mhi_ctrl)
{
/* XXX TODO */
return (0);
}
static __inline int
mhi_pm_resume_force(struct mhi_controller *mhi_ctrl)
{

View file

@ -54,6 +54,7 @@ struct qmi_handle;
enum soc_qcom_qmi_array_type {
NO_ARRAY,
STATIC_ARRAY,
VAR_LEN_ARRAY,
};

View file

@ -60,7 +60,7 @@ linuxkpi_mhi_free_controller(struct mhi_controller *mhi_ctrl)
int
linuxkpi_mhi_register_controller(struct mhi_controller *mhi_ctrl,
struct mhi_controller_config *cfg)
const struct mhi_controller_config *cfg)
{
if (mhi_ctrl == NULL || cfg == NULL)