1
0
Fork 0
Commit Graph

721283 Commits (2273e2dcd97ba79dce4b7881579c3f44fbfebd52)

Author SHA1 Message Date
Li Jun 2273e2dcd9 MLK-20220 staging: typec: tcpci: fix improper use of negative value
Coverity complains CID 3411292: Improper use of negative valure
(NEGATIVE_RETURNS), as possibly assign a negative value to unsigned
int, fix it by use an int temp value for negative value return.

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
(cherry picked from commit 9ab72e25fcda73a455a434993c8186663c241f27)
2018-11-23 19:48:45 +08:00
Stephan Mueller 76715b9c79 MLK-19826: crypto: ecdh - fix typo of P-192 b value
Fix the b value to be compliant with FIPS 186-4 D.1.2.1. This fix is
required to make sure the SP800-56A public key test passes for P-192.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit aef66587f1)
(cherry picked from commit b179af3efe0c48c2cec4e4add7f3c4b8129d7a07)
2018-11-23 12:14:46 +01:00
Franck LENORMAND fbcd6a0f3a MLK-20314: drivers: crypto: caam: alg: Enable GCM for newer LP CAAM
The iMX6 platform does not support fardware GCM, more
recent iMX does so we enable it.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
(cherry picked from commit 2a4e35399f37caff111d420866a9d4beb494e2e9)
2018-11-23 12:14:36 +01:00
Franck LENORMAND c99b127252 MLK-19801: Add support of tagged keys in caamalg
A tagged key is a key which has been tagged with metadata
using tag_object.h API.

We add the support for these keys to caamalg.

For each algo of caamalg which supports tagged keys , it is done by:
 - Creating a modified version of the algo
 - Registering the modified version
 - When the modified transform is used, it gets
   the load parameter of the key.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
(cherry picked from commit 88dee97d985890dbf37cafa7934c476d0ecfd0b3)
2018-11-23 12:14:19 +01:00
Franck LENORMAND 39647f295a MLK-19801: Add tag functionality
Add functions to tag an object with metadata(configuration).

It is possible to:
 - create metadata:
	- init_tag_object_header
	- init_blackey_conf
	- set_tag_object_conf
 - retrieve metadata:
	- get_tag_object_conf
	- get_blackey_conf

The API expects an object to be a space a memory
with an address and a size.

