Merge "msm: ipa3: fix benign prints on ipa3_usb_init"
This commit is contained in:
commit
1bbcf2d2e4
2 changed files with 16 additions and 12 deletions
|
@ -26,7 +26,8 @@
|
||||||
#define IPA_API_DISPATCH_RETURN(api, p...) \
|
#define IPA_API_DISPATCH_RETURN(api, p...) \
|
||||||
do { \
|
do { \
|
||||||
if (!ipa_api_ctrl) { \
|
if (!ipa_api_ctrl) { \
|
||||||
pr_err("IPA HW is not supported on this target\n"); \
|
pr_err("%s:%d IPA HW is not supported\n", \
|
||||||
|
__func__, __LINE__); \
|
||||||
ret = -EPERM; \
|
ret = -EPERM; \
|
||||||
} \
|
} \
|
||||||
else { \
|
else { \
|
||||||
|
@ -44,7 +45,8 @@
|
||||||
#define IPA_API_DISPATCH(api, p...) \
|
#define IPA_API_DISPATCH(api, p...) \
|
||||||
do { \
|
do { \
|
||||||
if (!ipa_api_ctrl) \
|
if (!ipa_api_ctrl) \
|
||||||
pr_err("IPA HW is not supported on this target\n"); \
|
pr_err("%s:%d IPA HW is not supported\n", \
|
||||||
|
__func__, __LINE__); \
|
||||||
else { \
|
else { \
|
||||||
if (ipa_api_ctrl->api) { \
|
if (ipa_api_ctrl->api) { \
|
||||||
ipa_api_ctrl->api(p); \
|
ipa_api_ctrl->api(p); \
|
||||||
|
@ -59,7 +61,8 @@
|
||||||
#define IPA_API_DISPATCH_RETURN_PTR(api, p...) \
|
#define IPA_API_DISPATCH_RETURN_PTR(api, p...) \
|
||||||
do { \
|
do { \
|
||||||
if (!ipa_api_ctrl) { \
|
if (!ipa_api_ctrl) { \
|
||||||
pr_err("IPA HW is not supported on this target\n"); \
|
pr_err("%s:%d IPA HW is not supported\n", \
|
||||||
|
__func__, __LINE__); \
|
||||||
ret = NULL; \
|
ret = NULL; \
|
||||||
} \
|
} \
|
||||||
else { \
|
else { \
|
||||||
|
@ -77,7 +80,8 @@
|
||||||
#define IPA_API_DISPATCH_RETURN_BOOL(api, p...) \
|
#define IPA_API_DISPATCH_RETURN_BOOL(api, p...) \
|
||||||
do { \
|
do { \
|
||||||
if (!ipa_api_ctrl) { \
|
if (!ipa_api_ctrl) { \
|
||||||
pr_err("IPA HW is not supported on this target\n"); \
|
pr_err("%s:%d IPA HW is not supported\n", \
|
||||||
|
__func__, __LINE__); \
|
||||||
ret = false; \
|
ret = false; \
|
||||||
} \
|
} \
|
||||||
else { \
|
else { \
|
||||||
|
|
|
@ -2034,7 +2034,7 @@ static void ipa_usb_debugfs_init(void)
|
||||||
|
|
||||||
ipa3_usb_ctx->dent = debugfs_create_dir("ipa_usb", 0);
|
ipa3_usb_ctx->dent = debugfs_create_dir("ipa_usb", 0);
|
||||||
if (IS_ERR(ipa3_usb_ctx->dent)) {
|
if (IS_ERR(ipa3_usb_ctx->dent)) {
|
||||||
IPA_USB_ERR("fail to create folder in debug_fs.\n");
|
pr_err("fail to create folder in debug_fs.\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2043,7 +2043,7 @@ static void ipa_usb_debugfs_init(void)
|
||||||
&ipa3_ipa_usb_ops);
|
&ipa3_ipa_usb_ops);
|
||||||
if (!ipa3_usb_ctx->dfile_state_info ||
|
if (!ipa3_usb_ctx->dfile_state_info ||
|
||||||
IS_ERR(ipa3_usb_ctx->dfile_state_info)) {
|
IS_ERR(ipa3_usb_ctx->dfile_state_info)) {
|
||||||
IPA_USB_ERR("failed to create file for state_info\n");
|
pr_err("failed to create file for state_info\n");
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2644,11 +2644,11 @@ static int __init ipa3_usb_init(void)
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
IPA_USB_DBG("entry\n");
|
pr_debug("entry\n");
|
||||||
ipa3_usb_ctx = kzalloc(sizeof(struct ipa3_usb_context), GFP_KERNEL);
|
ipa3_usb_ctx = kzalloc(sizeof(struct ipa3_usb_context), GFP_KERNEL);
|
||||||
if (ipa3_usb_ctx == NULL) {
|
if (ipa3_usb_ctx == NULL) {
|
||||||
IPA_USB_ERR("failed to allocate memory\n");
|
pr_err("failed to allocate memory\n");
|
||||||
IPA_USB_ERR(":ipa_usb init failed\n");
|
pr_err(":ipa_usb init failed\n");
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
memset(ipa3_usb_ctx, 0, sizeof(struct ipa3_usb_context));
|
memset(ipa3_usb_ctx, 0, sizeof(struct ipa3_usb_context));
|
||||||
|
@ -2680,19 +2680,19 @@ static int __init ipa3_usb_init(void)
|
||||||
|
|
||||||
ipa3_usb_ctx->wq = create_singlethread_workqueue("ipa_usb_wq");
|
ipa3_usb_ctx->wq = create_singlethread_workqueue("ipa_usb_wq");
|
||||||
if (!ipa3_usb_ctx->wq) {
|
if (!ipa3_usb_ctx->wq) {
|
||||||
IPA_USB_ERR("failed to create workqueue\n");
|
pr_err("failed to create workqueue\n");
|
||||||
res = -EFAULT;
|
res = -EFAULT;
|
||||||
goto ipa_usb_workqueue_fail;
|
goto ipa_usb_workqueue_fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
ipa_usb_debugfs_init();
|
ipa_usb_debugfs_init();
|
||||||
|
|
||||||
IPA_USB_INFO("exit: IPA_USB init success!\n");
|
pr_info("exit: IPA_USB init success!\n");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
ipa_usb_workqueue_fail:
|
ipa_usb_workqueue_fail:
|
||||||
IPA_USB_ERR(":init failed (%d)\n", -res);
|
pr_err(":init failed (%d)\n", -res);
|
||||||
kfree(ipa3_usb_ctx);
|
kfree(ipa3_usb_ctx);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue