summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)Author
2012-04-30ENGR00180103-3 V4L2: HDMI display error when dual display with LVDS panelWayne Zou
Restore fb_var_screeninfo when finishing video playback Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-04-30ENGR00180103-2 V4L2: remove GFP_DMA flag when alloc dma memoryWayne Zou
Remove GFP_DMA flag when alloc dma memory. Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-04-30ENGR00180103-1 V4L2: use copy_from/to_user() for user space pointerWayne Zou
V4L2: use copy_from/to_user() for user space pointer Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-04-27ENGR00175084 IPU-FB: change dma memory alloc gfp flags to GFP_KERNELWayne Zou
We only needs the dma buffer, don't care if it is from DMA Zone on i.mx SOC. To fix the following bug: mxc_ipudev_test: page allocation failure: order:13, mode:0x1 [<80042e08>] (unwind_backtrace+0x0/0xfc) from [<800b4dd8>] (warn_alloc_failed+0x9c/0x118) [<800b4dd8>] (warn_alloc_failed+0x9c/0x118) from [<800b5ac4>] (__alloc_pages_nodemask+0x494/0x6ec) [<800b5ac4>] (__alloc_pages_nodemask+0x494/0x6ec) from [<80046154>] (__dma_alloc+0xd4/0x2fc) [<80046154>] (__dma_alloc+0xd4/0x2fc) from [<800463a0>] (dma_alloc_writecombine+0x24/0x2c) [<800463a0>] (dma_alloc_writecombine+0x24/0x2c) from [<8024be34>] (mxcfb_set_par+0x3e4/0x4c0) [<8024be34>] (mxcfb_set_par+0x3e4/0x4c0) from [<80235f08>] (fb_set_var+0x168/0x2a4) [<80235f08>] (fb_set_var+0x168/0x2a4) from [<802363f8>](do_fb_ioctl+0x3b4/0x5f0) [<802363f8>] (do_fb_ioctl+0x3b4/0x5f0) from[<800f58d0>](do_vfs_ioctl+0x80/0x5e4) [<800f58d0>] (do_vfs_ioctl+0x80/0x5e4) from [<800f5e6c>] (sys_ioctl+0x38/0x60) [<800f5e6c>] (sys_ioctl+0x38/0x60) from [<8003d500>] (ret_fast_syscall+0x0/0x30) mxc_sdc_fb mxc_sdc_fb.0: Unable to allocate framebuffer memory detected fb_set_par error, error code: -12 Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-04-20ENGR00180229-2 VDOA: disable vdoa clock when no usedWayne Zou
Disable vdoa clock when no used Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-04-20ENGR00180229-1 V4L2: Fix a bug when doing tiled format deinterlacedWayne Zou
Initialize paddr_n when doing vdoa+vdi deinterlaced, when doing tiled format deinterlaced. Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-04-20ENGR00172292 usb otg: enable dtds postpone free on mx6Xinyu Chen
We found this bug occurs again on mx6 when running CTS with ADB over USB. The system will hang without any log, and screen a little mess. It's proved to be a known USB IP issue: USB controller may access a wrong address for the dTD and then hang. Re enable this workaround to avoid any system unstability. Signed-off-by: Xinyu Chen <xinyu.chen@freescale.com>
2012-04-17ENGR00179800 V4L2: Add VDOA tiled format post-processing supportWayne Zou
Add VDOA tiled format post-processing support Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-04-16ENGR00179696 MX6Q/UART : fix the wrong DMA tranfer direction.Huang Shijie
The current SDMA use the new DMA tranfer direction. But the UART still uses the old. This cause the RX failed. So use the new DMA transfer direction for UART. Signed-off-by: Huang Shijie <b32955@freescale.com>
2012-04-16ENGR00179679 Fix usb gadget suspend issue connected to usb chargerTony LIU
- the root cause of this issue is during resume process, USB clock is not turned on for this USB charger case so that the second suspend is processed without USB clock, it cause system hang - in udc resume process, at this situation, we should exit low power mode to enable the b session valid intrrupt to close the usb clock when detach from usb charger Signed-off-by: Tony LIU <junjie.liu@freescale.com>
2012-04-16IMX/DMA : set the DMA direction in the sdma_control()Huang Shijie
Set the right DMA direction in the sdma_control(), else we will get the wrong log when enable the DYNAMIC_DEBUG. Signed-off-by: Huang Shijie <b32955@freescale.com> Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
2012-04-13ENGR00179575 only set color depth if TV supports deep colorAlan Tull
If TV's EDID indicates that deep color is not supported, then write color depth field of HDMI_VP_PR_CD register to zero. Signed-off-by: Alan Tull <r80115@freescale.com>
2012-04-13ENGR00179601 Synopsys approved hdmi fifo workaround - rev 3Alan Tull
This patch includes some of the clk enable/disable changes from rev2 Check the version of the HDMI IP to determine whether the fifo threshold needs to be high. The i.Mx6dl version of the HDMI doesn't need the workaround. All other parts of the workaround are used for both parts for code simplicity. ---------------------------------------------------------- For i.Mxq, set the Threshold of audio fifo as: FIFO depth - 2 (fixed and independent of the number of channels actually used). Use unspecified length ahb bursts (using fixed INCRx will make the audio dma fail). Additionally and in order to get it working on all conditions it will be necessary to run the following sw steps at startup of video and audio (or when video changes or audio changes): 1-Configure AUD_N1 and AUD_CTS1 registers with final value and let the AUD_N2, AUD_N3, AUD_CTS2 and AUD_CTS3 to 0s. 2-Configure start and end addresses of audio DMA registers. 3-Start DMA operation 4-Configure the AUD_CTS2 and AUD_CTS3 with the final value. 5-Configure the AUD_N2 and AUD_N3 with final value. Signed-off-by: Alan Tull <r80115@freescale.com>
2012-04-13ENGR00179513-3 V4L2: Add VDOA tiled format supportWayne Zou
Support for VDOA tiled format IPU_PIX_FMT_TILED_NV12 up to 1080p progressive streams, and IPU_PIX_FMT_TILED_NV12F tiled format up to xga interlaced streams currently. Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-04-13ENGR00179513-2 IPU: Add TILED_NV12_FRAME_SIZE macro for consistencyWayne Zou
VPU needs 4K align buffer address for tiled format data output. Use this macro for IPU/V4L2/Apps to calculate the frame/field size. Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-04-13ENGR00179513-1 VDOA: update software state before start vdoaWayne Zou
Fix a bug when vdoa interrupt happens before software state updated. Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-04-13ENGR00179628-1 SSI: enable dual-fifo feature as defaultGary Zhang
enable SSI dual-fifo feature as default setting Signed-off-by: Gary Zhang <b13634@freescale.com>
2012-04-13ENGR00179485 fix CTS hang up issueRichard Liu
fix random hang up issue especially run CTS provided by Viv Signed-off-by: Richard Liu <r66033@freescale.com> Acked-by: Lily Zhang
2012-04-12ENGR00179510 ipu capture: fix system hang when running captureYuxi Sun
Add _ipu_get() and _ipu_put() when calling ipu_csi_get_sensor_protocol function. Signed-off-by: Yuxi Sun <b36102@freescale.com>
2012-04-12ENGR00179284-4 support ONFI NAND device on mx6q_arm2_pop boardAllen Xu
if the NAND chip supports ONFI feature and the board supports ONFI DDR transfer mode, users could enable ONFI DDR transfer by add command line parameter "onfi_support" Signed-off-by: Allen Xu <allen.xu@freescale.com>
2012-04-12ENGR00179284-3 support ONFI NAND device on mx6q_arm2_pop boardAllen Xu
Add bch and gpmi register define for ONFI ddr feature Signed-off-by: Allen Xu <allen.xu@freescale.com>
2012-04-12ENGR00179497-1 ECSPI: disable ecspi clock after probe and spi transferRobin Gong
before, it enable spi clock after probe, never been disable unless driver removed. To reduce power, disable clock after probe, and enable it before every spi transfer and disable it after spi transfer Signed-off-by: Robin Gong <B38343@freescale.com>
2012-04-11ENGR00177241-4 mx6 close APBH DMA clock when no I/O operationAllen Xu
Select APBH DMA automatically when enable GPMI NAND module. Signed-off-by: Allen Xu <allen.xu@freescale.com>
2012-04-11ENGR00177241-3 mx6 close APBH DMA clock when no I/O operationAllen Xu
When there is no NAND I/O operation, close all the reference clock, include GPMI,BCH and APBH clock. Signed-off-by: Allen Xu <allen.xu@freescale.com>
2012-04-11ENGR00177241-2 mx6 close APBH DMA clock when no I/O operationAllen Xu
When there is no NAND I/O operation, close all the reference clock, include GPMI,BCH and APBH clock. Signed-off-by: Allen Xu <allen.xu@freescale.com>
2012-04-10ENGR00179123 AMFM I2C module to ARD platform for IMX6Q and IMX6DLAlejandro Sierra
Basic I2C module integration of AMFM module to ARD platform IMX6Q and IMX6DL rev A and rev B boards. Supported for kernel 3.0.15. Signed-off-by: Alejandro Sierra <b18039@freescale.com>
2012-04-09ENGR00177317 - EPDC fb: Add clean-up for new EPDC buffer allocation schemeDanny Nold
- Added clean-up for new PxP output buffer allocation scheme. Clean-up covers cases where probe fails and where module is removed. Signed-off-by: Danny Nold <dannynold@freescale.com>
2012-04-09ENGR00175572 add NAND write verify supportAllen Xu
Add NAND write verify support in NAND code Signed-off-by: Allen Xu <allen.xu@freescale.com>
2012-04-09ENGR00179178 [RTC]Enable both wakealarm and common power wakeupAnson Huang
For RTC driver, as not all RTCs support alarm and wakeup, so the framework only support alarm or wakeup, not both of them, as our rtc can support alarm and wakeup function, to simplify the unit test interface for power off and wakeup, we add both wakealarm and common power wakeup sysfs interface to our RTC driver. Signed-off-by: Anson Huang <b20788@freescale.com>
2012-04-07ENGR00179130 Setting 480p Hsync and Vsync polarity is incorrectSandor Yu
Fix IPU DI registr DI_GENERAL incorrect initialize. Signed-off-by: Sandor Yu <R01008@freescale.com>
2012-04-06ENGR00178875-3 VDOA: Add VDOA driver support on i.MX6Wayne Zou
VDOA needs to sync with IPU. Add VDOA driver support under IPU drivers. Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-04-06ENGR00172303 - FEC : fix 'eth0: tx queue full!' issue.Fugang Duan
The issue is hard to reproduce in normal envrionment. And the reproduce rate is about 40% when doing VTE auto test. while the driver did report being busy when the link is down or no transmission buffers are available, it did not stop the queue, causing instant retries. furthermore, transmission being triggered with link down was caused by unconditional queue wakes, especially on timeouts. Now, wake queue only if link is up and transmission buffers are available, and dont forget to wake queue when link has been adjusted. next, add stop queue notification upon driver induced transmission problems, so network stack has a chance to handle the situation. Signed-off-by: Fugang Duan <B38611@freescale.com>
2012-04-06ENGR00177235-1 SDMA: add p2p dma modeChen Liangjun
Add support for p2p(peripheral to peripheral) dma mode in SDMA module. 1 Add p2p script membership in struct sdma_channel to support device to device tranfer. 2 P2P dma script need more configure information then memory to peripheral or peripheral to memory script. we configure these information into watermark_level. Signed-off-by: Chen Liangjun <b36089@freescale.com>
2012-04-06ENGR00179059 RTC: enable wakealarm attributeFrank Li
Set 10s wake alarm from now by below command echo +10 > /sys/class/rtc/rtc0/wakealarm Signed-off-by: Frank Li <Frank.Li@freescale.com>
2012-04-05ENGR00178951-1 serial/imx: dead lock dedected when handle sysrqJason Liu
imx_rxint -> spin_lock_irqsave(&sport->port.lock, flags); And then it will call the following functions: uart_handle_sysrq_char -> handle_sysrq -> printk -> __call_console_write_drivers -> imx_console_write -> Here the imx_console_write function will call: spin_lock_irqsave(&sport->port.lock, flags); The A-A deadlock happens. We need spin_unlock before handle sysrq char and spin_lock again after it. Signed-off-by: Jason Liu <r64343@freescale.com>
2012-04-05serial/imx: support to handle break characterHui Wang
The imx UART hardware controller can identify BREAK character and the imx_set_termios() can accept BRKINT set by users, but current existing imx_rxint() can't pass BREAK character and TTY_BREAK to the tty layer as other serial drivers do (8250.c omap_serial.c). Here add code to handle BREAK character and pass it to tty layer. To detect error occurrence, i use URXD_ERR to replace (URXD_OVRRUN | URXD_FRMERR | ...) because any kind of error occurs, URXD_ERR will always be set to 1. I put the URXD_BRK to the first place to check since when BREAK error occurs, not only URXD_BRK is set to 1, but also URXD_PRERR and URXD_FRMERR are all set to 1. This arrangement can filter out fake parity and frame errors when BREAK error occurs. Signed-off-by: Hui Wang <jason77.wang@gmail.com> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> (cherry picked from commit 019dc9ea8d528eb3640bbba604e1e5a2f6994b1f)
2012-04-05ENGR00178932 USB: fix two USB otg common bug for i.MX6make shi
- Built in gadget device driver, plug in USB cable with no response, the reason is USB VBUS wakeup is not enable after OTG switch,make sure pdata->port_enables is 1 even if the pdata is otg device pdata. -Without modprobe or built in gadget device driver,after plug out the USB otg cable,will output "wait otg vbus change timeout!".The reason is we get error otgsc data after USB enter low power mode. Signed-off-by: make shi <b15407@freescale.com>
2012-04-05ENGR00178646-1 [CPUFreq]Fix interactive governor bugAnson Huang
1. When system not boot up all cores, interactive governor will not work; 2. Adjust the default timer_rate to 50ms instead of 20ms to avoid too many freq up/down change. Signed-off-by: Anson Huang <b20788@freescale.com>
2012-04-04ENGR00175724-2 IPU: change ipu_device thread process mode to interrupt mode.Wayne Zou
IPU: change ipu_device thread process method to interrupt drive mode to get better IPU post-processing load balance. Signed-off-by: Wayne Zou <b36644@freescale.com>
2012-04-01ENGR00178642-1 gpu-viv: fix suspend/resume issue for #304Richard Zhao
Signed-off-by: Richard Zhao <richard.zhao@freescale.com> Acked-by: Lily Zhang
2012-04-01ENGR00178631 MX6: fix audmux build errorGary Zhang
fix the build error for audmux located at drivers\mxc\dam Signed-off-by: Gary Zhang <b13634@freescale.com>
2012-03-30mmc: block: fixed NULL pointer dereferenceJaehoon Chung
We already check for ongoing async transfers when handling discard requests, but not in mmc_blk_issue_flush(). This patch fixes that omission. Tested with an SDHCI controller and eMMC4.41. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Per Forlin <per.forlin@linaro.org> Cc: <stable@kernel.org> Signed-off-by: Chris Ball <cjb@laptop.org>
2012-03-30ENGR00178456 IPUv3 fb:Unblank primary fb only by defaultLiu Ying
This patch changes IPUv3 fb probe function logic to unblank the primary fb only by default so that the secondary fb using IPU DP BG channel won't be unblanked when system boot-ups. This avoids the HDMI fb(as the secondary fb using IPU DP BG channel) is unblanked accidentally without plugging in HDMI cable. Signed-off-by: Liu Ying <Ying.Liu@freescale.com> (cherry picked from commit 2c8188de61f84e40e26e662138af5ef4f81a0969)
2012-03-29ENGR00177264 Merge vivante 4.6.6p2 kernel part codeLoren Huang
Merge vivante 4.6.6p2 kernel part code Signed-off-by: Loren Huang <b02279@freescale.com> Acked-by: Lily Zhang
2012-03-29ENGR00178290-2 mmc: sdhci: introduce QUIRK_BROKEN_AUTO_CMD23 for mx6Dong Aisheng
We observed a few commands timeout when using auto cmd23. The root cause is still unkonwn. This patch is a workaround to not use auto cmd23 temporarily. Signed-off-by: Dong Aisheng <b29396@freescale.com>
2012-03-29ENGR00178290-1 Merge mmc: sdhci-esdhc-imx: Enable ADMA2Dong Aisheng
Add auto cmd23 fix. The original commit merged is: 97e4ba6a5 Subject: [PATCH 1/1] mmc: sdhci-esdhc-imx: Enable ADMA2 Eanble the ADMA2 mode for freescale esdhc imx driver, tested on MX25 3DS board, MX51 BBG board and MX53 LOCO board. This patch is only used to enable the ADMA2 for MX51/53 platforms. MX25/35 can't support the ADMA2 mode, set BROKEN_ADMA quirk on MX25/35 platforms. The ADMA mode supported or not can be distinguished by bit 20 of the Capability Register (offset 0x40) in the FSL eSDHC module. Signed-off-by: Richard Zhu <richard.zhu@linaro.org> Tested-and-acked-by: Eric Miao <eric.miao@linaro.org> Signed-off-by: Chris Ball <cjb@laptop.org> Signed-off-by: Dong Aisheng <b29396@freescale.com>
2012-03-28ENGR00178302 IPUv3:Enable error interrupts defaultlyLiu Ying
This patch enables IPUv3 error interrupts defaultly. Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
2012-03-28ENGR00178052 v4l2_capture:Correct multi-sensor uninstallationrel_imx_3.0.15_12.03.00Yuxi Sun
Point the current sensor to the right existent camera, and remove the detached one Signed-off-by: Yuxi Sun <b36102@freescale.com>
2012-03-28ENGR00177302 ASRC: change clock managementChen Liangjun
1 close clock when asrc is not working. 2 enable the asrc core clock when user sucessfully request an ASRC pair and disable it when the pair is release.So the call from ESAI using the p2p DMA mode can be support. Signed-off-by: Chen Liangjun <b36089@freescale.com>
2012-03-28ENGR00177756 usb-host: quit system suspend after usb remote wakeup occursPeter Chen
If the usb remote wakeup occurs before bus(roothub) suspend, it can stop the system suspend process, the patch adds handle error message process for roothub. If the remote wakeup occurs after bus(roothub) suspend, then the suspend will go on suspending, and usb phy will fail to respond wakeup signal. This patch is suggested by: Alan Stern <stern@rowland.harvard.edu> see: http://www.spinics.net/lists/linux-usb/msg58774.html Signed-off-by: Peter Chen <peter.chen@freescale.com>