The implementation of the tag is currently exposed
but users shouldn't access it directly, they should
use the functions provided.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
(cherry picked from commit ebbb132da8e7f9de7f3d375eff8d87f684feb1eb)
2018-11-23 12:14:02 +01:00
Cosmin-Gabriel Samoila 556c040708 MLKU-24-10 sound: asoc: change License comment to SPDX format
Change source and header License comment to SPDX format.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
(cherry picked from commit 6d17e38a8d8cd3eab3015988a6f24cf64ec0d1df)
2018-11-23 10:18:58 +02:00
Cosmin-Gabriel Samoila 57706103cc MLKU-24-9 sound: soc: fix unused warning
When CONFIG_PM is not defined, the runtime suspend and resume
are unused so we should use __maybe_unused attribute.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
(cherry picked from commit b2285d1937872b5023074644d0a8f7c9a2e3158a)
2018-11-23 10:18:42 +02:00
Cosmin-Gabriel Samoila 9e2cd26c61 MLKU-24-8 sound:asoc: change soc_enum array to single enums
It is error prone to use soc_enum array for controls because introducing
new controls must always be done at the end of array or it will add
offset to existing controls.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
(cherry picked from commit 409e235cb0e3fbf48251375e040d7f37b2734be2)
2018-11-23 10:18:28 +02:00
Viorel Suman e1be71bc77 MLK-20328-9: ARM64: dtsi: imx8qm-device: adjust the expected format
Default value must be prefixed by "0".

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit e1f214bd631bda58ab7850866447a53e4a479ac8)
2018-11-23 10:03:07 +02:00
Viorel Suman 2e1e8f2dd4 MLK-20328-8: ARM64: dtsi: mx8mq: adjust the expected format
Default value must be prefixed by "0".

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit 1a8e10215cc07c83b0e26b55fef94aae18151633)
2018-11-23 10:03:07 +02:00
Viorel Suman 43b6e97b66 MLK-20328-7: ARM64: dts: mx8mq-evk: adjust format, add 2 pins masks
a) Default value must be prefixed by "0".
b) Map 2 pins case to rx=0xff tx=0x11.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit cb4d69f098ee003edc2dcfec7075b043a78345e6)
2018-11-23 10:03:07 +02:00
Viorel Suman c667eeda42 MLK-20328-6: ARM64: dts: mx8mq-evk: ak4497: adjust the expected format
Default value must be prefixed by "0".

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit a38075f068fd07dda55cb5bb5d74450ba29d6483)
2018-11-23 10:03:07 +02:00
Viorel Suman 749b10a9e1 MLK-20328-5: ARM64: dtsi: mx8mm: adjust the expected format
Default value must be prefixed by "0".

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit b81a9884f85f750673a4ee0da60096d330add7a5)
2018-11-23 10:03:07 +02:00
Viorel Suman 3caa36e053 MLK-20328-4: ARM64: dts: mx8mm-evk: adjust format, add 2 pins masks
a) Default value must be prefixed by "0".
b) Map 2 pins case to rx=0xff tx=0x11.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit bb1d5eac8b6ba4371ec04f362071c06cd3f5066b)
2018-11-23 10:03:07 +02:00
Viorel Suman 3d1c95dc27 MLK-20328-3: ARM64: dts: mx8mm-evk: ak4497: adjust the expected format
Default value must be prefixed by "0".

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit 5252bd4b838eaa849fafdfa42a9e322a012a1e98)
2018-11-23 10:03:07 +02:00
Viorel Suman 61056cf0ca MLK-20328-2: ARM: dts: imx7ulp: adjust the expected format
Default value must be prefixed by "0".

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit 4ce702331a6c7b5a84fe4fdc210b62147e04fa84)
2018-11-23 10:03:07 +02:00
Viorel Suman 5d5cba3a28 MLK-20328-1: ASoC: fsl_sai: map number of pins to dataline masks
The patch enable mapping the number of pins required to play or record
a specific number of channels to a specific dataline mask.

Three consequent elements in "fsl,dataline" and "fsl,dataline,dsd" defines a
particular mapping, for instance for: fsl,dataline = "0 0xff 0xff 2 0x11 0x11"
there are two mappings defined:

default (0 pins) "rx" and "tx" dataline masks: 0 0xff 0xff
         2 pins  "rx" and "tx" dataline masks: 2 0x11 0x11

In case if property is missing, then default value "0 0x1 0x1" is considered.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
(cherry picked from commit 707fdf7759c0e11abf84573eb60bba104d681736)
2018-11-23 10:03:07 +02:00
Shengjiu Wang 78014408cd MLK-20428-2: ASoC: imx-cs42xx8: The FMT should be same for tx and rx
If the FMT of tx and rx is different, there will be issue. for example
tx is working at TDM mode, but rx want to work at I2S mode, this case
is not supported in current ALSA driver, the best way to support this
is to distinguish substream in set_fmt function.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 897e9e8b4e7a59d81048d05f9377b8c68fc7cd64)
2018-11-23 15:34:21 +08:00
Shengjiu Wang 323d176850 MLK-20428-1: ASoC: cs42xx8: add constraint for tdm mode
TDM mode can only work with codec slave mode, and the mclk
frequency should be 256FS.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 769121ead6ef8919b7f6869defe594be978d82cd)
2018-11-23 15:34:20 +08:00
Shengjiu Wang 3879fa6b05 MLK-20434: ASoC: fsl_rpmsg_i2s: add more rates in constraint list
add more rates in constraint list, Fixes commit ee959e2c9b
("MLK-19581-3: ASoC: fsl_rpmsg_i2s: support multipul rate and DSD format")

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit bcc6185a392b46d2b5af315894b06e6ebaff8046)
2018-11-23 15:34:20 +08:00
ming_qian 52b97a354a MLK-20419:VPU Encoder:improve the display of instance info
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-23 14:29:52 +08:00
ming_qian 0c54e97eea MLK-20379:VPU Encoder:periodically check whether the instance is hang
1. reset firmware if core is hang the next time you open it.
2. add mb() before rpc_update_cmd_buffer_ptr_encoder

Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-23 14:29:45 +08:00
Richard Zhu 7697c3f6f0 MLK-20446 rpmsg: imx: only use the timeout by the first notify
To make sure that the message wound't be discarded when
M4 is running normally or in the suspend mode. Only use
the timeout mechanism by the first notify when the vdev
is registered.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
(cherry picked from commit aaf42a6c2c224aa9bd88b13abcf8f848f2eab073)
2018-11-23 11:06:01 +08:00
Mirela Rabulea ffd9d24d63 MLK-20289: mxc-jpeg: Add module parameter for debug purpose
Add debug function print_nbuf_to_eoi, to print the decoder input frame.
Add module parameter mxc_jpeg_tracing.

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com, Robert Chiras <robert.chiras@nxp.com>
2018-11-22 16:30:03 +02:00
Mirela Rabulea 889c3289fa MLK-20289: mxc-jpeg: Fix jpeg-dec for use with gst-launch-1.0 & v4l2video5jpegdec
Set allow_zero_bytesused, to let gst-launch work, this lead to the need
to implement V4L2_DEC_CMD_STOP, dummy for now.

