Commit Graph

862781 Commits

Author SHA1 Message Date
Bart Van Assche
b437678187 scsi: ide: Do not set the RQF_PREEMPT flag for sense requests
[ Upstream commit 96d86e6a80 ]

RQF_PREEMPT is used for two different purposes in the legacy IDE code:

 1. To mark power management requests.

 2. To mark requests that should preempt another request. An (old)
    explanation of that feature is as follows: "The IDE driver in the Linux
    kernel normally uses a series of busywait delays during its
    initialization. When the driver executes these busywaits, the kernel
    does nothing for the duration of the wait. The time spent in these
    waits could be used for other initialization activities, if they could
    be run concurrently with these waits.

    More specifically, busywait-style delays such as udelay() in module
    init functions inhibit kernel preemption because the Big Kernel Lock is
    held, while yielding APIs such as schedule_timeout() allow
    preemption. This is true because the kernel handles the BKL specially
    and releases and reacquires it across reschedules allowed by the
    current thread.

    This IDE-preempt specification requires that the driver eliminate these
    busywaits and replace them with a mechanism that allows other work to
    proceed while the IDE driver is initializing."

Since I haven't found an implementation of (2), do not set the PREEMPT flag
for sense requests. This patch causes sense requests to be postponed while
a drive is suspended instead of being submitted to ide_queue_rq().

If it would ever be necessary to restore the IDE PREEMPT functionality,
that can be done by introducing a new flag in struct ide_request.

Link: https://lore.kernel.org/r/20201209052951.16136-4-bvanassche@acm.org
Cc: David S. Miller <davem@davemloft.net>
Cc: Alan Stern <stern@rowland.harvard.edu>
Cc: Can Guo <cang@codeaurora.org>
Cc: Stanley Chu <stanley.chu@mediatek.com>
Cc: Ming Lei <ming.lei@redhat.com>
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-01-12 20:10:16 +01:00
Adrian Hunter
b9bd0559ee scsi: ufs-pci: Ensure UFS device is in PowerDown mode for suspend-to-disk ->poweroff()
[ Upstream commit af423534d2 ]

The expectation for suspend-to-disk is that devices will be powered-off, so
the UFS device should be put in PowerDown mode. If spm_lvl is not 5, then
that will not happen. Change the pm callbacks to force spm_lvl 5 for
suspend-to-disk poweroff.

Link: https://lore.kernel.org/r/20201207083120.26732-3-adrian.hunter@intel.com
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-01-12 20:10:16 +01:00
Bean Huo
f7889f64b8 scsi: ufs: Fix wrong print message in dev_err()
[ Upstream commit 1fa0570002 ]

Change dev_err() print message from "dme-reset" to "dme_enable" in function
ufshcd_dme_enable().

Link: https://lore.kernel.org/r/20201207190137.6858-3-huobean@gmail.com
Acked-by: Alim Akhtar <alim.akhtar@samsung.com>
Acked-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-01-12 20:10:16 +01:00
Yunfeng Ye
2e3e4b337f workqueue: Kick a worker based on the actual activation of delayed works
[ Upstream commit 01341fbd0d ]

In realtime scenario, We do not want to have interference on the
isolated cpu cores. but when invoking alloc_workqueue() for percpu wq
on the housekeeping cpu, it kick a kworker on the isolated cpu.

  alloc_workqueue
    pwq_adjust_max_active
      wake_up_worker

The comment in pwq_adjust_max_active() said:
  "Need to kick a worker after thawed or an unbound wq's
   max_active is bumped"

So it is unnecessary to kick a kworker for percpu's wq when invoking
alloc_workqueue(). this patch only kick a worker based on the actual
activation of delayed works.

Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
Reviewed-by: Lai Jiangshan <jiangshanlai@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-01-12 20:10:16 +01:00
Dominique Martinet
ccf4f2933d kbuild: don't hardcode depmod path
commit 436e980e2e upstream.

depmod is not guaranteed to be in /sbin, just let make look for
it in the path like all the other invoked programs

