Add error codes to error messages for better debugging.
This helps identify the root cause when USB audio offload fails.
Error messages now include the actual error code returned by
xhci_sideband operations, making it easier to diagnose failures
during USB audio offload setup.
Signed-off-by: wangdicheng <wangdicheng@kylinos.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20260603091102.231370-1-wangdich9700@163.com
ret = xhci_sideband_add_endpoint(uadev[card_num].sb, ep);
if (ret < 0) {
dev_err(&subs->dev->dev,
- "failed to add data ep to sec intr\n");
+ "failed to add data ep to sec intr: %d\n", ret);
ret = -ENODEV;
goto exit;
}
sgt = xhci_sideband_get_endpoint_buffer(uadev[card_num].sb, ep);
if (!sgt) {
dev_err(&subs->dev->dev,
- "failed to get data ep ring address\n");
+ "failed to get data ep ring address: %d\n", ret);
ret = -ENODEV;
goto remove_ep;
}