1
0
Fork 0
Commit Graph

721338 Commits (3612d5be22cdbef9b04782e7344c4da252eb31a2)

Author SHA1 Message Date
Liu Ying 3ec344d6fa MLK-20324 gpu: imx: dpu: tcon: Initialize tmp_m in tcon_cfg_videomode()
The video mode tmp_m, as a local variable in tcon_cfg_videomode(),
is uninitialized and used to store a copy instance from the real
video mode.  tcon_cfg_videomode() would change the timing of it if
side_by_side mode is enabled.  Theoretically, there should be no
problem even if we don't initialize tmp_m.  However, coverity
reports that tmp_m is an uninitialized scalar variable when the copy
is being done(CID 5233067: Uninitialized scalar variable (UNINIT)).
This patch fixes the issue reported by coverity.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-11-12 17:42:35 +08:00
Liu Ying 95bc1eb150 MLK-20318 gpu: imx: dpu: scaler: Avoid out-of-bounds array read on src_sels[i][j]
The logic in function h/vscaler_pixengcfg_dynamic_src_sel() to avoid
overrunning array src_sel[i][j] is wrong.  The correct one is to check
on the index i which should be less than the array size of h/vs_id_array[].
This patch fixes the potential array overrunning issue, that is,
out-of-bounds array read issue.  The issue is reported by coverity -
CID 1477349 and CID 1477345.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-11-12 17:42:35 +08:00
Xianzhong 6d8398135f MGS-4376: gpu: dts: increase reserved size to 256M for imx8
alloc_contig_range easily return -EBUSY when try to isolate pages,
there are lots of messages with PFNs busy when run GPU tests.
[  622.370671] alloc_contig_range: [4ea70, 4ea7c) PFNs busy
[  626.518072] alloc_contig_range: [4ea90, 4ea9c) PFNs busy

these problems are related wht CMA migration for fragments,
need enlarge GPU reserved size to reduce CMA fragments.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2018-11-13 01:51:43 +08:00
ming_qian 8b88898f4d MLK-20303:VPU Encoder:re download firmware after resume in some case
if suspend before configure codec,
the firmware should be re downloaded after resume

Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 17:07:36 +08:00
Flynn xu 8063964e4f MLK-20319 i2c:xen-i2cfront: fix uninitalized variable
Fix uninitalized variable

Signed-off-by: Flynn xu <flynn.xu@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2018-11-12 14:26:43 +08:00
Liu Ying d95b6b9740 MLK-20316 gpu: imx: dpu: Avoid out-of-bound array access in dpu_{unit}_init()
The callers of dpu_{unit}_init() might provide an invalid id as
the parameter, it may cause overrunning dpu->{unit}_priv[] and
cf_shdlreqs[] arrays and out-of-bound array access.  Although
the current only caller is dpu_submodules_init() and it always
provides valid ids, it would be good to fix the potential issue.
This patch fixes several issues reported by coverity - CID 1477330,
CID 1477335, CID 1477348, CID 1477346, CID 3298619, CID 1477347,
CID 5233021 and CID 1477321.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-11-12 10:48:39 +08:00
Liu Ying 92899d70e5 MLK-20307 gpu: imx: dpu: extdst: Fix get_xval()
The function get_xval() returns the C_XVAL and L_XVAL fields of
the CURPIXELCNT and LASTPIXELCNT registers.  They are 16bit and
sit in the low 16bit of the registers.  This patch fixes the way
we mask the register and read the fields out.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-11-12 09:55:19 +08:00
ming_qian 846e41c2e7 MLK-20275:VPU Encoder:set proper rpc size
boot-region: 2M per core
rpc-buf-size: 512K per core
print-buf-size: 512K per core

Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 09:34:40 +08:00
ming_qian 47e078c3eb MLK-20303:VPU Encoder:avoid configure codec after snapshot
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 09:22:44 +08:00
ming_qian e9c1de03a4 MLK-20291:VPU Encoder:drop frame whose size is 0
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 09:22:36 +08:00
ming_qian d89e81d6e0 MLK-20271:VPU Encoder:reduce the event msg data copy
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 09:22:17 +08:00
ming_qian 6962ec6cc5 MLK-20174-2:VPU Encoder:remove PRINT_BUF_OFFSET
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 09:21:49 +08:00
ming_qian b4105a4a93 MLK-20232:VPU Encoder:firmware report the max stream number
Signed-off-by: ming_qian <ming.qian@nxp.com>
2018-11-12 09:21:31 +08:00
Daniel Baluta 167a6d79f4 MLK-20189-6: ASoC: fsl: Skip checking for string section type
e_shstrndx already contains the section header index, so
shdr->sh_type will always be SHT_STRTAB.

Remove this redundant check and make Coverity happy.