Signed-off-by: Dominique Martinet <asmadeus@codewreck.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-12 20:10:16 +01:00
Wu Liangqing
0c07360f25 arm64: dts: rockchip: rk3566-evb3: enabled sata1
Change-Id: Ic6c63a1fdcea6b13917c9bb29b9f1eccb611acf9
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2021-01-12 19:07:15 +08:00
Cai YiWei
23bbd27fb4 media: rockchip: isp/ispp add vb2_rdma_sg_memops to support contiguous page
Change-Id: Ic33bfe6fe5d6e095fc1943fd2933376c42360f17
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-01-12 19:02:10 +08:00
Cai YiWei
c5068a72e0 Revert "media: videobuf2-dma-sg: support contiguous page by dma attrs"
This reverts commit 46e7d9882b.

Change-Id: I8b7511cd20ae6a0b5cf853e1e07888ea55932bac
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-01-12 19:02:10 +08:00
Ding Wei
3972dc1b35 video: rockchip: mpp: optimize power for video codec
if have no task then put the power domain.

Change-Id: Ib03484b3f1254feeb32f826f840817efc29b4dd9
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2021-01-12 17:02:22 +08:00
Wu Liangqing
cafbb426eb arm64: dts: rockchip: rk3566-evb3: uart1 add pinctrl
Change-Id: If3953b43b96db258a0c62d19a1d37d79108cd9eb
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2021-01-12 14:35:17 +08:00
Zorro Liu
ea05a14df8 drivers: eink pmic: tps65185: add power en pin control
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I1e4aaf46baf65408094b9bda17bb2d0a6b6b8836
2021-01-12 10:55:26 +08:00
Wu Liangqing
2c5b90231b Revert "Revert "Revert "arm64: dts: rockchip: Temporarily disable its for rk3568"""
This reverts commit b14e969b5e.

Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: Ie16159d8b8e4eeac9bc39df23baf15d69126af57
2021-01-12 10:54:19 +08:00
XiaoDong Huang
7c679639eb irqchip/gic-v3-its: flush base table if rk3568 or rk3566
Change-Id: Ia2b0dd3d47742c43939eb99d3f8adac8e1107603
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2021-01-12 10:17:04 +08:00
XiaoDong Huang
330a359767 irqchip/gic-v3-its: set flag "ITS_FLAGS_SAVE_SUSPEND_STATE" if rk3568 or rk3566
Change-Id: I5ed122b6480f2fef1ed21bbe0b3ef0ae7c84d3b4
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2021-01-12 10:09:14 +08:00
Nick Desaulniers
0856e25f44 ANDROID: enable LLVM_IAS=1 for clang's integrated assembler for aarch64
Step 8 of:
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/+/master/BINUTILS_KERNEL_DEPRECATION.md

x86_64 is blocked on AOSP LLVM not yet containing:
Link: 3c2a56a857

32b arm is blocked on quite a few different issues:
Link: https://lore.kernel.org/linux-arm-kernel/CAKwvOdndZRv+_FaNFUBtT=zEPG3mh2cb9vfRFCsU5Dus4zzcEw@mail.gmail.com/

Bug: 141693040
Bug: 169938486
Bug: 171348143
Bug: 172699078
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I2d8ca9c8218a2ad96505daa9f029ed5a3bdb3661
2021-01-11 17:34:43 -08:00
Nick Desaulniers
8e482856b5 Revert "ANDROID: arm64: lse: fix LSE atomics with LTO"
This reverts commit 3bd6dd6a79.

Fixed upstream by
commit e0d5896bd3 ("arm64: lse: fix LSE atomics with LLVM's integrated assembler")
which landed in v4.19.164.

Bug: 117299373
Bug: 133186739
Bug: 141693040
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Change-Id: I1495c03a1512a7f9c3da9d5e4517619c2291dba8
2021-01-11 17:34:43 -08:00
Weixin Zhou
ef0b86754e driver: input: touchscreen: gt9xx: add ebc suspend notify support
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I8ee3be2aec10416d9f742de3e000a915750c23d3
2021-01-12 09:23:54 +08:00
Tao Huang
4f08cb9303 drm/rockchip/ebc-dev: Add stubs for ebc notify
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I20a397789b591afec36f93b83cb0e64599e4995e
2021-01-12 09:10:38 +08:00
Sandy Huang
14b88ae99c drm/rockchip: vop2: rename vp->nr_wins to vp->nr_layers
vp->nr_layers is more correct than vp->wins

