Age | Commit message (Collapse) | Author |
|
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
Both non-removable and broken-cd are set for dwmmc_2. If only use 'non-removable',
no sdio card detection will happen. If only use 'broken-cd', following error message
will happen periodicly:
[ 601.103290] INFO: task kworker/u16:1:49 blocked for more than 120 seconds.
[ 601.110176] Tainted: G W 3.18.0+ #2
[ 601.115334] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 601.123165] kworker/u16:1 D ffffffc000085598 0 49 2 0x00000000
[ 601.130270] Workqueue: kmmcd mmc_rescan
[ 601.134127] Call trace:
[ 601.136580] [<ffffffc000085598>] __switch_to+0x74/0x8c
[ 601.141722] [<ffffffc000802ba8>] __schedule+0x2b8/0x744
[ 601.146965] [<ffffffc000803058>] schedule+0x24/0x74
[ 601.151852] [<ffffffc000805bc0>] schedule_timeout+0x1b0/0x24c
[ 601.157615] [<ffffffc000803d20>] wait_for_common+0x9c/0x144
[ 601.163193] [<ffffffc000803dd8>] wait_for_completion+0x10/0x1c
Message from sy[ 601.169304] [<ffffffc0006517c4>] mmc_wait_for_req_done+0x34/0xfc
slogd@linaro-dev[ 601.176701] [<ffffffc000651914>] mmc_wait_for_cmd+0x58/0x88
eloper at Jul 3[ 601.183658] [<ffffffc00065804c>] _mmc_select_card+0x44/0x54
18:55:31 ...
[ 601.190595] [<ffffffc000658204>] mmc_select_card+0x14/0x50
kernel:[ 601.1[ 601.197478] [<ffffffc00065aba8>] mmc_sdio_alive+0xc/0x18
34127] Call trac[ 601.204174] [<ffffffc000653ba0>] _mmc_detect_card_removed+0x60/0xf8
e:
[ 601.211805] [<ffffffc00065bd38>] mmc_sdio_detect+0x28/0xc4
[ 601.217732] [<ffffffc000653efc>] mmc_rescan+0x1c0/0x33c
[ 601.222964] [<ffffffc0000c6d9c>] process_one_work+0x13c/0x408
[ 601.228724] [<ffffffc0000c7814>] worker_thread+0x140/0x470
[ 601.234228] [<ffffffc0000cbed8>] kthread+0xd8/0xf0
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
Add a u32 in struct wl1271 to make fields reg_ch_conf_last and
reg_ch_conf_pending 64bit aligned.
Without this, on 64bit ARM, wlcore_set_pending_regdomain_ch() will fail at
the point it calls set_bit(ch_bit_idx, (long*)wl->reg_ch_conf_pending);
Here is the error message while doing iw wlan0 scan or connect:
[ 760.644782] wlcore: WL1271_ACX_INTR_DATA
[ 760.648734] Unhandled fault: alignment fault (0x96000021) at 0xffffffc01bdc1b54
[ 760.656048] Internal error: : 96000021 [#1] PREEMPT SMP
[ 760.661267] Modules linked in: arc4 wl18xx wlcore mac80211 cfg80211 wlcore_sdio ti_conf_wl18xx btwilink st_drv bluetooth rfkill
[ 760.672824] CPU: 0 PID: 1514 Comm: irq/198-wl18xx Tainted: G W 3.10.52-wl-00204-gf704232-dirty #8
[ 760.682558] task: ffffffc01d956040 ti: ffffffc01bea4000 task.ti: ffffffc01bea4000
[ 760.690043] PC is at set_bit+0x14/0x30
[ 760.693806] LR is at wlcore_set_pending_regdomain_ch+0x38/0x44 [wlcore]
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
Add WLAN_EN GPIO pin into DTS as fixed regulator
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
Signed-off-by: Fei Wang <w.f@huawei.com>
|
|
|
|
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
|
|
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
|
|
* get rid of android related configuration. android/configs/ config fragments should be used instead.
* remove default config options
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
|
|
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
|
|
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
|
|
Bluetooth: Add tty HCI driver
tty_hci driver exposes a /dev/hci_tty character device node, that intends to
emulate a generic /dev/ttyX device that would be used by the user-space
Bluetooth stacks to send/receive data to/from the WL combo-connectivity
chipsets.
The device driver has no internal logic of its own to intrepret data & all
such logic is handled by the user-space stack.
Change-Id: Ifa3860bbc7e252af210fde710bce14143239b552
Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
[Fixed checkpatch warnings]
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
[Fixed checkpatch --strict warnings]
Signed-off-by: Eyal Reizer <eyalr@ti.com>
|
|
Signed-off-by: kongxinwei <kong.kongxinwei@hisilicon.com>
|
|
Add two flags for lock or unlock max frequency.
Signed-off-by: Leo Yan <leo.yan@linaro.org>
|
|
Add export symbol for max frequency limitation, this is a temporary
solution for thermal cooling.
Signed-off-by: Leo Yan <leo.yan@linaro.org>
|
|
Fix the following compile error when choose arm32 platform:
drivers/built-in.o: In function `hi6220_clk_register_divider':
:(.init.text+0x1a84c): undefined reference to `hi6220_register_clkdiv'
Makefile:925: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
Signed-off-by: Bintian Wang <bintian.wang@huawei.com>
Reported-by: tyler.baker@linaro.org
|
|
The maintence irq is missed in GIC400 of Hi6220 SoC. The error message
is in below.
[ 2.695277] kvm [1]: Using HYP init bounce page @3c217000
[ 2.701327] kvm [1]: error getting vgic maintenance irq from DT
[ 2.707742] kvm [1]: error initializing Hyp mode: -6
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
|
|
Enable cpufreq driver for hisi acpu, and use ondemand as default
governor.
Signed-off-by: Leo Yan <leo.yan@linaro.org>
|
|
Signed-off-by: Leo Yan <leo.yan@linaro.org>
|
|
Add acpu driver for hisilicon SoC, the target function can use two
methods to trigger frequency change, one method is to use register
based method, another method is to send request to firmware with "smc"
command. This can be configurable with dts flag: "hisilicon,call-atf".
This driver also can bind all cpus to change frequency together, or the
two clusters can trigger the frequency change independently. This is
controlled by the dts flag "hisilicon,coupled-clusters".
Signed-off-by: Leo Yan <leo.yan@linaro.org>
|
|
for hikey board,when the temperature is too high,the systerm will reboot
or crash it
Signed-off-by: kongxinwei <kong.kongxinwei@hisilicon.com>
|
|
1, hardware feature
high speed:
host A only support high speed, does not support keyboard/mouse
otg host support all speed, including keyboard/mouse
full speed:
Both host A and otg host only support full/low speed.
2. If user want to support full speed.
mount -t debugfs none /mnt
cd /mnt/f72c0000.usb/
cat config
echo 1 > config /* switch to full speed */
echo 0 > config /* switch to high speed */
Then unplug usb, host mode will switch to full speed, all ports don't support high speed in host mode.
Every time switch speed, just need plug usb -> unplug usb.
For example:
mount -t debugfs none /mnt
cd /mnt/f72c0000.usb/
cat config
input para should be:
0, HIGH speed;
1, FULL speed
Current speed=0: HIGH speed
If unplug usb and insert mouse now, it will fail.
usb 1-1-port1: unable to enumerate USB device
echo 1 > config
Current speed=1: FULL speed
cat config
input para should be:
0, HIGH speed;
1, FULL speed
Current speed=1: FULL speed
If unplug usb and insert mouse now
usb 1-1.1: new low-speed USB device number 8 using dwc2
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
Default triggers are:
LED0: heartbeat
LED1: mmc0 (eMMC)
LED2: mmc1 (uSD slot)
LED3: cpu0
Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
|
|
Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
|
|
This module adds support for the SDIO interface of adapters using TI WLAN chipsets.
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
|
|
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
|
|
It is currently possible to configure the dwc2 driver as built-in
when host mode or dual-role is enabled, but the USB core is
a loadable module. This leads to a link failure:
drivers/built-in.o: In function `_dwc2_hcd_start':
:(.text+0x84538): undefined reference to `usb_hcd_resume_root_hub'
drivers/built-in.o: In function `_dwc2_hcd_urb_dequeue':
:(.text+0x84aa0): undefined reference to `usb_hcd_check_unlink_urb'
:(.text+0x84e4c): undefined reference to `usb_hcd_unlink_urb_from_ep'
:(.text+0x84e74): undefined reference to `usb_hcd_giveback_urb'
drivers/built-in.o: In function `dwc2_assign_and_init_hc':
:(.text+0x86b98): undefined reference to `usb_hcd_unmap_urb_for_dma'
drivers/built-in.o: In function `_dwc2_hcd_urb_enqueue':
:(.text+0x8717c): undefined reference to `usb_hcd_link_urb_to_ep'
:(.text+0x872f4): undefined reference to `usb_hcd_unlink_urb_from_ep'
drivers/built-in.o: In function `dwc2_host_complete':
:(.text+0x875d4): undefined reference to `usb_hcd_unlink_urb_from_ep'
:(.text+0x87600): undefined reference to `usb_hcd_giveback_urb'
drivers/built-in.o: In function `dwc2_hcd_init':
:(.text+0x87ba8): undefined reference to `usb_disabled'
:(.text+0x87d38): undefined reference to `usb_create_hcd'
:(.text+0x88094): undefined reference to `usb_add_hcd'
:(.text+0x880dc): undefined reference to `usb_put_hcd'
drivers/built-in.o: In function `dwc2_hcd_remove':
:(.text+0x8821c): undefined reference to `usb_remove_hcd'
:(.text+0x8823c): undefined reference to `usb_put_hcd'
drivers/built-in.o: In function `dwc2_hc_handle_tt_clear.isra.10':
:(.text+0x88e2c): undefined reference to `usb_hub_clear_tt_buffer'
drivers/built-in.o: In function `dwc2_hcd_qtd_add':
:(.text+0x8b554): undefined reference to `usb_calc_bus_time'
To fix the problem, this patch changes the dependencies so that
dwc2 host mode can only be enabled if either the USB core is
built-in or both USB and dwc2 are modules.
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
USB reset interrupt is no more used to reset the controller.
Thus, reset the controller in pullup callback as described by
Synopsys programming guide. Otherwise enumeration sometimes
fails when usb configuration is switched without physical
disconnection.
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
Defines are more readable and searchable than constants.
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
hsotg->phyif is set in dwc2_gadget_init according to phy interface
width. Use it for configuration instead of hardcoded value.
Moreover, set USB turnaround time according to phy width.
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
Print debug message according to zlp direction. Always saying
"Sending" is misleading.
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
Pullup doesn't need to be enabled during usb reset since it is
already enabled. This leads to shorter chirp-k duration if done
during usb reset.
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
Add a flag to request physical reset of the controller when
s3c_hsotg_core_init_disconnected is called.
During the usb reset, controller must not be fully reconfigured and
resetted. Else this leads to shorter chirp-k duration during
enumeration.
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
When using DMA, dwc2 requires buffers to be 4 bytes aligned. Use
bounce buffers if they are not.
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
Remove dead code as well.
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Mian Yousaf Kaukab <yousaf.kaukab@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
s3c_hsotg_process_req_feature comments was not correct
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
Handle SET_FEATURE TEST_MODE request sent by the host.
Slightly rework FEATURE request handling to allow parsing
other request types than Endpoint.
Also add a debugfs to change test mode value from user space.
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
When clearing HALT on an endpoint, req->complete of in progress
requests must be called with locks off. New request should only be
started if there is not already a pending request on the endpoint.
Tested-by: Robert Baldyga <r.baldyga@samsung.com>
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
When a remote wakeup happens during bus_suspend, hcd needs to resume
its root hub.
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Gregory Herrero <gregory.herrero@intel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
Fix using the bare number to set the 'wHubCharacteristics' field of the Hub
Descriptor while the values are #define'd in <linux/usb/ch11.h>.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
This reverts commit 0cf884e819e05437287a668b9bfcc198bab6329c.
Even after applying the follow-on patch at
https://patchwork.kernel.org/patch/5325111
there are still problems with device connect on the Altera SOCFPGA
platform at least. One possible fix would be to add a whitelist
to enable suspend/resume on platforms where it does work correctly.
Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
|
|
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
|
|
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
Increase this retry count (from 5sec to 10sec) so it can meet user
space UIM polling.
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
Bluetooth uart1 cannot work at 3Mbps. That's an software issue which need to be
fixed. As a temporary workaround, set it to 115200bps.
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
|
|
CK32B is a 32K clock output from PMIC Hi6553. This clock is used by
TI WL1835MOD on HiKey board.
Signed-off-by: Bintian Wang <bintian.wang@huawei.com>
|
|
Add minimal device tree support to the btwilink driver that is used
for binding bluetooth with the ti-st shared transport driver.
Signed-off-by: Eyal Reizer <eyalr@ti.com>
Signed-off-by: Matt Porter <mporter@linaro.org>
[rebased on 3.18-rc4]
|
|
When using device tree, driver configuration data need to be read from
device node.
Add support for getting the platform data information from the device
tree information stored in the .dtb file in case it exists.
Signed-off-by: Eyal Reizer <eyalr@ti.com>
Signed-off-by: Matt Porter <mporter@linaro.org>
[rebased on 3.18-rc4]
|