Loading drivers/platform/msm/usb_bam.c +1 −0 Original line number Diff line number Diff line Loading @@ -3568,6 +3568,7 @@ bool msm_usb_bam_enable(enum usb_ctrl bam, bool bam_enable) log_event_dbg("%s: USB BAM Registered\n", __func__); msm_hw_bam_disable(0); } else { msm_hw_soft_reset(); msm_hw_bam_disable(1); sps_device_reset(ctx->h_bam); sps_deregister_bam_device(ctx->h_bam); Loading drivers/usb/gadget/ci13xxx_msm.c +8 −1 Original line number Diff line number Diff line /* Copyright (c) 2010-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2010-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -470,6 +470,13 @@ void ci13xxx_msm_shutdown(struct platform_device *pdev) ci13xxx_pullup(&_udc->gadget, 0); } void msm_hw_soft_reset(void) { struct ci13xxx *udc = _udc; hw_device_reset(udc); } void msm_hw_bam_disable(bool bam_disable) { u32 val; Loading include/linux/usb/msm_hsusb.h +5 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ * * Copyright (C) 2008 Google, Inc. * Author: Brian Swetland <swetland@google.com> * Copyright (c) 2009-2016, The Linux Foundation. All rights reserved. * Copyright (c) 2009-2017, The Linux Foundation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and Loading Loading @@ -659,9 +659,13 @@ static inline bool msm_usb_bam_enable(enum usb_ctrl ctrl, bool bam_enable) int msm_do_bam_disable_enable(enum usb_ctrl ctrl) { return true; } #endif #ifdef CONFIG_USB_CI13XXX_MSM void msm_hw_soft_reset(void); void msm_hw_bam_disable(bool bam_disable); void msm_usb_irq_disable(bool disable); #else static inline void msm_hw_soft_reset(void) { } static inline void msm_hw_bam_disable(bool bam_disable) { } Loading Loading
drivers/platform/msm/usb_bam.c +1 −0 Original line number Diff line number Diff line Loading @@ -3568,6 +3568,7 @@ bool msm_usb_bam_enable(enum usb_ctrl bam, bool bam_enable) log_event_dbg("%s: USB BAM Registered\n", __func__); msm_hw_bam_disable(0); } else { msm_hw_soft_reset(); msm_hw_bam_disable(1); sps_device_reset(ctx->h_bam); sps_deregister_bam_device(ctx->h_bam); Loading
drivers/usb/gadget/ci13xxx_msm.c +8 −1 Original line number Diff line number Diff line /* Copyright (c) 2010-2016, The Linux Foundation. All rights reserved. /* Copyright (c) 2010-2017, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -470,6 +470,13 @@ void ci13xxx_msm_shutdown(struct platform_device *pdev) ci13xxx_pullup(&_udc->gadget, 0); } void msm_hw_soft_reset(void) { struct ci13xxx *udc = _udc; hw_device_reset(udc); } void msm_hw_bam_disable(bool bam_disable) { u32 val; Loading
include/linux/usb/msm_hsusb.h +5 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ * * Copyright (C) 2008 Google, Inc. * Author: Brian Swetland <swetland@google.com> * Copyright (c) 2009-2016, The Linux Foundation. All rights reserved. * Copyright (c) 2009-2017, The Linux Foundation. All rights reserved. * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and Loading Loading @@ -659,9 +659,13 @@ static inline bool msm_usb_bam_enable(enum usb_ctrl ctrl, bool bam_enable) int msm_do_bam_disable_enable(enum usb_ctrl ctrl) { return true; } #endif #ifdef CONFIG_USB_CI13XXX_MSM void msm_hw_soft_reset(void); void msm_hw_bam_disable(bool bam_disable); void msm_usb_irq_disable(bool disable); #else static inline void msm_hw_soft_reset(void) { } static inline void msm_hw_bam_disable(bool bam_disable) { } Loading