Change-Id: I75c7d7c11cdeee243e6a15539f1c1efbb0cf85a5
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-01-12 09:05:53 +08:00
Palmer Dabbelt
1817b1966d ANDROID: uapi: Add dm-user structure definition
dm-user is a device mapper target that allows a userspace process to
handle each incoming BIO.  Communication with userspace consists of a
stream of messages proxied over a misc device, the structure of each
message is defined in this header.

Test: none
Bug: 161496058
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Change-Id: I97ca538fbd7e73e467416590190d85894db42e7d
2021-01-12 01:05:05 +00:00
Palmer Dabbelt
1caf05ce90 ANDROID: dm: dm-user: New target that proxies BIOs to userspace
dm-user is essentially FUSE for block devices: as BIOs come in through
device mapper they are proxied to a userspace daemon via a control misc
device.

This is very much a work in progress.  There's a handful of FIXMEs
spread throughout the code with more details.  As far as I know there is
nothing broken with the current code, there's just more work to do.

Test: Ran the selftests on the version of this I'm developing for Linus'
      tree, on both 4.19 and 5.8.
Bug: 161496058
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Change-Id: If5bcd8a43c3db5b556563ba303f474dd0d2902e8
2021-01-12 01:04:58 +00:00
YouMin Chen
0956f41b35 arm64: dts: rockchip: enable dmc for rk356x board
Change-Id: I483b79784619285b254fa92489e94e325e4e713f
Signed-off-by: YouMin Chen <cym@rock-chips.com>
2021-01-11 20:15:37 +08:00
Weixin Zhou
f405fda4c6 arm64: dts: rockchip: add RK3566 eink w6 board
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Ia0c5f86577e9372f824246f55427670d39cd4d20
2021-01-11 19:33:38 +08:00
Steven Liu
ec23468023 arm64: dts: rockchip: Fix UART pull-ups on rk3399
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I0682ef0afce02947cfefef2e5cd2357692402e8c
2021-01-11 19:06:27 +08:00
Steven Liu
0c77f7cc9f arm64: dts: rockchip: Fix UART pull-ups on rk3368
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I34c7e3afbe225d251fbf27ba57a16b009e6325d7
2021-01-11 19:06:27 +08:00
Steven Liu
f1634ea667 arm64: dts: rockchip: Fix UART pull-ups on rk3328
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: Ia3acf3223d294e5b53732f626a79e59be01cbe23
2021-01-11 19:06:27 +08:00
Huang zhibao
f08dc78f90 ARM: configs: rv1126_defconfig: add CONFIG_ROCKCHIP_CLK_COMPENSATION
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Change-Id: Idc12cd30b5e41d47acc4f16e835ca0447ce3924d
2021-01-11 18:45:12 +08:00
William Wu
5559c66e9c usb: dwc3: gadget: disable lpm for rockchip platform
The rockchip DWC3 controllers are LPM capable, but we find
that UVC function compatibility issue on some Windows PCs
if enable LPM capable. And refer to the Logitech USB Cameras,
they're usually disable LPM capable. Considering that the
benefit form LPM capable is insignificant on Rochip platforms,
so we disable the LPM capable by default.

Change-Id: Ibdfb1131b0ecf5f6381f9eb1fc6bea7e7ecb8022
Signed-off-by: William Wu <william.wu@rock-chips.com>
2021-01-11 18:00:36 +08:00
Shawn Lin
460e7bc63d PCI: rockchip: dw: reconfigure parameters for standard RC
Some parameters would bs lost during gating vdd_logic power
supply and lead to unstable link training sequence observed
from the debug process. Especially we need to separate rc's
resuming process from that of endpoint by a flag.

