1
0
Fork 0
Commit Graph

884259 Commits (c9c8fbf3a38c839e319067a1e870786bb8519066)

Author SHA1 Message Date
Vesa Jääskeläinen c9c8fbf3a3 tee: add support for session's client UUID generation
TEE Client API defines that from user space only information needed for
specified login operations is group identifier for group based logins.

REE kernel is expected to formulate trustworthy client UUID and pass that
to TEE environment. REE kernel is required to verify that provided group
identifier for group based logins matches calling processes group
memberships.

TEE specification only defines that the information passed from REE
environment to TEE environment is encoded into on UUID.

In order to guarantee trustworthiness of client UUID user space is not
allowed to freely pass client UUID.

UUIDv5 form is used encode variable amount of information needed for
different login types.

Signed-off-by: Vesa Jääskeläinen <vesa.jaaskelainen@vaisala.com>
(cherry picked from commit baa151f2924f09c8042ba627dc3b11bc0d6633b4)
2020-07-06 19:08:31 +02:00
Cedric Neveux ecff115254 driver: tee: Handle NULL pointer indication from client
TEE Client introduce a new capability "TEE_GEN_CAP_MEMREF_NULL"
  to handle the support of the shared memory buffer with a NULL pointer.

   This capability depends on TEE Capabilities and driver support.
   Driver and TEE exchange capabilities at driver initialization.

Signed-off-by: Michael Whitfield <michael.whitfield@nxp.com>
Signed-off-by: Cedric Neveux <cedric.neveux@nxp.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Tested-by: Joakim Bech <joakim.bech@linaro.org> (QEMU)
(cherry picked from commit 1149e7d06a009e5dacf6aaa29bd087da64bfbed2)
2020-07-06 19:08:31 +02:00
Robert Chiras 8beb0d0324 LF-1556: drm/bridge: nwl-dsi: Fix potential null-pointer dereference
Fix a potention null-pointer dereference in nwl_dsi_probe, found by a
Coverity scan.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Reviewed-by: Mirela Rabulea <mirela.rabulea@nxp.com>
2020-07-06 17:16:57 +03:00
Robert Chiras 7b812dbe55 LF-1554: drm/mxsfb: Fix possible overflow
Fix a possible overflow (at least a theoretical one, since a mode's
clock could never be near the MAX_INT in order to generate an overflow
when multiplied by 1000) in mxsfb_pipe_mode_valid function.
This overflow was discovered by Coverity scan.

Fixes: 7bfb905f8e ("Add max-memory-bandwidth property for MXSFB")
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Reviewed-by: Mirela Rabulea <mirela.rabulea@nxp.com>
2020-07-06 17:16:57 +03:00
Robert Chiras 5172b53ff6 LF-1555: drm: bridge: nwl-dsi: Fix null-pointer dereference
Fix a possible null-pointer dereference found in imx8mq_dsi_select_input
by Coverity scan.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
Reviewed-by: Mirela Rabulea <mirela.rabulea@nxp.com>
2020-07-06 17:16:57 +03:00
Robby Cai 67841b2327 LF-1596 dma: pxp: add checking for out against NULL
Coverity Issue ID: 414719

Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 02460d551d7c94e911240da6b62082b91653d923)
2020-07-06 18:04:07 +08:00
Robby Cai fe7318abc1 LF-1595 dma: pxp: fix the typo for possible_inputs_s1 checking
Coverity Issue ID: 379378

Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 9a66eb111f9419b93a4d3a3786e05488522cf9a6)
2020-07-06 18:03:52 +08:00
Robby Cai 2d98ad7b3a LF-1594 dma: pxp: fix out-of-bounds access
Coverity issue ID: 379372

