From cf88544be30c4d47acc77abcf29cbdbd03b3b8b3 Mon Sep 17 00:00:00 2001 From: Peter Chen Date: Fri, 18 Nov 2011 14:02:45 +0800 Subject: ENGR00162583-3 usb header: avoid class driver access register after usb is off - An well-behavior class driver should disable their endpoints after being notified disconnect with host, we use all endpoints are stopped (ep->stopped) to indicates the class driver will not visit device driver any more. the ep-stopped will be initialized as 1 for non-control endpoint it will be 0 after fsl_ep_enable, and be 1 after fsl_ep_disable. Where is a non-sleep wait routine at disconnect event for waiting all endpoints are stopped - Some controller's (like i.mx6q) DP will change from J to SE0 slowly after the cable disconnects with host, in that case there will be a wakeup interrupt after driver enables the wakeup interrupt. For i.mx6q, there is a discharge routine for DP after the disconnection. - Should not wait vbus to low during first otg switch, as the wait will be timeout when the usb cable is connecting to host. Signed-off-by: Peter Chen --- include/linux/fsl_devices.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index cb2bcc1a47c0..a1f00c200c65 100644 --- a/include/linux/fsl_devices.h +++ b/include/linux/fsl_devices.h @@ -119,6 +119,7 @@ struct fsl_usb2_platform_data { enum usb_wakeup_event (*is_wakeup_event)(struct fsl_usb2_platform_data *); void (*wakeup_handler)(struct fsl_usb2_platform_data *); void (*hsic_post_ops)(void); + void (*gadget_discharge_dp) (bool); struct fsl_usb2_wakeup_platform_data *wakeup_pdata; struct platform_device *pdev; -- cgit v1.2.3 From 3a8fbb07c4354e75d73f42cf667cde7183a922a0 Mon Sep 17 00:00:00 2001 From: Tony Lin Date: Fri, 11 Nov 2011 11:00:39 +0800 Subject: ENGR00161951-1 [mx6q]performance monitor driver add plt_init & plt_exit functions to structure, so that the driver would have chance to do platform specific init and exit Signed-off-by: Tony Lin --- include/linux/fsl_devices.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index a1f00c200c65..79a2f9d8abcd 100644 --- a/include/linux/fsl_devices.h +++ b/include/linux/fsl_devices.h @@ -364,6 +364,8 @@ struct mxs_perfmon_bit_config { struct mxs_platform_perfmon_data { struct mxs_perfmon_bit_config *bit_config_tab; int bit_config_cnt; + void (*plt_init) (void); + void (*plt_exit) (void); }; #endif /* _FSL_DEVICE_H_ */ -- cgit v1.2.3 From 1064940d7c1cd4e726423c1d0e689e09b55c7781 Mon Sep 17 00:00:00 2001 From: Even Xu Date: Wed, 30 Nov 2011 09:28:33 +0800 Subject: ENGR00163497-1 Add a "io_init" function to fsl camera platform data Add a new member named "io_init" to fsl camera platform data, this Function can initialize IO of camera sensor before it works. Signed-off-by: Even Xu --- include/linux/fsl_devices.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h index 79a2f9d8abcd..cc1d8574dc7f 100644 --- a/include/linux/fsl_devices.h +++ b/include/linux/fsl_devices.h @@ -254,6 +254,7 @@ struct fsl_mxc_camera_platform_data { u32 mclk; u32 csi; void (*pwdn)(int pwdn); + void (*io_init)(void); }; struct mpc8xx_pcmcia_ops { -- cgit v1.2.3