Change-Id: I221762866c4b9f07c207dfa0a6ef9ac65b2ab6da
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2021-01-11 17:44:39 +08:00
Zorro Liu
62b07bb1b2 arm64: dts: rockchip: modify tp direction for rk3566 eink boards
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I3172c04a02f9c55578aee3c315ffc76839bcb04f
2021-01-11 14:15:32 +08:00
Wu Liangqing
94f8085d41 arm64: dts: rockchip: rk3566-evb3: enabled mipi camera
Change-Id: Id83479c81849c25cb2467e6d72df98add3082305
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2021-01-11 11:20:08 +08:00
Huang zhibao
2562116b1f ARM: dts: add rv1126-evb-ddr3-v13-uvc.dts
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Change-Id: I4e4edcd91194bfdab64589453380976ccae1dafa
2021-01-11 10:48:29 +08:00
Hu Kejun
0f8ee5f7c3 media: rockchip: isp/ispp to version v1.4.1
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ida51065ebc94ead3fe490a8a48f771e6a941cd36
2021-01-11 10:02:38 +08:00
Hu Kejun
0cb7561455 media: rockchip: isp/ispp: support motion detection mode
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I76b3349d4a05f07154c2879bc35c3440778e0914
2021-01-11 10:02:27 +08:00
Wyon Bi
fd258c7ba6 arm64: dts: rockchip: rk3566-evb3-ddr3-v10: Add edp2vga bridge support
Change-Id: I8283622639e8be1b9567b7133ec4b614ffc9a85f
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-01-11 09:48:41 +08:00
Yan Yan
d547cb391b ANDROID: GKI: Enable XFRM_MIGRATE
To be able to update addresses of an IPsec SA, as required by
supporting MOBIKE

Bug: 169169084
Signed-off-by: Yan Yan <evitayan@google.com>
Change-Id: I5aa3f3556d615e4f0695bb78cd3cad9e83851df5
2021-01-10 17:49:45 +00:00
Greg Kroah-Hartman
f0eb67744b Merge 4.19.166 into android-4.19-stable
Changes in 4.19.166
	Revert "mtd: spinand: Fix OOB read"
	dmaengine: at_hdmac: Substitute kzalloc with kmalloc
	dmaengine: at_hdmac: add missing put_device() call in at_dma_xlate()
	dmaengine: at_hdmac: add missing kfree() call in at_dma_xlate()
	kdev_t: always inline major/minor helper functions
	iio:imu:bmi160: Fix alignment and data leak issues
	iio:magnetometer:mag3110: Fix alignment and data leak issues.
	mwifiex: Fix possible buffer overflows in mwifiex_cmd_802_11_ad_hoc_start
	Linux 4.19.166

Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ib7d0ce70832eb58e4aed2b7b6f29082184f64299
2021-01-09 16:46:11 +01:00
Greg Kroah-Hartman
610bdbf6a1 Linux 4.19.166
Tested-by: Pavel Machek (CIP) <pavel@denx.de>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Shuah Khan <skhan@linuxfoundation.org>
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20210107143047.586006010@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-09 13:43:48 +01:00
Zhang Xiaohui
b35029a1f2 mwifiex: Fix possible buffer overflows in mwifiex_cmd_802_11_ad_hoc_start
[ Upstream commit 5c455c5ab3 ]

mwifiex_cmd_802_11_ad_hoc_start() calls memcpy() without checking
the destination size may trigger a buffer overflower,
which a local user could use to cause denial of service
or the execution of arbitrary code.
Fix it by putting the length check before calling memcpy().

Signed-off-by: Zhang Xiaohui <ruc_zhangxiaohui@163.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201206084801.26479-1-ruc_zhangxiaohui@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-01-09 13:43:48 +01:00
Jonathan Cameron
f817a9938e iio:magnetometer:mag3110: Fix alignment and data leak issues.
commit 89deb13342 upstream

One of a class of bugs pointed out by Lars in a recent review.
iio_push_to_buffers_with_timestamp() assumes the buffer used is aligned
to the size of the timestamp (8 bytes).  This is not guaranteed in
this driver which uses an array of smaller elements on the stack.
As Lars also noted this anti pattern can involve a leak of data to
userspace and that indeed can happen here.  We close both issues by
moving to a suitable structure in the iio_priv() data.
This data is allocated with kzalloc() so no data can leak apart from
previous readings.

The explicit alignment of ts is not necessary in this case but
does make the code slightly less fragile so I have included it.

Fixes: 39631b5f95 ("iio: Add Freescale mag3110 magnetometer driver")
Reported-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Cc: <Stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200920112742.170751-4-jic23@kernel.org
[sudip: adjust context]
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-09 13:43:48 +01:00
Jonathan Cameron
74729e663d iio:imu:bmi160: Fix alignment and data leak issues
commit 7b6b51234d upstream