As only one overlayer supported, the initialization for ol_param
need to be adjusted accordingly.

Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Fancy Fang <chen.fang@nxp.com>
(cherry picked from commit 13dcde085e1d017440e3f0bc829faac340a8674e)
2020-07-06 18:03:25 +08:00
Robby Cai 6ba0e80767 LF-1561 check return value of v4l2_async_notifier_add_subdev
Fixed the coverity issue ID 9536729

Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
(cherry picked from commit 8367d7255888848d5fdd45b95bf2094152d06470)
2020-07-06 18:03:15 +08:00
Peter Chen d2662861b7
MLK-24368-3 ARM64: configs: imx_v8_defconfig: enable CONFIG_USB_UAS
It is useful to support UAS storage device, and both our USB3 controllers
could support it.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2020-07-05 10:32:23 +08:00
Peter Chen 101f22317f
MLK-24368-2 usb: cdns3: host: indicate controller has stream capability
Indicate the controller has stream capability, it is useful for UAS
device.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2020-07-05 10:32:18 +08:00
Alifer Moraes ee96e9f815
MLK-24368-1 arm64: dts: imx8qm: Add support for USBH1
Add support for USBH1 on imx8qm, USBH1 is a HSIC controller

Reviewed-by: Jun Li <jun.li@nxp.com>
CC: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Alifer Moraes <alifer.moraes@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2020-07-05 10:31:57 +08:00
Fabrice Goucem ee28ce5745 MLK-24366-3 spi: lpspi: handle EPROBE_DEFER when get cs-gpios number
If SPI is probed before the GPIO driver, it may miss the cs-gpio
configuration in dtb.
Add defer probe handler to wait GPIO driver probe.

Signed-off-by: Fabrice Goucem <fabrice.goucem@nxp.com>
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-07-03 18:18:04 +08:00
Clark Wang 9cc4a608fd MLK-24366-2 spi: lpspi: put spi_register at the end of probe function
Calling the spi_register function prematurely will cause a warning
dump if the probe fails after calling the devm_spi_register_controller
function.