Implement g_fmt_vid_cap, called by gst-launch before queuing any capture
buffers, this also required some fixes in jpeg_parse and buf_queue,
which wrongly assumed capture buffers are enqueued before output buffers.
So, import the resolution and pixel-format from the output queue,
if the capture queue is not set-up yet.

Add release_active_buffers and use it in stop_streaming to properly
clean-up active buffers, this fixes warning at gst-launch stop with Ctrl+C

Check for decoding/encoding error in interrupt handler and print CAST IP
error status, found some yuv422 images with errors in SOS marker.

Partially implemented subscribe_event, V4L2_EVENT_EOS is not working yet,
will be addressed in a subsequent fix.

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@nxp.com, Robert Chiras <robert.chiras@nxp.com>
2018-11-22 16:29:51 +02:00
Robert Chiras 47427ff4ce MA-12957: arm64: dts: imx8qm/qxp mek: Configure interrupts for adv7535
Configure the interrupt for ADV7535 so that it can generate interrupts
events for HDP when the HDMI cable is plugged in or out.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
2018-11-22 10:35:06 +02:00
Haibo Chen 3b0bcb4df5 MLK-20443 ARM64: dts: fsl-imx8mm-evk-revb: add touch support
Add synaptics_dsx touch support for imx8mm evk revb board.

Acked-by: Andy Duan <fugang.duan@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit 1cf1aaa3f47308f3c7eb09cd8589e3657e5d7cff)
2018-11-22 15:11:33 +08:00
Haibo Chen 5a8fdd5d16 MLK-20207-3 input: synaptics_dsx_i2c: fix coverity resource leak issue.
CID 3869707: Resource leak (RESOURCE_LEAK)
13. leaked_storage: Variable fhandler going out of scope leaks
the storage it points to

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit ddf57217892e9fefc4f04a09988f4b0ed3bf0f07)
2018-11-22 14:35:42 +08:00
Haibo Chen fd6faa8221 MLK-20207-2: input: synaptics_dsx_i2c: fix coverity Unsigned compared against 0 issue.
CID 3869705: Unsigned compared against 0 (NO_EFFECT)
unsigned_compare: This greater-than-or-equal-to-zero comparison of an
unsigned value is always true. attr_count >= 0.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit 7380600ba0d0763b6081c07f5ddcb018a54314ca)
2018-11-22 14:35:42 +08:00
Haibo Chen e8b0fe7d95 MLK-20207-1: input: synaptics_dsx_i2c: fix coverity wrong sizeof argument issue
CID 3869704: Wrong sizeof argument (SIZEOF_MISMATCH)
suspicious_sizeof: Passing argument f1a->button_control.txrx_map of
type unsigned char * and argument 8 /* sizeof (f1a->button_control.txrx_map) */
to function synaptics_rmi4_i2c_read is suspicious.

