1
0
Fork 0
alistair23-linux/drivers
Robin Gong d75952f993 LF-857-1: char: imx_amp: imx_sema4: enlarge lock protect
Currently, there is only spin lock added in imx_sema4_mutex_lock(),but
sema4 driver assume any mutex should be handled one by one and complain
when mutex locked once again before unlocked. Hence, if another lock happens
indeed after the last imx_sema4_mutex_lock(),the complains "imx_sema4_
mutex_lock 135 already locked" would come out over again and again as below.
So delay lock released into imx_sema4_mutex_unlock() to elimate such race
contition.

Thread1:                              Thread2:
  ....                               ....
                                     ------------------------------------------
  imx_sema4_mutex_lock ---->grabbed->|imx_sema4_mutex_lock                     |
                                     |"imx_sema4_mutex_lock 135 already locked"|
                                     ------------------------------------------
  imx_sema4_mutex_unlock             imx_sema4_mutex_unlock
  ....                               .....

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
(cherry picked from commit 362fdbb91f1c2e386adc6147c07f714be6134907)
2020-02-26 04:17:45 +08:00
..
accessibility
acpi Power management fix for 5.4-rc6 2019-11-01 09:30:48 -07:00
amba ARM updates for 5.4-rc: 2019-10-23 06:26:33 -04:00
android binder: Handle start==NULL in binder_update_page_range() 2019-12-13 08:43:25 +01:00
ata LF-58: sata: imx8: fix the calibration failure of phy 2019-11-28 09:38:53 +08:00
atm atm: he: clean up an indentation issue 2019-09-25 13:54:45 +02:00
auxdisplay It's a somewhat calmer cycle for docs this time, as the churn of the mass 2019-09-17 16:22:26 -07:00
base MLK-21865 Revert "regmap: use debugfs even when no device" 2019-12-17 17:24:34 +08:00
bcma bcma: make arrays pwr_info_offset and sprom_sizes static const, shrinks object size 2019-09-13 16:44:49 +03:00
block nbd: prevent memory leak 2019-11-29 10:09:47 +01:00
bluetooth Revert "Bluetooth: hci_ll: set operational frequency earlier" 2019-11-29 10:09:43 +01:00
bus bus: fsl-mc: add the dpdbg device type 2019-12-20 15:02:19 +02:00
cdrom
char LF-857-1: char: imx_amp: imx_sema4: enlarge lock protect 2020-02-26 04:17:45 +08:00
clk LF-632 clk: s32v234: Fix "enetpll_dfs3" position in sdhc_sels 2020-02-26 04:17:45 +08:00
clocksource - Fix scary messages in sh_mtu2 by using platform_irq_count() helper 2019-11-04 18:43:23 +01:00
connector
counter
cpufreq MLK-23159-8 cpufreq: cpufreq-dt-platdev: Add i.MX8MP to platdev's blacklist 2019-12-26 10:28:09 +08:00
cpuidle cpuidle: haltpoll: Take 'idle=' override into account 2019-10-22 11:43:17 +02:00
crypto LF-292-2 crypto: caam - add power management 2020-02-21 13:42:22 +02:00
dax
dca
devfreq PM / devfreq: passive: fix compiler warning 2019-08-26 21:37:37 +09:00
dio
dma dmaengine: fsl-edma: Add eDMA support for QorIQ LS1028A platform 2020-02-26 04:17:30 +08:00
dma-buf MA-11994 Add get phys address ioctl to dma-buf. 2019-11-25 15:43:48 +08:00
edac MLK-23333-3 EDAC: synopsys: enable interrupt again for imx8mpevk 2020-02-18 22:18:44 +08:00
eisa
extcon chrome platform changes for v5.4 2019-09-19 14:14:28 -07:00
firewire
firmware MLK-23346-1: DXL Add second USB PHY power domain 2020-02-21 13:58:06 -06:00
fpga Char/Misc driver patches for 5.4-rc1 2019-09-18 11:14:31 -07:00
fsi fsi: scom: Don't abort operations for minor errors 2019-08-28 22:59:18 +02:00
gnss
gpio gpio : mpc8xxx : ls1088a/ls1028a edge detection mode bug fixs. 2019-11-25 15:46:33 +08:00
gpu LF-841: drm/bridge: nwl-dsi: Fix mode_set 2020-02-26 04:17:45 +08:00
greybus staging: greybus: move es2 to drivers/greybus/ 2019-08-27 19:03:08 +02:00
hid HID: core: check whether Usage Page item is after Usage ID items 2019-12-04 22:31:07 +01:00
hsi HSI changes for the 5.4 series 2019-09-22 12:02:21 -07:00
hv Drivers: hv: vmbus: Fix harmless building warnings without CONFIG_PM_SLEEP 2019-10-01 14:49:45 -04:00
hwmon Merge branch 'sensor/next' into next 2019-12-02 18:05:28 +08:00
hwspinlock
hwtracing coresight: etm4x: Fix input validation for sysfs. 2019-12-13 08:42:43 +01:00
i2c LF-162: i2c: imx: Defer probing if EDMA not available 2020-02-26 04:17:30 +08:00
i3c i3c: master: Use dev_to_i3cmaster() 2019-08-27 09:43:59 +02:00
ide ide: remove the sgiioc4 driver 2019-08-16 11:33:56 -07:00
idle x86/intel: Aggregate microserver naming 2019-08-28 11:29:32 +02:00
iio iio: adc: Add imx8qxp adc driver support 2019-11-25 15:44:10 +08:00
infiniband RDMA/qib: Validate ->show()/store() callbacks before calling them 2019-12-13 08:43:16 +01:00
input This is the 5.4.3 stable release 2019-12-16 14:38:10 +08:00
interconnect interconnect: Add locking in icc_set_tag() 2019-10-20 12:14:41 +03:00
iommu iommu/vt-d: Fix panic after kexec -p for kdump 2019-10-30 10:30:22 +01:00
ipack
irqchip MLK-23369 irqchip: gpcv2: Correct the max irq numbers for imx8mp 2020-02-24 09:44:20 +08:00
isdn net: use skb_queue_empty_lockless() in poll() handlers 2019-10-28 13:33:41 -07:00
leds leds: lm3532: Fix optional led-max-microamp prop error handling 2019-09-12 20:45:52 +02:00
lightnvm lightnvm: print error when target is not found 2019-09-05 13:17:01 -06:00
macintosh cpufreq: Use per-policy frequency QoS 2019-10-21 02:05:21 +02:00
mailbox This is the 5.4.3 stable release 2019-12-16 14:38:10 +08:00
mcb
md md/raid0: Fix an error message in raid0_make_request() 2019-12-13 08:43:29 +01:00
media LF-482 media: mipi csi: fix build warning 2019-12-16 17:47:31 +08:00
memory drivers/mtd: Add deep sleep support for IFC 2019-11-25 15:44:05 +08:00
memstick memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()' 2019-10-09 11:08:03 +02:00
message
mfd mfd: Add audiomix support 2020-01-18 22:01:33 +08:00
misc This is the 5.4.3 stable release 2019-12-16 14:38:10 +08:00
mmc LF-605 mmc: sdhci-of-esdhc: update tuning erratum A-008171 2019-12-25 12:52:20 +08:00
mtd LF-668: mtd: nand: raw: gpmi: fixed the issue when determine ecc settings 2020-02-26 04:17:29 +08:00
mux
mxc MLK-23377: arm64: imx8mp: vc8000e: fix system hang in suspend/resume operation 2020-02-26 10:48:34 +08:00
net net: dsa: felix: Don't error out on disabled ports with no phy-mode 2020-02-26 04:17:44 +08:00
nfc nfc: port100: handle command failure cleanly 2019-11-21 11:48:17 -08:00
ntb NTB: fix IDT Kconfig typos/spellos 2019-09-23 17:20:40 -04:00
nubus
nvdimm libnvdimm fixes v5.4-rc1 2019-09-29 10:33:41 -07:00
nvme for-linus-2019-11-08 2019-11-08 18:15:55 -08:00
nvmem MLK-23285-3 nvmem: imx: ocotp: add i.MX8MP support 2020-02-10 10:24:00 +08:00
of Merge branch 'sdhc/next' into next 2019-12-02 18:05:27 +08:00
opp opp: Reinitialize the list_kref before adding the static OPPs again 2019-10-23 10:58:44 +05:30
oprofile
parisc parisc: Remove 32-bit DMA enforcement from sba_iommu 2019-10-14 21:44:26 +02:00
parport Char/Misc driver patches for 5.4-rc1 2019-09-18 11:14:31 -07:00
pci LF-721 drivers: pci: dwc: pci-imx6: remove the unnecessary header file 2020-02-26 04:17:31 +08:00
pcmcia Merge branch 'next-lockdown' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 2019-09-28 08:14:15 -07:00
perf MLK-23372 perf/imx_ddr: correct CLEAR bit definition 2020-02-25 09:58:31 +08:00
phy MLK-23252-6 phy: freescale: Add i.MX8mp LVDS PHY support 2020-02-13 12:11:58 +08:00
pinctrl MLK-23273-2 pinctrl: imx: add imx8dxl driver 2020-02-13 07:51:10 +08:00
platform platform/x86: hp-wmi: Fix ACPI errors caused by passing 0 as input size 2019-12-04 22:31:08 +01:00
pnp
power MLK-14473-2: power: supply: sabresd_battery: check max11801_read_adc() 2019-11-25 16:29:42 +08:00
powercap Power management updates for 5.4-rc1 2019-09-17 19:15:14 -07:00
pps
ps3
ptp LF-183 ptp: depend on !FSL_SDK_FMAN_RTC_API for ptp_qoriq 2020-02-26 04:17:41 +08:00
pwm LF-637 pwm: imx27: Eliminate error message for defer probe 2019-12-30 11:09:06 +08:00
rapidio
ras RAS: Build debugfs.o only when enabled in Kconfig 2019-08-08 17:44:02 +02:00
regulator MLK-11550-1: regulator: pfuze100: restore some registers after LPSR for pfuze3000 2019-12-24 19:13:48 +08:00
remoteproc remoteproc updates for v5.4 2019-09-22 10:55:08 -07:00
reset MLK-23356: reset: Remove noc reset bit from hdmimix reset 2020-02-24 14:59:10 +08:00
rpmsg LF-44 rpmsg: imx: add the rpmsg tty demo 2019-11-25 15:46:03 +08:00
rtc rtc: imx-rpmsg: Add i.MX RPMSG RTC support 2019-11-25 15:45:10 +08:00
s390 s390/qeth: return proper errno on IO error 2019-11-20 12:29:47 -08:00
sbus
scsi MLK-11444 ata: imx: cmd buf corruption errata bug fix 2019-11-25 15:45:46 +08:00
sfi
sh
siox
slimbus slimbus: fix slim_tid_txn() 2019-08-18 12:56:10 +02:00
soc MLK-23273-3 soc: imx: add imx8dxl soc id 2020-02-13 07:51:20 +08:00
soundwire soundwire: slave: fix scanf format 2019-10-24 16:55:45 +05:30
spi LF-18-3 spi: fsl-qspi: Allocate AHB memory dynamically for imx platforms 2020-02-26 04:17:32 +08:00
spmi
ssb ssb: make array pwr_info_offset static const, makes object smaller 2019-09-13 17:23:18 +03:00
staging fsl_qbman: Framework for enabling Link status notification 2020-02-26 04:17:44 +08:00
target SCSI fixes on 20191101 2019-11-02 11:15:52 -07:00
tc
tee tee: optee: fix device enumeration error handling 2020-02-03 20:43:31 +01:00
thermal MLK-23183-01 thermal: imx8mm: Update the driver for multiple sensor support 2020-01-21 17:01:08 +08:00
thunderbolt thunderbolt: Power cycle the router if NVM authentication fails 2019-12-04 22:30:50 +01:00
tty tty: serial: imx: setup the correct sg entry for tx dma 2020-02-13 15:55:47 +08:00
uio Char/Misc driver patches for 5.4-rc1 2019-09-18 11:14:31 -07:00
usb MLK-23367 usb: dwc3: drd: enter device role by default 2020-02-23 17:24:14 +08:00
vfio vfio/fsl-mc: Map the VFIO region according to the flags received from mc firmware 2019-11-26 11:42:23 +02:00
vhost vringh: fix copy direction of vringh_iov_push_kern() 2019-10-28 04:25:04 -04:00
video LF-603-2 video: fbdev: imx: mipi_dsi_samsung: remove mipi phy supply 2019-12-26 18:25:03 +08:00
virt jailhouse: Add simple debug console via the hypervisor 2019-11-25 15:43:39 +08:00
virtio virtio_balloon: fix shrinker count 2019-11-20 02:15:57 -05:00
visorbus
vlynq
vme
w1 w1: ds250x: Fix build error without CRC16 2019-10-10 15:35:41 +02:00
watchdog watchdog: aspeed: Fix clock behaviour for ast2600 2019-12-13 08:43:30 +01:00
xen Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-10-19 17:09:11 -04:00
zorro
Kconfig mxc: IPU3: Forward IPUv3 common driver from imx_4.19.y kernel 2019-11-25 15:48:14 +08:00
Makefile mxc: IPU3: Forward IPUv3 common driver from imx_4.19.y kernel 2019-11-25 15:48:14 +08:00