So put devm_spi_register_controller() at the end of probe function.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-07-03 18:18:04 +08:00
Clark Wang 81050978c0 MLK-24366-1 spi: lpspi: add the missing pm_runtime_put in probe
Add the missing calling of the pm_runtime_put_xxx() to ensure pm_runtime
functions use in pairs.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-07-03 18:18:04 +08:00
Xianzhong 0e631625a9 MGS-5806 [#ccc] fix 8mm gpu hang due to dummy draw
shall trigger dummy draw when update gpu mmu setup,
the problem is caused by 8mp vip errata workaround.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2020-07-04 01:58:53 +08:00
Ella Feng ae39e0e8b1 MA-17404 [#imx-2206] Kernel code copyright and license issue.
Those files need have GPL license align with linux kernel. This is introduced by
VIP HW errata workaround.
Removed VSI private license and add GPL license.

Signed-off-by: Ella Feng <ella.feng@nxp.com>
2020-07-04 01:58:53 +08:00
Ming Qian a491cf9985 LF-1681: [8QM_MEK/8QXP_MEK]mxc:vpu_windsor: delete redundant data before start code
there may be some redundant data before the encoded frame,
generally it won't bring any problem.
but on android, the redundant data may affect the mux,
can cause the mp4 can't be decoded.
so delete the redundant data in the driver.

Signed-off-by: Ming Qian <ming.qian@nxp.com>
2020-07-03 14:35:38 +08:00
Viorel Suman 71e9774899 ASoC: fsl_micfil: fix PDM root clock frequency
Depending on sample rate the PDM must be clocked at either 24.576MHz or
22.5792MHz. CLK_DIV is later calculated as function of PDM root clock
frequency and FS. Setting PDM root clock = FS * 1024 is wrong because
for low sample rate such as 8000 the PDM root clock will be 8000 * 1024
= 8192000 Hz so PDM will be underclocked for this sample rate.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2020-07-02 11:13:26 +03:00
Joakim Zhang 2143242c69 MLK-24364 mxc: sim: add runtime pm support
Add runtime pm support for SIM.

Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
2020-07-02 21:32:13 +08:00
Joakim Zhang 1de612cb22 MLK-24363-2 mxc: emvsim: fix error report in probe stage
In probe stage, setting "emvsim_dev.parent = &pdev->dev" after error
report which is unreasonable, this patch fixes this issue.

Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
2020-07-02 21:32:12 +08:00
Joakim Zhang 68f1614266 MLK-24363-1 mxc: emvsim: add error check when enable clk
Add error check when enable clk and register misc device at the end of
probe stage. This patch just improve and clean up the code, no function
change.

Fixes: commit d494420149 ("MLK-23793-2 mxc: emvsim: add runtime pm support")
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
2020-07-02 21:32:12 +08:00
Liu Ying 3ae547355e LF-1599 media: platform: mxc_vout: Do not check 's->r.width/height<0' in ->vidioc_s_selection
The commit f90580ca01 ("[media] videodev2: Set vb2_rect's width
and height as unsigned") changes the width and height fields of
struct v4l2_rect from type __s32 to type __u32, which makes Coverity
complain that it's unnecessary for the platform driver to check on
the fields to ensure they are not less than zero.  This patch removes
the check to make Coverity happy.

This fixes Coverity issue: CID 9176743.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
2020-06-24 14:25:18 +08:00
Richard Zhu 12589ba98b MLK-24171-5 PCI: imx8mp: verify the pcie internal pll reference clock
- Verify the both internal PLL_SYS and external OSC reference clock
modes on iMX8MP EVK board, and pass the PCIe compliance tests.
- Remove the no-needed bypass setting.
- PHY configration should be completed before CMN_RSTN is set to 1b1
- To manually initiate the speed change to make sure GEN2 is linked up:
  - Write to LINK_CONTROL2_LINK_STATUS2_REG.PCIE_CAP_TARGET_LINK_SPEED
  in the local device
  - De-assert GEN2_CTRL_OFF.DIRECT_SPEED_CHANGE in the local device
  - Assert GEN2_CTRL_OFF.DIRECT_SPEED_CHANGE in the local device

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-06-24 10:00:28 +08:00
Richard Zhu 0a91df355e MLK-24171-4 reset: imx7: add perst for imx8mp pcie
Add the PERST for iMX8MP PCIe.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-06-24 10:00:28 +08:00
Richard Zhu 9afaf7a465 MLK-24171-3 phy: pcie: imx8mp: verify the pll sys ref clock source
Verify the PCIe PLL_SYS reference clock source on EVK board.
The external OSC clock is used as PCIe REF clock source in default.
- sequence should be the following one.
phy configuration--> CMN_RSTN--> wait for pll lock
- add the calibrate callback to fit the correct init sequence of phy

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-06-24 10:00:28 +08:00
Richard Zhu eade3750bf MLK-24171-2 dt-binding: phy: update the clock modes of pcie phy
Update the clock modes of iMX8MP PCIe PHY in binding DOC.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-06-24 10:00:28 +08:00
Richard Zhu 1bda33273e MLK-24171-1 arm64: dts: imx8mp: verify the pcie pll sys ref clock
Verify the PCIe PLL_SYS reference clock source on EVK board.
The external OSC clock is used as PCIe REF clock source in default.
NOTE: Change the ext_osc of pcie/pcie_phy to '0' when enable SYS_PLL
clock mode.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
2020-06-24 10:00:28 +08:00
Peng Fan 30f393c50b MLK-24355 arm: dts: imx7ulp-evk: fix remoteproc boot
81fb06cb6b ("remoteproc: Fall back to using parent memory pool if no dedicated available")
breaks i.MX7ULP SD Boot.

i.MX7ULP not use vdevbuffer for communication between Acore and Mcore.
However we still use memory-region for vring. Because we added
"shared-dma-pool" to the resered region, so when vdevbuffer not found,
the memory-region will be used for the virtio data buffer.

So to fix the issue, we could remove "shared-dma-buffer" to avoid
the area to be used to data buffer, then it will still use global
dma area for data buffer.

Tested-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2020-06-23 20:16:44 +08:00
Sandor Yu 9df1ee689d MLK-24335: drm: bridge: cdns: hdmi support work in DVI mode
hdmi support work in DVI mode.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
2020-06-23 15:03:17 +08:00
Joakim Zhang 511ca8224d LF-1573 mxc: sim: Unchecked return value
Coverity report: CID = 10280137

check_return: Calling clk_prepare_enable without checking return value
(as is done elsewhere 8 out of 10 times).

Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
2020-06-23 19:50:41 +08:00
Joakim Zhang af5b1d275e LF-1572 mxc: sim: Unchecked return value
Coverity report: CID = 10280138

check_return: Calling clk_prepare_enable without checking return value
(as is done elsewhere 8 out of 10 times).

Reviewed-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
2020-06-23 19:50:41 +08:00
Fugang Duan c18960b985 MLK-24352-04 arm64: dts: imx8mp-evk: enable bt hsp for nxp 88w8997
Enable nxp 88w8997 bluetooth HSP for imx8mp evk board.

Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-06-22 18:10:16 +08:00
Fugang Duan 5cb04e92df MLK-24352-03 arm64: dts: imx8x-mek: enable bt hsp for nxp 88w8997
Enable nxp 88w8997 bluetooth HSP on imx8qxp/imx8dx mek boards.

Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-06-22 18:10:16 +08:00
Fugang Duan f6421dcab6 MLK-24352-02 arm64: dts: imx8qm-mek: enable bt hsp for nxp 88w8997
Enable nxp 88w8997 bluetooth HSP.

Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-06-22 18:10:16 +08:00
Fugang Duan 2ccb93bf68 MLK-24352-01 arm64: dts: imx8qm-mek: correct the sai1 pins for wm8960
Correct the sai1 pins for wm8960.

Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2020-06-22 18:10:16 +08:00
Anson Huang d315ef76be MLK-24280-8 pinctrl: imx8dxl: Support building as module
Change configuration to "tristate", add module device table,
author, description and license to support building i.MX8DXL
pinctrl driver as module.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-06-22 17:58:56 +08:00
Anson Huang d94e89171b MLK-24280-7 pinctrl: imx8qm: Support building as module
Change configuration to "tristate", add module device table,
author, description and license to support building i.MX8QM
pinctrl driver as module.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-06-22 17:58:56 +08:00
Anson Huang 43fd4dc5cd MLK-24280-6 pinctrl: imx8qxp: Support building as module
Change configuration to "tristate", add module device table,
author, description and license to support building i.MX8QXP
pinctrl driver as module.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-06-22 17:58:56 +08:00
Anson Huang 9617560dd2 MLK-24280-5 pinctrl: imx8mp: Support building as module
Change configuration to "tristate", add module device table,
author, description and license to support building i.MX8MP
pinctrl driver as module.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-06-22 17:58:56 +08:00
Anson Huang 71ddd97476 MLK-24280-4 pinctrl: imx8mq: Support building as module
Change configuration to "tristate", add module device table,
author, description and license to support building i.MX8MQ
pinctrl driver as module.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-06-22 17:58:56 +08:00
Anson Huang 3fa20f1690 MLK-24280-3 pinctrl: imx8mn: Support building as module
Change configuration to "tristate", add module device table,
author, description and license to support building i.MX8MN
pinctrl driver as module.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-06-22 17:58:56 +08:00
Anson Huang 121c6f59ae MLK-24280-2 pinctrl: imx8mm: Support building as module
Change configuration to "tristate", add module device table,
author, description and license to support building i.MX8MM
pinctrl driver as module.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-06-22 17:58:56 +08:00
Anson Huang 637f90fd70 MLK-24280-1 pinctrl: imx: Support platform module build
Export necessary APIs to support i.MX8 SoC pinctrl drivers built
as module.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-06-22 17:58:56 +08:00
Anson Huang 7c8b30a37b MLK-24337-8 clk: imx8qxp: Support module build
Export APIs and add module author, description and license to
support module build.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-06-22 17:58:56 +08:00
Anson Huang 0b1f0a2059 MLK-24337-7 clk: imx8mq: Support module build
Add module author, description and license to support module build.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-06-22 17:58:56 +08:00
Anson Huang 0816b09051 MLK-24337-6 clk: imx8mp: Support module build
Add module author, description and license to support module build.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-06-22 17:58:56 +08:00
Anson Huang 2d64e8e2db MLK-24337-5 clk: imx8mn: Support module build
Add module author, description and license to support module build.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-06-22 17:58:56 +08:00
Anson Huang f4303256b6 MLK-24337-4 clk: imx8mm: Support module build
Add module author, description and license to support module build.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-06-22 17:58:56 +08:00
Anson Huang 0085d19b88 MLK-24337-3 clk: imx: Support i.MX8 SoCs clock driver to be built as module
Export APIs and add module license to support i.MX8 SoCs clock
driver to be built as module.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2020-06-22 17:58:56 +08:00