One of a class of bugs pointed out by Lars in a recent review.
iio_push_to_buffers_with_timestamp assumes the buffer used is aligned
to the size of the timestamp (8 bytes).  This is not guaranteed in
this driver which uses an array of smaller elements on the stack.
As Lars also noted this anti pattern can involve a leak of data to
userspace and that indeed can happen here.  We close both issues by
moving to a suitable array in the iio_priv() data with alignment
explicitly requested.  This data is allocated with kzalloc() so no
data can leak apart from previous readings.

In this driver, depending on which channels are enabled, the timestamp
can be in a number of locations.  Hence we cannot use a structure
to specify the data layout without it being misleading.

Fixes: 77c4ad2d6a ("iio: imu: Add initial support for Bosch BMI160")
Reported-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Cc: Daniel Baluta  <daniel.baluta@gmail.com>
Cc: Daniel Baluta <daniel.baluta@oss.nxp.com>
Cc: <Stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200920112742.170751-6-jic23@kernel.org
[sudip: adjust context and use bmi160_data in old location]
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-09 13:43:48 +01:00
Josh Poimboeuf
f8eaa05252 kdev_t: always inline major/minor helper functions
commit aa8c7db494 upstream.

Silly GCC doesn't always inline these trivial functions.

Fixes the following warning:

  arch/x86/kernel/sys_ia32.o: warning: objtool: cp_stat64()+0xd8: call to new_encode_dev() with UACCESS enabled

Link: https://lkml.kernel.org/r/984353b44a4484d86ba9f73884b7306232e25e30.1608737428.git.jpoimboe@redhat.com
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>	[build-tested]
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-09 13:43:48 +01:00
Yu Kuai
7d543d23fe dmaengine: at_hdmac: add missing kfree() call in at_dma_xlate()
commit e097eb7473 upstream.

If memory allocation for 'atslave' succeed, at_dma_xlate() doesn't have a
corresponding kfree() in exception handling. Thus add kfree() for this
function implementation.

Fixes: bbe89c8e3d ("at_hdmac: move to generic DMA binding")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20200817115728.1706719-4-yukuai3@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-09 13:43:47 +01:00
Yu Kuai
7dbe15aba7 dmaengine: at_hdmac: add missing put_device() call in at_dma_xlate()
commit 3832b78b3e upstream.

If of_find_device_by_node() succeed, at_dma_xlate() doesn't have a
corresponding put_device(). Thus add put_device() to fix the exception
handling for this function implementation.

Fixes: bbe89c8e3d ("at_hdmac: move to generic DMA binding")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20200817115728.1706719-3-yukuai3@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-09 13:43:47 +01:00
Tudor Ambarus
463ce51ac0 dmaengine: at_hdmac: Substitute kzalloc with kmalloc
commit a6e7f19c91 upstream.

All members of the structure are initialized below in the function,
there is no need to use kzalloc.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Link: https://lore.kernel.org/r/20200123140237.125799-1-tudor.ambarus@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-09 13:43:47 +01:00
Felix Fietkau
e138a9e4d4 Revert "mtd: spinand: Fix OOB read"
This reverts stable commit baad618d07.

This commit is adding lines to spinand_write_to_cache_op, wheras the upstream
commit 868cbe2a6d that this was supposed to
backport was touching spinand_read_from_cache_op.
It causes a crash on writing OOB data by attempting to write to read-only
kernel memory.

Cc: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-09 13:43:47 +01:00
Finley Xiao
e2fc934b98 arm64: dts: rockchip: Add cooling devices for rk3568
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I08cd7b2462bbb28c7cee79d72682f314d8ce716b
2021-01-08 17:59:35 +08:00
Finley Xiao
6fc2a5c028 MALI: bifrost: Add rockchip simple-power-model support
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I721c0f247c81b63a1590c9001ad481837f15f15e
2021-01-08 17:59:35 +08:00
Sandy Huang
b080e565a9 drm/rockchip: vop2: set correct system status for dual display
Change-Id: I8402994faf2cd38d0a8559b2ca6e6c200ad6cbe4
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-01-08 17:56:10 +08:00
Finley Xiao
5db6a5c009 soc: rockchip: ipa: Make static coefficient more accurate when leakage is 0
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ic9326b41a818b16645ba8466952376f2acd5da55
2021-01-08 17:53:28 +08:00