Fixes: CID3901026
Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-09 13:08:30 +02:00
Leonard Crestez 12bfac0d49 MLK-20309 ARM64: dts: Remove fsl-imx8mm-evk-inmate.dtb from makefile
The dts file was removed but makefile was not updated so build broke.
Fix by removing from makefile.

Fixes: a9c2aa010d ("MLK-20252 ARM64: dts: correct imx8mm root memory")

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-09 13:04:05 +02:00
Liu Ying 9f7f845c12 MLK-20301 gpu: imx: dpu: layerblend: Remove several invalid registers & wrappers
The layerblend units don't contain the CONTROLWORD, CURPIXELCNT,
LASTPIXELCNT and PERFCOUNTER registers, so let's remove them
and their wrappers(no one is calling them), which were introduced
accidentally.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-11-09 17:14:32 +08:00
Daniel Baluta 2f83d82c72 MLK-20189-5: ASoC: fsl: dsp_proxy: Unlock proxy->lock on error path
xf_cmd_send_recv returns with lock taken if waiting was
interrupted by a signal.

This fixes Coverity issues: CID5233120 / CID5233060

Reviewed-by: S.j. Wang <shengjiu.wang@nxp.com>
Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-09 10:16:33 +02:00
Daniel Baluta 56efef908f MLK-20189-4: ASoC: fsl: library_load: Check return value for kernel_read
Bail out if kernel_read returns an error.

Fixes: CID1477415

Reviewed-by: S.j. Wang <shengjiu.wang@nxp.com>
Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-09 10:16:33 +02:00
Daniel Baluta 984f676b90 MLK-20189-3: ASoC: fsl: library_load: Remove dead code
At this point err is always 0. So, just remove the check.

Fixes: CID1477380

Reviewed-by: S.j. Wang <shengjiu.wang@nxp.com>
Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-09 10:16:33 +02:00
Daniel Baluta 3f25235525 MLK-20189-2: ASoC: dsp: Replace atomic_dec_return with atomic_dec
Return value is not used so better use atomic_dec.
This also silences coverity warning CID3344689.

Reviewed-by: S.j. Wang <shengjiu.wang@nxp.com>
Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-09 10:16:33 +02:00
Daniel Baluta 8464574897 MLK-20189-1: ASoC: fsl: dsp: Unlock proxy->lock on error path
xf_cmd_recv will return with lock taken in two cases:
	* msg was received
	* waiting for msg was interrupted by a signal

Make sure we unlock proxy->lock in both cases.

This fixes Coverity issue: CID3335482.

