15 Jan, 2016
40 commits
-
Change the xinvert value from 0 to 1 on the "Capture Switch" control
WM8960 datasheet is shown as follows:
Bit 7 at 00h and 01h register address
1 : Enable Mute, 0 : Disable MuteSigned-off-by: JongHo Kim
Acked-by: Charles Keepax
Signed-off-by: Mark Brown
(cherry picked from commit 41a59cae585678136c28cdcbba9cb2faf27685f5) -
The fb_pan_display() return value should be corrected
according to the wait_for_completion_timeout() return
value.Signed-off-by: Fancy Fang
(cherry picked from commit 459d01cbda39e51029c55e583909ef645037b7f3)Conflicts:
drivers/video/mxsfb.c -
This is done in preperation for low power mode. Convert all clk_enable
to clk_prepare_enable and clk_disable to clk_disable_unprepare. Make sure
PLL3 power down when entering low power mode.Signed-off-by: Bai Ping
(cherry picked from commit 1808b31fdae576e775159a05cde9b45e404bb6e2) -
Change them to #ifdef as CONFIG_PM_SLEEP might not be defined at all.
Reported-by: kbuild test robot
Signed-off-by: Nicolin Chen
Signed-off-by: Mark Brown
(cherry picked from commit 739146b6144a6541cf94a668d6e7227b7882af30) -
This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.Signed-off-by: Luis de Bethencourt
Signed-off-by: Mark Brown
(cherry picked from commit c759241fe2f16e6be43675abaa715f0da9d7a254) -
fix typo for imx7d-12x12-lpddr3-arm2-sai.dtb
Signed-off-by: Zidan Wang
-
Since we have supported control vbus through ID pin, we can
support dual switch function for otg port, but fully otg can't
be supported at this port.Signed-off-by: Peter Chen
-
These system configuration flags are also needed for imx6ul.
Signed-off-by: Peter Chen
-
i.mx6UL uses chipidea v2.5a core, it does not have the bug
(see 3bdfc2609b621c57355024005031acb94eabb8fc) which needs
to disable stream mode to work around.Signed-off-by: Peter Chen
-
Since the ci->role will be set after the host role start is complete, there
will be nobody cared irq during start host if usb irq enabled. This error
can be reproduced on i.mx6 sololite EVK board by:
1. disable otg id irq(IDIE) and disable all real otg properties of usbotg1
in dts.
2. boot up the board with ID cable and usb device connected.
3. echo gadget > /sys/kernel/debug/ci_hdrc.0/role
4. echo host > /sys/kernel/debug/ci_hdrc.0/role
5. irq 212: nobody cared.Cc: # v3.10+
Signed-off-by: Li Jun
Signed-off-by: Peter Chen
Signed-off-by: Peter Chen -
Since we have dynamic debug support, delete static debug for chipidea
Signed-off-by: Peter Chen
Signed-off-by: Peter Chen -
Since we need to mount debugfs to show/store the things we
want to debug, it is duplicated to add another configuration
to enable it. Meanwhile, with CONFIG_USB_CHIPIDEA_DEBUG,
we can't support chipidea debugfs at runtime.Signed-off-by: Peter Chen
Cc: Jun Li
Signed-off-by: Peter Chen -
_hardware_enqueue() didn't check for errors when using
add_td_to_list() which can fail if dma_pool_alloc fails, thus
causing a kernel panic when lastnode->ptr is NULL.Signed-off-by: Felipe F. Tonello
Signed-off-by: Peter Chen -
Update comments to reflect current state of functions.
Signed-off-by: Felipe F. Tonello
Signed-off-by: Peter Chen -
Some HW design may use ID pin state to control vbus for otg port,
so before host role start, the vbus is already turned on, in this
case, we do not need wait vbus dropping below BSV.Signed-off-by: Li Jun
Signed-off-by: Peter Chen
Signed-off-by: Peter Chen -
Fix using the PCI_DEVICE() macro instead of less verbose PCI_VDEVICE().
Signed-off-by: Sergei Shtylyov
Signed-off-by: Peter Chen -
Due to having hardware tx buffers less than 512 bytes in size, streaming
must be enabled on the Zynq for the udc to work at all. Add platform data
specific to the Zynq udc, which does not set the CI_HDRC_DISABLE_STREAMING
flag.Based on a patch by the same name from the Xilinx vendor tree.
Signed-off-by: Nathan Sullivan
Signed-off-by: Peter Chen -
Each vendor may have its specific properties, they are not belonged
to common optional properties, split them from common's.Acked-by: Rob Herring
Signed-off-by: Peter Chen
Signed-off-by: Peter Chen -
Improve the description of properties "tx-burst-size-dword"
and "rx-burst-size-dword".Signed-off-by: Peter Chen
Signed-off-by: Peter Chen
Cc: Lucas Stach
Cc: Shanw Guo -
- Replace all "transceiver" with "phy"
- Replace one "OTG controller" with "phy"Signed-off-by: Peter Chen
Signed-off-by: Felipe Balbi -
The bulk queue tests are used to show 'best performance' for bulk
transfer, we are often asked this question by users. The implementation
is the same with iso test, that is queue request at interrupt completion,
so we reuse the iso structures, and rename them as common one.It's result should be very close to IC simulation, in order
to get that, the device side should also need to prepare enough
queue.We have got the 'best performance' (IN: 41MB, OUT: 39MB) at i.mx platform
(USB2, ARM Cortex A9, stream mode need to enable) with below command:Host side:
modprobe usbtest
./testusb -a -t 27 -g 64 -s 16384
./testusb -a -t 28 -g 64 -s 16384
Gadget side:
modprobe g_zero loopdefault=1 qlen=64 buflen=16384Signed-off-by: Peter Chen
Cc: Greg KH
Cc: Alan Stern
Signed-off-by: Felipe Balbi -
With this change, the host and gadget doesn't need to agree with transfer
length for comparing the data, since they doesn't know each other's
transfer size, but know max packet size.Signed-off-by: Peter Chen
Acked-by: Michal Nazarewicz
(Fixed the 'line over 80 characters warning' by Peter Chen)
Tested-by: Peter Chen
Signed-off-by: Alan Stern
Signed-off-by: Felipe Balbi -
For ctrl out test, it needs length > vary, so in order to run it with
default parameters, we do this change.Acked-by: Michal Nazarewicz
Cc: Michal Nazarewicz
Signed-off-by: Peter Chen
Signed-off-by: Felipe Balbi -
The 'length' is the transfer length, not the packet size, so
change the help text.Acked-by: Michal Nazarewicz
Cc: Michal Nazarewicz
Signed-off-by: Peter Chen
Signed-off-by: Felipe Balbi -
Since the host and gadget can't agree with transfer length before
each transfer, but they agree with max packet size for each
endpoint, we use max packet size to format data pattern.Acked-by: Michal Nazarewicz
Signed-off-by: Peter Chen
Signed-off-by: Felipe Balbi -
Using the same data format "buf[j] = (u8)(i + j)" among
write, compare buf, and console output stage.Acked-by: Michal Nazarewicz
Signed-off-by: Peter Chen
Signed-off-by: Felipe Balbi -
The element of urbs array will be initialized at below code
at once.for (i = 0; i < param->sglen; i++) {
urbs[i] = iso_alloc_urb(udev, pipe, desc,
param->length, offset);Acked-by: Michal Nazarewicz
Signed-off-by: Peter Chen
Signed-off-by: Felipe Balbi -
Allocate the size of urb pointer array according to testusb's
parameter sglen, and limits the length of sglen as MAX_SGLEN
(128 currently).Acked-by: Michal Nazarewicz
Signed-off-by: Peter Chen
Signed-off-by: Felipe Balbi -
The current code prints all wMaxPacketSize content at endpoint
descriptor, if there is a high speed, high bandwidth endpoint,
it may confuse the users, eg, if there are 3 transactions during
microframe, it will print "wMaxPacket 1400" for packet content.
This commit splits wMaxpacketSize and transaction numbers for
output messages.Signed-off-by: Peter Chen
Signed-off-by: Greg Kroah-Hartman -
using macro for default register map
Signed-off-by: Zidan Wang
Acked-by: Nicolin Chen
Signed-off-by: Mark Brown
(cherry picked from commit 43f20d51f4d5070f5e254119419ce2c98ab0c2bd) -
For i.MX6 SoloX, there is a mode of the SoC to shutdown all power
source of modules during system suspend and resume procedure. Thus,
SSI needs to save all the values of registers before the system
suspend and restore them after the system resume.The register SFCSR is volatile, but some bits in it need to be
recovered after suspend/resume.Signed-off-by: Zidan Wang
Acked-by: Nicolin Chen
Signed-off-by: Mark Brown
(cherry picked from commit 05cf237972fe65eb537ea4f10e5627ceeb8f89b6) -
STL and STR registers are writable and not readable. So they are non volatile.
Remove them from volatile list, and add default register value for them.Signed-off-by: Zidan Wang
Acked-by: Nicolin Chen
Signed-off-by: Mark Brown
(cherry picked from commit 2a0035113a0f16305476083fc6bacdd0e29b1e5f) -
For i.MX6 SoloX, there is a mode of the SoC to shutdown all power source of
modules during system suspend and resume procedure. Thus, SPDIF needs to save
all the values of registers before the system suspend and restore them after
the system resume.The SRPC register should be volatile, LOCK bit is set by the hardware.
Signed-off-by: Zidan Wang
Acked-by: Nicolin Chen
Signed-off-by: Mark Brown
(cherry picked from commit f9f4fa61aab9417e40898cf6706fffa94005dc44) -
ETDR and TX0~5 registers are writable and not readable. So they are non
volatile. Remove them from volatile list, and add default register value for
them.Signed-off-by: Zidan Wang
Acked-by: Nicolin Chen
Signed-off-by: Mark Brown
(cherry picked from commit 9528f0b1e8b7249460700b4df53b9f6b61da8c60) -
For i.MX6 SoloX, there is a mode of the SoC to shutdown all power source of
modules during system suspend and resume procedure. Thus, ESAI needs to save
all the values of registers before the system suspend and restore them after
the system resume.Signed-off-by: Zidan Wang
Acked-by: Nicolin Chen
Signed-off-by: Mark Brown
(cherry picked from commit c64c60763b4e3c72a3520c8d51be858cd67bacb5) -
FSL_SAI_TDR register is writable and not readable. According to
regmap_volatile() function, if FSL_SAI_TDR want to be volatile,
it should be readable. So we should remove FSL_SAI_TDR from volatile
register list.If the flat cache don't have default register map, when do regcache_sync
operation, the non volatile and writable registers will be synchronised
to 0. FSL_SAI_TDR reigster will be written a 0 and cause channel swap.
So add default register map for flat cache, and such register will not
be written.Signed-off-by: Zidan Wang
Acked-by: Nicolin Chen
Signed-off-by: Mark Brown
(cherry picked from commit b9b21722ff2e431c85d33bcc950327093cf9a991) -
Correct wdog->timeout after set_timeout(), otherwise, the WDIOC_GETTIMEOUT
will return the default value '60s' always, correct it and also for the new
wdog->pretimeout.Signed-off-by: Robin Gong
-
The pre-timeout interrupt will be triggered before watchdog timeout happen.
So add interface in imx2_wdt driver.Signed-off-by: Robin Gong
-
Since the watchdog common framework centrialize the IOCTL interfaces of device
driver now, the SETPRETIMEOUT and GETPRETIMEOUT need to be added in common codeSigned-off-by: Robin Gong
-
Add set_pretimeout since our watchdog driver has those interfaces and
obviously, the new common watchdog framework didn't implement this interface.Signed-off-by: Robin Gong