Passing argument should be sizeof(unsigned char) rather than
sizeof(unsigned char *).

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit 4583a0bc1ff6684e1d850eb50308ad8ae2fea627)
2018-11-22 14:35:42 +08:00
Ivan.liu 6f27d64b1f MA-13467 [#imx-1237] Fix kernel panic when running deqp module.
Unable to handle kernel paging request at virtual address 1000100
[<ffff000008274ed8>] prefetch_freepointer.isra.37+0x8/0x14
[<ffff0000087bd3b0>] sync_file_create+0x28/0xc0
[<ffff000008b7c7e4>] gckOS_CreateNativeFence+0x74/0x110
[<ffff000008b89a78>] gckKERNEL_Dispatch+0xa54/0x15b0
[<ffff000008b8a8b8>] gckDEVICE_Dispatch+0x2e4/0x2f8
[<ffff000008b81160>] drv_ioctl+0x110/0x21c
[<ffff0000082b4478>] do_vfs_ioctl+0xb8/0x8b0
[<ffff0000082b4cf4>] SyS_ioctl+0x84/0x98

The reference count should be increased in one spin lock cycle.
Move spin lock out of _QueryIntegerId function.
Move signal reference count to gckOS_CreateNativeFence.

Change-Id: I1bf89b4de6055e5d0009baf7287f600696c4a529
Signed-off-by: Ivan.liu <xiaowen.liu@nxp.com>
2018-11-22 11:11:32 +08:00
Bai Ping cf3ac97055 MLK-20306 gpio: mxc: Skip GPIO_IMR restore in noirq resume
During the time window of noirq suspend and noirq resume, if a GPIO
pin is enabled as system wakeup source, the corresponding GPIO line's
IRQ will be unmasked, and GPIO bank will NOT lost power, when GPIO irq
arrives, generic irq handler will mask it until GPIO driver is ready
to handle it, but in GPIO noirq resume callback, current
implementation will restore the IMR register using the value saved in
previous noirq suspend callback which is unmasked, so this GPIO line
with IRQ pending will be unmasked again after GPIO IMR regitster is
restored, ARM will be triggered to handle this IRQ again, because of
the change of commit bf22ff45be ("genirq: Avoid unnecessary low
level irq function calls"), the mask_irq function will check the
status of irq_data to decide whether to mask the irq, in this
scenario, since the GPIO IRQ is being masked before GPIO noirq resume,
IRQD_IRQ_MASKED flag is set, so the second time GPIO IRQ triggered by
restoring GPIO IMR register, the irq_mask callback will be skipped and
cause ARM busy handling the GPIO IRQ come all the way and no response to
user anymore.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit c03d9ec1f861ff7cd04637ef01aa7e14388277b6)
2018-11-20 17:56:38 +08:00
Shengjiu Wang 3a30144862 MLK-20417-2: ARM64: dts: disable intmux in imx8qm m4 dts
disable intmux in m4 dts for it is component in m4 domain

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 252831d4b0699c9ee609613a7c00ab8f77bfbeb9)
2018-11-20 16:39:54 +08:00
Shengjiu Wang 5441cb25be MLK-20417-1: ARM64: dts: disable intmux in m4 dts
disable intmux in m4 dts for it is component in m4 domain

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
(cherry picked from commit 2742df294bac6e1ccc1ed7e899c0b5c85a51ccbf)
2018-11-20 16:39:54 +08:00
Peter Chen f61f2b7294 MLK-20346 usb: chipidea: change power_lost workqueue as freezable
Like commit d144dfea8a ("usb: chipidea: otg: change workqueue
ci_otg as freezable"), the power_lost work item may try to remove
hcd if controller is powered off during the system suspend, and
the similar deadlock happens, see below dumps.

Meanwhile, with this change, we need to disable USB interrupt
during the work item runs (after driver resume has finished),
otherwise, USB transfer will be timeout (5s) due to USB interrupt
is disabled and IAA watchdog is still not ready at that time.

Workqueue: events ci_power_lost_work
Call trace:
[<ffff000008085c44>] __switch_to+0x8c/0xd0
[<ffff000008d7bbf4>] __schedule+0x19c/0x5d8
[<ffff000008d7c068>] schedule+0x38/0xa0
[<ffff000008d7f3b4>] schedule_timeout+0x19c/0x338
[<ffff000008d7cc10>] wait_for_common+0xa0/0x148
[<ffff000008d7cccc>] wait_for_completion+0x14/0x20
[<ffff0000080e6040>] flush_work+0xd8/0x1f0
[<ffff0000080e61f4>] flush_delayed_work+0x3c/0x48
[<ffff0000081ae1c8>] wb_shutdown+0x90/0xd0
[<ffff0000081ae688>] bdi_unregister+0x58/0x1c0
[<ffff000008413a60>] del_gendisk+0x218/0x228
[<ffff00000871683c>] sd_remove+0x64/0xc0
[<ffff0000086b6eec>] device_release_driver_internal+0x154/0x1f0
[<ffff0000086b6f9c>] device_release_driver+0x14/0x20
[<ffff0000086b5d40>] bus_remove_device+0xc8/0x108
[<ffff0000086b2a08>] device_del+0x1f8/0x300
[<ffff0000087049ec>] __scsi_remove_device+0xec/0x128
[<ffff000008702c70>] scsi_forget_host+0x70/0x78
[<ffff0000086f7ee8>] scsi_remove_host+0xa0/0x140
[<ffff0000088e0588>] usb_stor_disconnect+0x50/0xc0
[<ffff00000887eab8>] usb_unbind_interface+0x78/0x280
[<ffff0000086b6eec>] device_release_driver_internal+0x154/0x1f0
[<ffff0000086b6f9c>] device_release_driver+0x14/0x20
[<ffff0000086b5d40>] bus_remove_device+0xc8/0x108
[<ffff0000086b2a08>] device_del+0x1f8/0x300
[<ffff00000887c364>] usb_disable_device+0xa4/0x210
[<ffff000008872cfc>] usb_disconnect+0x7c/0x240
[<ffff000008872e40>] usb_disconnect+0x1c0/0x240
[<ffff000008878e10>] usb_remove_hcd+0xc0/0x1d8
[<ffff0000088e7bac>] host_stop+0x34/0x90
[<ffff0000088e4088>] ci_handle_id_switch+0x70/0x1d0
[<ffff0000088e3038>] ci_power_lost_work+0x90/0xa8
[<ffff0000080e7100>] process_one_work+0x1e0/0x340
[<ffff0000080e72b0>] worker_thread+0x50/0x458
[<ffff0000080ed32c>] kthread+0xfc/0x128
[<ffff000008084eb8>] ret_from_fork+0x10/0x18

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
(cherry picked from commit d217dacbe793641497b38f48d063a6332242e8a9)
2018-11-20 15:13:06 +08:00
Peter Chen cebcf94b7a MLK-20343 usb: chipidea: udc: using structure ci_hdrc device for runtime PM
At current code, it doesn't maintain ci->gadget.dev's runtime PM
status well. Eg, after system resume, call pm_runtime_put_sync for
ci->dev will cause ci->dev's runtime suspend is called if its
power.usage is 0 even the power.usage is 1 for its child ci->gadget.dev.
at that time. It causes the oops this ticket describes that visiting
clock without AHB clock.

To fix this issue, we use ci_hdrc device instead of ci->gadget.dev
for runtime PM APIs at udc driver, in the way, we handle runtime
PM APIs for single device structure.

Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
(cherry picked from commit d436b3a0a81b073b195d0ad29e7a4f39a1a532f3)
2018-11-20 15:13:06 +08:00
Anson Huang 4a8f5b8908 MLK-20140 ARM64: dts: freescale: imx8mm-ddr4-evk: correct LED GPIO pin
On i.MX8MM DDR4 EVK board, the GPIO pin to control LED is
NAND_CE3_B, correct it to make LED work properly and avoid
below failure message during kernel boot up:

[ 3.274994] leds-gpio leds: Error applying setting, reverse things back
[ 3.275015] leds-gpio: probe of leds failed with error -22

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
2018-11-20 13:36:31 +08:00
Sandor Yu dfd24b052e MLK-20415: drm: imx: hdp: Adjust HDMI Vswing
The iMX8QM HDMI voltage swing needs to be increased for HDMI compliance.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
(cherry picked from commit 5ba997eef35fc74653c29bb99dbe4d97292dc6e4)
2018-11-20 10:50:36 +08:00
Guoniu.Zhou cf14199795 MLK-20404: sensor: fix potential memory leaks for ov5640
Driver does not free memory when it's removed or encounter
an error in probe. So fix potential memory leaks.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit c236a94088903088f8ac32b12764b6d63ada43ea)
2018-11-19 18:29:14 +08:00
Guoniu.Zhou 38f43d9e50 MLK-20403: max9286: add hardware reset for max9286
Add hardware reset for max9286 before initialization

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit dfc5061564b7d13d875f46bb883fe2e88a91e475)
2018-11-19 18:29:05 +08:00
Sandor Yu d3d7fcb328 MLK-20391: v4l2: hdmi rx: Add hdmi cable plugin status check
Added hdmi cable plugin status check in v4l2 api function.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
(cherry picked from commit 88613061e5f9bbe4ac45ac1064003275aec31abb)
2018-11-19 16:21:45 +08:00
Xianzhong 01c6a1b062 MGS-4363 [#imx-1246] fix coverity resource leak issue
CID 3925877: Resource leak (RESOURCE_LEAK)
14. leaked_storage: Variable pages going out of scope leaks the storage it points to.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
(cherry picked from commit a38d1b1ff31ce87a231588de1a2e24a787f87143)
2018-11-19 22:04:00 +08:00
Peng Fan bef231b948 MLK-20384 soc: imx: drop xenvm soc data
Drop xenvm soc data, we have userspace tool stack generate correct model
compatile and this soc data will also trigger issue on i.MX8QXP.

So drop it.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
(cherry picked from commit 9be6db046ac435f2caab7ab3561ea1a66144cdda)
2018-11-16 18:58:15 +08:00
Peng Fan cc98fe35bb MLK-20392 ARM64: dts: imx8qxp: fix dom0 boot
Rename fsl-imx8qxp-mek.dts to fsl-imx8qxp-mek.dtsi.
remove /dts-v1/ from dtsi.
Add memreserve for dom0 dts.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
(cherry picked from commit 491045dead2f3294cb5ca78a6e667af00495ae48)
2018-11-16 18:57:15 +08:00
ming_qian 3e04d2cfcc MLK-20334:VPU Encoder:implement crop and scaling
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-16 15:12:11 +08:00
Huang Chaofan 18580d12be MLK-20350 VPU: Reduce RPC size and remove decoder_str in dts
Reduce RPC size and remove decoder_str in dts for vpu decoder

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-11-16 10:23:54 +08:00
Huang Chaofan 60709c8ae9 MLK-20323: Enable 8 instaces for vpu decoder
1. #define VPU_MAX_NUM_STREAMS 8
   #define VID_API_NUM_STREAMS 8
2. #define MAX_BUFFER_SIZE 0xc00000

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-11-16 10:23:54 +08:00
Huang Chaofan 4b9a6c4601 MLK-20321 VPU: Adjust reset strategy for vpu decoder
Adjust reset strategy for vpu decoder

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-11-16 10:23:53 +08:00
Huang Chaofan c1e7697f08 MLK-20244 VPU: Config mem_printf base and size through structure DebugBufferDesc for vpu decoder
Config mem_printf base and size through structure DebugBufferDesc for
vpu decoder for debug on M0 core

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-11-16 10:23:53 +08:00
Laurentiu Palcu 228eebe7be MLK-20216-6: video/fbdev/mxc_dcic: fix return value
This fixes Coverity issue where an unsigned variable is tested for
less-than-zero value.

Make val a signed integer instead.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
CC: Sandor Yu <sandor.yu@nxp.com>
2018-11-15 15:21:51 +02:00