usb: tusb320: fix compiling warning
IS_ERR_VALUE is used for pointer validation, and
it should not be used to check the error code for function returns.
https://patchwork.ozlabs.org/patch/627363/
regulator: bd71837: fix section mismatch errors during compiling
Fix section mismatch errors below:
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
WARNING: drivers/built-in.o(.data+0x72c58): Section mismatch in reference from the variable bd71837_driver to the function .init.text:bd71837_probe()
The variable bd71837_driver references
the function __init bd71837_probe()
If the reference is valid then annotat...
usb: tusb320: make power supply control optional
In that case the driver only allows to control the advertised mode
to external devices/peripherals.
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
usb: tusb320: make enable pin optional
In case it is not connected to the chip but is grounded instead.
Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
usb: tusb320: use power_supply hooks to notify usb
Use the power_supply property to advertise UFP/DFP
and current mode to usb driver.
Change-Id: Ie9220015d2720d5868e591829f3185fe8dbb4378
Signed-off-by: mohamed.khadri <mohamed.khadri@lge.com>
Signed-off-by: jaesung.woo <jaesung.woo@lge.com>
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>
ARM64: dts: wand-pi-8m: specify regulator 'buck4' for VPU
Follow the mechanism in Hantro driver:
MLK-17450 - [i.MX8MQ/Hantro]: Support voltage adjustment
Update vpu voltage to 1.0v for 600M+ clock
Otherwise, keep 0.9v voltage
ARM64: dts: wand-pi-8m: validate USB OTG role switching
Connect GPIO1_IO10 to USB1_ID pin instead.
There is no hook to control VBUS power when ID pin changes.
It requires to switch on/off VBUS via sysfs GPIO.
ARM64: configs: wand_pi_defconfig: enable CFG80211_WEXT and remove CONFIG_FW_LOADER_USER_HELPER_FALLBACK
The qcacld wifi driver tries to load inexistant wifi firmware 'qsetup30.bin'.
If it fails to load firmaware, it'll ask the userspace helper or it fails.
To remove 'CONFIG_FW_LOADER_USER_HELPER_FALLBACK' to prevent from loading inexisting firmware
to cause failure of loading wifi driver.
MMIOT-35-1 arm64: dts: imx8mq: add dts node pointers
These pointers are required for drm dts
Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com>
(cherry picked from commit 5f048351c272121cb82481a680407c415a898b3e)
Documentation: add fsl-heap and imx-ion-pool docs
Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com>
(cherry picked from commit eebe0cbb951dcf287b58ec0002d3e817be43d810)
staging/ion: CONFIG_ION_UNMAPPED_HEAP conditions unmapped heap
Condition ION unmapped heap implementation to architectures that
currently support it. ARM is one of these.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
(cherry picked from commit 7c7d9c446252829aa138c87c47a937e2a3b4fd26
linaro repo https://github.com/linaro-swg/linux.git
tag optee-v4.9-20171005)
(cherry picked from commit a3fd09542ff46c16c409a7ae76698326264ad...
ion: fix unmapped heap test settings **not for mainline**
If one enables ION_DUMMY_UNMAPPED_HEAP without providing the target
unmapped heap configuration settings (physical base address and size),
the kernel cannot build. This situation occurs in Linux test build
cases, i.e running the allmodconfig configuration.
This change overcomes the issue by providing default null settings for
both ION_DUMMY_UNMAPPED_BASE and ION_DUMMY_UNMAPPED_SIZE.
Signed-off-by: Etienne Carriere <etienne.carriere@...
ion: unmapped heap support in ion dummy driver **not for mainline**
Add configuration ION_DUMMY_UNMAPPED_HEAP to enable optional definition
of a statically defined "unmapped" heap for test purpose: kernel config
must provide the memory pool base address and byte size.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
(cherry picked from commit 961993fde60ebd06715d1433f8eb265471a0f38c
linaro repo https://github.com/linaro-swg/lin...
ion: "unmapped" heap for secure data path **not for mainline**
OP-TEE/SDP (Secure Data Path) memory pools are created through ION
secure type heap" from Allwinner. This change renames "secure" into
"unmapped" as, from Linux point of view, the heap constraint is
manipulating unmapped memory pools/buffers.
"Unmapped" heap support is integrated in ION UAPI (actually this was
the Allwinner initial proposal) and ION DT parsing support.
Based in work from Sunny <sunny@allwinnertech.com> for Allw...
staging/ion: add Allwinner ION "secure" heap **not for mainline**
Dumped from:
https://github.com/loboris/OrangePI-Kernel/tree/master/linux-3.4
0cc8d855adb
Author: Sunny <sunny@allwinnertech.com> for Allwinner.
Changes made on original "secure heap" implementation:
- minor coding style: fix includes, empty lines and overlong lines,
indentation, comment layout.
- Original path modified the ion uapi. We do not attempt to modify
uapi/ion.h. "secure" (or "domain") heaps are under ID
...
MGS-3691 fix gpu kernel panic in cache invalidate
kernel panic when run opencl cts test_buffers on mScale850D,
use get_user and put_user to touch and validate user memory,
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit 381665e0a47639fe8085f28e50598a701f14bccc)
MLK-17580: ASoC: fsl: sai: check for pinctrl status
For some cases (like AMIX) pinctrl may be null - this
breaks SAI functionality. Enforce pinctrl null pointer
checking prior calling any function which involves
pins state changes.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit 76b745dc501835e938d7ec6d81942568a27872a4)
MLK-17580: ARM64: dts: support DSD512 for ak4497
Add a dedicated DSD512 pinmux group for DSD512 in order
to eliminate the noise caused by a hight MCLK rate.
With the new option the SAI1 BCLK is routed to codec MCLK pin.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com
(cherry picked from commit f9c65f44d0e7da0e5a59dae9434dc0d70cf2039b)
MLK-17580: ASoC: fsl: sai: Use DSD helper
Replace DSD related code with calls to DSD helper functions.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com
(cherry picked from commit d2af0ee812d563db7b9cc21c12b7670605d6e2f4)