aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/tcm_usb_gadget.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/tcm_usb_gadget.c')
-rw-r--r--drivers/usb/gadget/tcm_usb_gadget.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/usb/gadget/tcm_usb_gadget.c b/drivers/usb/gadget/tcm_usb_gadget.c
index 460c266b8e24..f058c0368d61 100644
--- a/drivers/usb/gadget/tcm_usb_gadget.c
+++ b/drivers/usb/gadget/tcm_usb_gadget.c
@@ -1471,6 +1471,11 @@ static void usbg_queue_tm_rsp(struct se_cmd *se_cmd)
1471{ 1471{
1472} 1472}
1473 1473
1474static void usbg_aborted_task(struct se_cmd *se_cmd)
1475{
1476 return;
1477}
1478
1474static const char *usbg_check_wwn(const char *name) 1479static const char *usbg_check_wwn(const char *name)
1475{ 1480{
1476 const char *n; 1481 const char *n;
@@ -1726,7 +1731,7 @@ static int tcm_usbg_make_nexus(struct usbg_tpg *tpg, char *name)
1726 pr_err("Unable to allocate struct tcm_vhost_nexus\n"); 1731 pr_err("Unable to allocate struct tcm_vhost_nexus\n");
1727 goto err_unlock; 1732 goto err_unlock;
1728 } 1733 }
1729 tv_nexus->tvn_se_sess = transport_init_session(); 1734 tv_nexus->tvn_se_sess = transport_init_session(TARGET_PROT_NORMAL);
1730 if (IS_ERR(tv_nexus->tvn_se_sess)) 1735 if (IS_ERR(tv_nexus->tvn_se_sess))
1731 goto err_free; 1736 goto err_free;
1732 1737
@@ -1897,6 +1902,7 @@ static struct target_core_fabric_ops usbg_ops = {
1897 .queue_data_in = usbg_send_read_response, 1902 .queue_data_in = usbg_send_read_response,
1898 .queue_status = usbg_send_status_response, 1903 .queue_status = usbg_send_status_response,
1899 .queue_tm_rsp = usbg_queue_tm_rsp, 1904 .queue_tm_rsp = usbg_queue_tm_rsp,
1905 .aborted_task = usbg_aborted_task,
1900 .check_stop_free = usbg_check_stop_free, 1906 .check_stop_free = usbg_check_stop_free,
1901 1907
1902 .fabric_make_wwn = usbg_make_tport, 1908 .fabric_make_wwn = usbg_make_tport,