aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-02-15defconfig: hikey: enable more configs in CFG80211, MAC80211, and RFKILLhikey-android-publicGuodong Xu
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2015-02-15dts: hikey: add device tree info for using TI WL1835 WIFIGuodong Xu
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>
2015-02-15wlcore: adding a u32 in struct wl1271 to make fields 64bit alignedGuodong Xu
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>
2015-02-15dts: hikey: add WLAN_EN pin as fixed regulatorGuodong Xu
Add WLAN_EN GPIO pin into DTS as fixed regulator Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2015-02-15defconfig: hikey: enable LED heartbeat and cpu triggersGuodong Xu
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2015-02-11hikey: android: Remove framebuffer_console.Fei Wang
Signed-off-by: Fei Wang <w.f@huawei.com>
2015-02-10drm/hisilicon: Fix can't display boot logo issueXinliang Liu
2015-02-08ARM64: defconfig: enable bluetooth RFCOMMJorge Ramirez-Ortiz
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
2015-02-08ARM64: defconfig: Add ST_HCI driverFathi Boudra
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2015-02-08ARM64: defconfig: clean up kernel configurationFathi Boudra
* 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>
2015-02-08ARM64: defconfig: Enable userspace firmware loaderVishal Bhoj
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2015-02-08android: configs: Add IPV6 and modules supportVishal Bhoj
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
2015-02-08Bluetooth: Add tty HCI driverPavan Savoy
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>
2015-02-07tsensor: monitor the cpu temperature and fix cpu freqkongxinwei
Signed-off-by: kongxinwei <kong.kongxinwei@hisilicon.com>
2015-02-07cpufreq: hisilicon: add flags for lock/unlock max freqLeo Yan
Add two flags for lock or unlock max frequency. Signed-off-by: Leo Yan <leo.yan@linaro.org>
2015-02-07cpufreq: hisilicon: support max frequency limitationLeo Yan
Add export symbol for max frequency limitation, this is a temporary solution for thermal cooling. Signed-off-by: Leo Yan <leo.yan@linaro.org>
2015-02-07clk: hi6220: fix compile error on arm32Bintian Wang
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
2015-02-07ARM: hisi: add missing maint irq in hi6220 gicHaojian Zhuang
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>
2015-02-07defconfig: enable cpufreq driver for hisi acpuLeo Yan
Enable cpufreq driver for hisi acpu, and use ondemand as default governor. Signed-off-by: Leo Yan <leo.yan@linaro.org>
2015-02-07dts: hi6220: add support for acpu cpufreq driverLeo Yan
Signed-off-by: Leo Yan <leo.yan@linaro.org>
2015-02-07cpufreq: hisilicon: add acpu driverLeo Yan
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>
2015-02-06Tsensor: temperature sensor is enable and use the mainline frameworkkongxinwei
for hikey board,when the temperature is too high,the systerm will reboot or crash it Signed-off-by: kongxinwei <kong.kongxinwei@hisilicon.com>
2015-02-06usb: dwc2: method of switching usb speedZhangfei Gao
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>
2015-02-06hi6220-hikey.dts: add LED supportKoen Kooi
Default triggers are: LED0: heartbeat LED1: mmc0 (eMMC) LED2: mmc1 (uSD slot) LED3: cpu0 Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
2015-02-06ARM64: defconfig: enable LED class and triggersKoen Kooi
Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
2015-02-06defconfig: enabled TI wlcore SDIO supportFathi Boudra
This module adds support for the SDIO interface of adapters using TI WLAN chipsets. Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2015-02-06defconfig: enable modules unload support and wl18xx driverFathi Boudra
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
2015-02-06usb: dwc2: fix USB core dependenciesArnd Bergmann
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>
2015-02-06usb: dwc2: gadget: initialize controller in pullup callbackGregory Herrero
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>
2015-02-06usb: dwc2: gadget: replace constants with definesMian Yousaf Kaukab
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>
2015-02-06usb: dwc2: gadget: fix phy interface configurationMian Yousaf Kaukab
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>
2015-02-06usb: dwc2: gadget: fix debug message for zlpMian Yousaf Kaukab
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>
2015-02-06usb: dwc2: gadget: don't modify pullup status during resetGregory Herrero
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>
2015-02-06usb: dwc2: gadget: add reset flag in init functionGregory Herrero
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>
2015-02-06usb: dwc2: gadget: add unaligned buffers supportMian Yousaf Kaukab
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>
2015-02-06usb: dwc2: gadget: remove hardcoded if (0) and if (1) checksMian Yousaf Kaukab
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>
2015-02-06usb: dwc2: gadget: fix a typo in commentGregory Herrero
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>
2015-02-06usb: dwc2: gadget: add TEST_MODE feature supportGregory Herrero
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>
2015-02-06usb: dwc2: gadget: fix clear halt feature handlingGregory Herrero
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>
2015-02-06usb: dwc2: host: resume root hub on remote wakeupGregory Herrero
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>
2015-02-06usb: dwc2: hcd: use HUB_CHAR_*Sergei Shtylyov
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>
2015-02-06Revert "usb: dwc2: add bus suspend/resume for dwc2"Paul Zimmerman
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>
2015-02-06usb: dwc2: remove workaroundZhangfei Gao
Signed-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>
2015-02-06defconfig: enable TI WL1835 bluetooth drivers as modulesGuodong Xu
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2015-02-06defconfig: enable modules support in kernel, set IPV6=y to avoid conflictsGuodong Xu
Signed-off-by: Guodong Xu <guodong.xu@linaro.org>
2015-02-06drivers:misc:ti-st: increase POR retry count from 5 to 10Guodong Xu
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>
2015-02-06dts: hikey: add description for TI bluetooth and set baudrate to 115200Guodong Xu
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>
2015-02-06misc: hi6220: enable PMIC clock output CK32BGuodong Xu
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>
2015-02-06btwilink: add minimal device tree supportEyal Reizer
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]
2015-02-06ti-st: add device tree supportEyal Reizer
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]