linux-stable/drivers
Chuhong Yuan 982d424239 net: fec: fix clock count mis-match
commit a31eda65ba upstream.

pm_runtime_put_autosuspend in probe will call runtime suspend to
disable clks automatically if CONFIG_PM is defined. (If CONFIG_PM
is not defined, its implementation will be empty, then runtime
suspend will not be called.)

Therefore, we can call pm_runtime_get_sync to runtime resume it
first to enable clks, which matches the runtime suspend. (Only when
CONFIG_PM is defined, otherwise pm_runtime_get_sync will also be
empty, then runtime resume will not be called.)

Then it is fine to disable clks without causing clock count mis-match.

Fixes: c43eab3edd ("net: fec: add missed clk_disable_unprepare in remove")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-05 15:38:36 +01:00
..
accessibility
acpi ACPI / APEI: Switch estatus pool to use vmalloc memory 2019-12-05 15:38:03 +01:00
amba
android binder: fix possible UAF when freeing buffer 2019-08-04 09:32:01 +02:00
ata ata: ep93xx: Use proper enums for directions 2019-11-24 08:23:06 +01:00
atm atm: zatm: Fix empty body Clang warnings 2019-12-01 09:13:43 +01:00
auxdisplay auxdisplay: panel: need to delete scan_timer when misc_register fails in panel_attach 2019-09-06 10:20:43 +02:00
base drivers/base/platform.c: kmemleak ignore a known leak 2019-12-05 15:37:53 +01:00
bcma
block drbd: fix print_st_err()'s prototype to match the definition 2019-12-05 15:37:45 +01:00
bluetooth Bluetooth: hci_bcm: Handle specific unknown packets after firmware loading 2019-12-05 15:37:37 +01:00
bus
cdrom cdrom: don't attempt to fiddle with cdo->capability 2019-12-01 09:13:21 +01:00
char hwrng: stm32 - fix unbalanced pm_runtime_enable 2019-12-05 15:38:30 +01:00
clk clk: at91: generated: set audio_pll_allowed in at91_clk_register_generated() 2019-12-05 15:38:07 +01:00
clocksource clocksource/drivers/fttmr010: Fix invalid interrupt register access 2019-12-05 15:37:34 +01:00
connector
cpufreq cpufreq: Add NULL checks to show() and store() methods of cpufreq 2019-12-01 09:14:25 +01:00
cpuidle
crypto crypto: stm32/hash - Fix hmac issue more than 256 bytes 2019-12-05 15:38:29 +01:00
dax
dca
devfreq PM / devfreq: tegra: Fix kHz to Hz conversion 2019-10-11 18:18:30 +02:00
dio
dma dmaengine: rcar-dmac: set scatter/gather max segment size 2019-11-24 08:23:17 +01:00
dma-buf dma-buf/sw_sync: Synchronize signal vs syncpt free 2019-10-07 18:55:07 +02:00
edac EDAC, thunderx: Fix memory leak in thunderx_l2c_threaded_isr() 2019-12-01 09:13:19 +01:00
eisa
extcon extcon: cht-wc: Return from default case to avoid warnings 2019-11-20 17:59:40 +01:00
firewire
firmware gsmi: Fix bug in append_to_eventlog sysfs handler 2019-12-01 09:13:23 +01:00
fmc
fpga fpga: altera-ps-spi: Fix getting of optional confd gpio 2019-09-21 07:15:32 +02:00
fsi
gpio gpio: max77620: Fixup debounce delays 2019-12-01 09:13:12 +01:00
gpu gpu: ipu-v3: pre: don't trigger update if buffer address doesn't change 2019-12-05 15:37:56 +01:00
hid HID: core: check whether Usage Page item is after Usage ID items 2019-12-05 15:38:29 +01:00
hsi
hv Drivers: hv: vmbus: Fix synic per-cpu context initialization 2019-11-20 17:59:56 +01:00
hwmon hwmon: (ina3221) Fix INA3221_CONFIG_MODE macros 2019-11-24 08:23:31 +01:00
hwspinlock
hwtracing coresight: tmc: Fix byte-address alignment for RRP 2019-11-20 18:00:38 +01:00
i2c i2c: uniphier-f: fix timeout error after reading 8 bytes 2019-12-01 09:14:14 +01:00
ide
idle
iio iio: dac: mcp4922: fix error handling in mcp4922_write_raw 2019-11-20 17:59:35 +01:00
infiniband IB/rxe: Make counters thread safe 2019-12-05 15:37:46 +01:00
input parisc: Fix HP SDC hpa address output 2019-12-05 15:37:11 +01:00
iommu iommu/amd: Fix NULL dereference bug in match_hid_uid 2019-12-05 15:38:00 +01:00
ipack
irqchip irqchip/irq-mvebu-icu: Fix wrong private data retrieval 2019-11-24 08:22:56 +01:00
isdn mISDN: Fix type of switch control variable in ctrl_teimanager 2019-12-01 09:13:44 +01:00
leds leds: leds-lp5562 allow firmware files up to the maximum length 2019-10-05 12:47:45 +02:00
lightnvm
macintosh macintosh/windfarm_smu_sat: Fix debug output 2019-12-01 09:13:39 +01:00
mailbox mailbox: mailbox-test: fix null pointer if no mmio 2019-12-05 15:38:31 +01:00
mcb
md dm flakey: Properly corrupt multi-page bios. 2019-12-05 15:37:32 +01:00
media media: stm32-dcmi: fix DMA corruption when stopping streaming 2019-12-05 15:38:30 +01:00
memory
memstick memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()' 2019-10-29 09:17:43 +01:00
message
mfd mfd: max8997: Enale irq-wakeup unconditionally 2019-12-01 09:13:46 +01:00
misc mei: bus: prefix device names on bus with the bus name 2019-12-05 15:38:10 +01:00
mmc mmc: meson-gx: make sure the descriptor is stopped on errors 2019-12-05 15:37:24 +01:00
mtd mtd: spi-nor: cast to u64 to avoid uint overflows 2019-12-05 15:38:22 +01:00
mux
net net: fec: fix clock count mis-match 2019-12-05 15:38:36 +01:00
nfc nfc: port100: handle command failure cleanly 2019-12-01 09:14:23 +01:00
ntb ntb: intel: fix return value for ndev_vec_mask() 2019-12-01 09:13:59 +01:00
nubus
nvdimm libnvdimm/pfn: fix fsdax-mode namespace info-block zero-fields 2019-07-31 07:28:41 +02:00
nvme nvmet-fcloop: suppress a compiler warning 2019-12-01 09:13:31 +01:00
nvmem nvmem: core: return error code instead of NULL from nvmem_device_get 2019-11-20 17:59:56 +01:00
of of: unittest: allow base devicetree to have symbol metadata 2019-12-01 09:14:12 +01:00
oprofile
parisc parisc: Disable HP HSC-PCI Cards to prevent kernel crash 2019-10-05 12:48:05 +02:00
parport
pci PCI/MSI: Return -ENOSPC from pci_alloc_irq_vectors_affinity() 2019-12-05 15:37:55 +01:00
pcmcia
perf drivers/perf: arm_pmu: Fix failure path in PM notifier 2019-08-06 19:05:27 +02:00
phy phy: lantiq: Fix compile warning 2019-11-20 18:00:41 +01:00
pinctrl pinctrl: stm32: fix memory leak issue 2019-12-05 15:38:32 +01:00
platform platform/x86: hp-wmi: Fix ACPI errors caused by passing 0 as input size 2019-12-05 15:38:35 +01:00
pnp
power PM / AVS: SmartReflex: NULL check before some freeing functions is not needed 2019-12-05 15:37:14 +01:00
powercap
pps drivers/pps/pps.c: clear offset flags in PPS_SETPARAMS ioctl 2019-08-04 09:32:03 +02:00
ps3
ptp
pwm pwm: Clear chip_data in pwm_put() 2019-12-05 15:38:12 +01:00
rapidio drivers/rapidio/devices/rio_mport_cdev.c: NUL terminate some strings 2019-08-06 19:05:24 +02:00
ras
regulator regulator: tps65910: fix a missing check of return value 2019-12-05 15:37:47 +01:00
remoteproc remoteproc: Check for NULL firmwares in sysfs interface 2019-11-24 08:23:15 +01:00
reset reset: Fix memory leak in reset_control_array_put() 2019-12-05 15:36:49 +01:00
rpmsg
rtc rtc: s35390a: Change buf's type to u8 in s35390a_init 2019-12-01 09:13:44 +01:00
s390 s390/qeth: invoke softirqs after napi_schedule() 2019-11-20 18:00:04 +01:00
sbus
scsi scsi: libsas: Check SMP PHY control function result 2019-12-05 15:38:03 +01:00
sfi
sh
sn
soc soc: qcom: wcnss_ctrl: Avoid string overflow 2019-11-20 17:59:59 +01:00
spi spi: omap2-mcspi: Fix DMA and FIFO event trigger size mismatch 2019-12-01 09:14:14 +01:00
spmi
ssb
staging staging: rtl8723bs: Add 024c:0525 to the list of SDIO device-ids 2019-12-05 15:38:09 +01:00
target scsi: target: core: Do not overwrite CDB byte 1 2019-11-10 11:25:15 +01:00
tc
tee tee: optee: add missing of_node_put after of_device_is_available 2019-11-24 08:22:44 +01:00
thermal thermal: rcar_thermal: Prevent hardware access during system suspend 2019-12-01 09:13:47 +01:00
thunderbolt thunderbolt: Use 32-bit writes when writing ring producer/consumer 2019-11-06 12:43:22 +01:00
tty serial: 8250: Fix serial8250 initialization crash 2019-12-05 15:37:55 +01:00
uio
usb USB: serial: ftdi_sio: add device IDs for U-Blox C099-F9P 2019-12-05 15:38:09 +01:00
uwb
vfio vfio/spapr_tce: Get rid of possible infinite loop 2019-12-05 15:37:42 +01:00
vhost vhost/vsock: split packets to send using multiple buffers 2019-12-01 09:13:11 +01:00
video backlight: lm3639: Unconditionally call led_classdev_unregister 2019-11-24 08:23:24 +01:00
virt
virtio virtio_ring: fix return code on DMA mapping fails 2019-12-01 09:14:28 +01:00
vlynq
vme
w1 w1: IAD Register is yet readable trough iad sys file. Fix snprintf (%u for unsigned, count for max size). 2019-12-01 09:13:24 +01:00
watchdog watchdog: sama5d4: fix WDD value to be always set to max 2019-12-05 15:38:19 +01:00
xen xen/pciback: Check dev_data before using it 2019-12-05 15:37:27 +01:00
zorro
Kconfig
Makefile