From cb791c3012b563c8b69e229f3f84ef6906cae831 Mon Sep 17 00:00:00 2001 From: Chandana Kishori Chiluveru Date: Tue, 7 May 2019 19:21:52 +0530 Subject: [PATCH] ANDROID: GKI: add dev to usb_gsi_request Partial cherry pick for structure members only. Signed-off-by: Chandana Kishori Chiluveru (cherry picked from commit c050533c95d0d85a8989b3ae2c9a235d8be8b35a) Signed-off-by: Mark Salyzyn Bug: 157994070 Change-Id: I327126148c2311884aee2aa99bb59b7add06e303 Signed-off-by: Will McVicker --- include/linux/usb/gadget.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 9a520f42aaac..0ce9d9972955 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h @@ -133,6 +133,9 @@ struct usb_request { * @db_reg_phs_addr_lsb: IPA channel doorbell register's physical address LSB * @mapped_db_reg_phs_addr_lsb: doorbell LSB IOVA address mapped with IOMMU * @db_reg_phs_addr_msb: IPA channel doorbell register's physical address MSB + * @sgt_trb_xfer_ring: USB TRB ring related sgtable entries + * @sgt_data_buff: Data buffer related sgtable entries + * @dev: pointer to the DMA-capable dwc device */ struct usb_gsi_request { void *buf_base_addr; @@ -144,6 +147,7 @@ struct usb_gsi_request { u32 db_reg_phs_addr_msb; struct sg_table sgt_trb_xfer_ring; struct sg_table sgt_data_buff; + struct device *dev; }; enum gsi_ep_op {