Reviewed-by: S.j. Wang <shengjiu.wang@nxp.com>
Reviewed-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
2018-11-09 10:16:33 +02:00
Shengjiu Wang 532a86fb06 MLK-20247: ASoC: imx-rpmsg: fix error when m4 image is not loaded
The reason is same as commit d4eb8ab263 ("MLK-19854-1: ASoC:
imx-cs42888: fix error when m4 image is not loaded")

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-11-09 15:33:15 +08:00
Peng Fan 486074baf2 MLK-20302-2 ARM64: dts: imx8qm: add rfkill for domu car
Add rfkill node for domu car for bluetooth usage.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
2018-11-09 15:18:04 +08:00
Peng Fan 022e1590f3 MLK-20302-1 ARM64: dts: imx8qm: add pl031 node
Add rtc pl031 and a dummy clock node.

The pl031 is emulated by XEN, the address and interrupt is fixed in XEN.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
2018-11-09 15:17:44 +08:00
Peng Fan a9c2aa010d MLK-20252 ARM64: dts: correct imx8mm root memory
Correct the memory for root linux.
Because rpmsg reserved memory, we could not support 2nd Linux now with
the new memory. So remove the support for 2nd linux.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Flynn xu <flynn.xu@nxp.com>
2018-11-09 15:17:18 +08:00
Shengjiu Wang f68bcda355 MLK-20277-4: ARM64: fsl-imx8mm-evk-m4: enable sai3 with wm8524
change sai3 and wm8524 to be in linux domain

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-11-09 14:03:12 +08:00
Shengjiu Wang eef266eed8 MLK-20277-3: ASoC: imx-pcm-rpmsg: change the state of substream in resume
In LPA mode, the system will be resumed by audio notification, when the
period size is small, there will be occasion that when notification
the underrun is happen, but the substream runtime state is not running
so the aplay won't trigger stop first, then start. just only trigger
the start, which don't comply with the convention.
So in this patch, we change the substream runtime state to running, when
the notification happened at resume.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-11-09 14:03:12 +08:00
Shengjiu Wang 2d8a7e5990 MLK-20277-2: ASoC: rpmsg_ak4497: remove digital_mute function
For the LPA mode, when the system enter suspend, the M4 will
continue to play the data, but for normal ALSA case, the digital
mute should be called at suspend, so the codec will be mute,
which conflict with the requirement of LPA.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-11-09 14:03:12 +08:00
Shengjiu Wang 8036a8b198 MLK-20277-1: ASoC: imx-pcm-rpmsg: reset the period index at stop
With the case that underrun happened, the aplay will trigger
stop and start, if the period index is not reset at stop, the
counter of period will be wrong

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-11-09 14:03:11 +08:00
Liu Ying ab7892a388 MLK-20287 drm/imx: ldb: Check retval of sc_misc_set_control in ldb_pixel_link_init
The return value of sc_misc_set_control() should be checked in
ldb_pixel_link_init(), instead of being ignored.  This patch
fixes this issue.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-11-09 09:46:58 +08:00
Huang Chaofan 9acb305ce8 MLK-20292 VPU: Record stream buffer length and enable DYNAMIC_MEM
Record stream buffer length and enable DYNAMIC_MEM for decoder

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-11-09 09:34:13 +08:00
Huang Chaofan dd7f6685aa MLK-20274 VPU: Change request for copyright in vpu header
Remove several lines in the file VPU_regdef.h to avoid license conflict

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-11-09 09:34:13 +08:00
Huang Chaofan 44966e11d6 MLK-20273 VPU: Fill abort padding data in driver
Move EOS filling from firmware side to driver side

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-11-09 09:34:13 +08:00
Huang Chaofan 39ca83c24e MLK-20260 VPU: Refine kfifo action in vpu decoder to remove redundant
data copy

Refine kfifo action in vpu decoder to remove redundant data copy

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-11-09 09:34:13 +08:00
Dzung Hoang cd7d34cd77 MLK-20263: drm/imx/dcss: fix channel-0 line shift
If an RGB buffer is fed to channel-0, the output will have one line
shifted down, with the last line appearing on top.

Using the 7-tap filter will fix the issue. The 5-tap filter code will be
removed completely.

Signed-off-by: Dzung Hoang <dzung.hoang@nxp.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
2018-11-08 15:12:28 +02:00
Laurentiu Palcu 1e3fcb39a6 MLK-20242: drm/imx/dcss: fix brightness for REC.709
The brightness, when REC709 was used in the configuration of the pipes,
was lower than expected.

The reason was the HDR10 configuration application that was used to
create the tables had a parameter that was wrongly set.

The tables were re-generated with the proper setting.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
2018-11-08 15:12:28 +02:00
Robert Chiras ce22c18198 MLK-20181-10: Improve the axi clock usage
Currently, the enable of the axi clock return status is ignored, causing
issues when the enable fails then we try to disable it. Therefore, it is
better to check the return status and disable it only when enable
succeeded.
Also, remove the helper functions around clk_axi, since we can directly
use the clk API function for enable/disable the clock. Those functions
are already checking for NULL clk and returning 0 if that's the case.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>i
Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
2018-11-08 15:07:07 +02:00
Robert Chiras 07a423d3be MLK-20181-9: arch64: dts: fsl-imx8dx: Add axi clk to adma_lcdif
Currently, the adma_lcdif clocks are wrong. Correct these clocks.
Fix suggestion received from:
Ranjani Vaidyanathan <ranjani.vaidyanathan@nxp.com>

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
2018-11-08 15:07:07 +02:00
Robert Chiras c8e6ebf1c6 MLK-20181-8: drm/mxsfb: Cleanup after upstream backport
Patches related to suspend/resume have been backported from upstream
kernel, therefore some of the mxsfb_drm_private members are no longer
needed, so remove them, among with the code around them.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
2018-11-08 15:07:06 +02:00
Leonard Crestez 57aca8a76b MLK-20181-7: drm/mxsfb: Switch to drm_atomic_helper_commit_tail_rpm
The lcdif block is only powered on when display is active so plane
updates when not enabled are not valid. Writing to an unpowered IP block
is mostly ignored but can trigger bus errors on some chips.

Prevent this situation by switching to drm_atomic_helper_commit_tail_rpm
and having the drm core ensure atomic_plane_update is only called while
the crtc is active. This avoids having to keep track of "enabled" bits
inside the mxsfb driver.

This also requires handling the vblank event for disable from
mxsfb_pipe_disable.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Suggested-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/c19c0c00ed42e8e8f7965aa4821ac295abc5cd05.1537191359.git.leonard.crestez@nxp.com
2018-11-08 15:07:06 +02:00
Leonard Crestez 5f5c92ee0a MLK-20181-6: drm/mxsfb: Add PM_SLEEP support
Since power to the lcdif block can be lost on suspend implement
PM_SLEEP_OPS using drm_mode_config_helper_suspend/resume to save/restore
the current mode.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/cfa1a4083eefd112362e640deeb2e120584ac3f5.1537191359.git.leonard.crestez@nxp.com
2018-11-08 15:07:05 +02:00
Noralf Trønnes fba83191e7 MLK-20181-5: drm/modeset-helper: Add simple modeset suspend/resume helpers
Add drm_mode_config_helper_suspend/resume() which takes care of
atomic modeset suspend/resume for simple use cases.
The suspend state is stored in struct drm_mode_config.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171106191812.38927-3-noralf@tronnes.org
2018-11-08 15:07:05 +02:00
Noralf Trønnes b1c4df7077 MLK-20181-4: drm: Add drm_device->fb_helper pointer
drm_fb_helper is *the* way of doing fbdev emulation so add a pointer to
struct drm_device. This makes it possible to add callback helpers for
.last_close and .output_poll_changed further reducing fbdev emulation
footprint in drivers. The pointer is set by drm_fb_helper_init() and
cleared by drm_fb_helper_fini().

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171030153951.56269-3-noralf@tronnes.org
2018-11-08 15:07:04 +02:00
Leonard Crestez 37526cc27b MLK-20181-3: drm/mxsfb: Add pm_runtime calls to pipe_enable/disable
Adding lcdif nodes to a power domain currently results in
black/corrupted screens or hangs because power is not correctly enabled
when required.

Ensure power is on when display is active by adding
pm_runtime_get/put_sync to mxsfb_pipe_enable/disable.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/ee88148399c63494cda4129b05444b0ac331b7a7.1537191359.git.leonard.crestez@nxp.com
2018-11-08 15:07:03 +02:00
Leonard Crestez f83ab92705 MLK-20181-2: drm/mxsfb: Fix initial corrupt frame when activating display
LCDIF will repeatedly display data from CUR_BUF and set CUR_BUF to
NEXT_BUF when done. Since we are only ever writing to NEXT_BUF the
display will show an initial corrupt frame.

Fix by writing the FB paddr to both CUR_BUF and NEXT_BUF when
activating the CRTC.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Tested-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/7cdac9c064cc2b8a3d237934f186da98cefe6cb3.1537191359.git.leonard.crestez@nxp.com
2018-11-08 15:07:03 +02:00
Leonard Crestez 62bf2343a0 MLK-20181-1: drm/mxsfb: Move axi clk enable/disable to crtc enable/disable
The main axi clk is disabled at the end of mxsfb_crtc_mode_set_nofb and
immediately reenabled in mxsfb_enable_controller.

Avoid this by moving the handling of axi clk one level up to
mxsfb_crtc_enable. Do the same for mxsfb_crtc_disable for symmetry.

This shouldn't have any functional effect.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Stefan Agner <stefan@agner.ch>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Stefan Agner <stefan@agner.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/985c1f1cad250bd9ca154b3e4b3f913c310eeabd.1537191359.git.leonard.crestez@nxp.com
2018-11-08 15:07:02 +02:00
Cosmin-Gabriel Samoila 904ab2a6d4 MLK-20253 sound: asoc: remove verbose messages from micfil
Enable and disable procedures contain info and warn prints. This
introduces delay in initialization / disablement procedures and we have
kept only the necessary prints in case of error.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-11-08 13:26:56 +02:00
Sandor Yu 2d2bd93fad MLK-20272: hdp: Correct copyright
Cadence allow customer release these source code as followed copyright.

 * Copyright (C) 2016-2017 Cadence Design Systems, Inc.
 * All rights reserved worldwide.
 *
 * Redistribution and use in source and binary forms, with or without modification,
 * are permitted provided that the following conditions are met:
 *
 * 1. Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation and/or
 * other materials provided with the distribution.
 *
 * 3. Neither the name of the copyright holder nor the names of its contributors
 * may be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
2018-11-08 13:54:41 +08:00
Haibo Chen e86788880c MLK-20249 ARM64: dts: fsl-imx8mq-evk.dts: change the i2c bus pad to slow slew rate
i2c2 and i2c3 are work at 100KHz, so no need to set the pad to fast
slew rate, slow slew rate is enough.

This patch can also fix the synaptics_dsx touch work unstable issue.
When config the i2c bus pad to fast slew rate, synaptics_dsx touch
sometimes can't be recognized through i2c bus. Seems this touch
i2c slave device sensitive to the pad slew rate setting.

Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
2018-11-08 10:19:02 +08:00
Robin Gong 9e06f5c227 MLK-20205-3: regulator: core: fix modulo by zero
Fix 'Division or modulo by zero' coverity issue(CID-4159438).
In fact, no need to call set_ramp_delay() in case of ramp_disable
is true, hence, ramp_delay never be 0 while set_ramp_delay() called.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2018-11-08 18:11:09 +08:00