linux/drivers
Vladimir Oltean 0429d2a414 net: dsa: felix: fix internal MDIO controller resource length
[ Upstream commit 940af26132 ]

The blamed commit did not properly convert the resource start/end format
into the DEFINE_RES_MEM_NAMED() start/length format, resulting in a
resource for vsc9959_imdio_res which is much longer than expected:

$ cat /proc/iomem
1f8000000-1f815ffff : pcie@1f0000000
  1f8140000-1f815ffff : 0000:00:00.5
    1f8148030-1f815006f : imdio

vs (correct)

$ cat /proc/iomem
1f8000000-1f815ffff : pcie@1f0000000
  1f8140000-1f815ffff : 0000:00:00.5
    1f8148030-1f814803f : imdio

Luckily it's not big enough to exceed the size of the parent resource
(pci_resource_end(pdev, VSC9959_IMDIO_PCI_BAR)), and it doesn't overlap
with anything else that the Linux driver uses currently, so the larger
than expected size isn't a practical problem that I can see. Although it
is clearly wrong in the /proc/iomem output.

Fixes: 044d447a80 ("net: dsa: felix: use DEFINE_RES_MEM_NAMED for resources")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-03-11 13:50:34 +01:00
..
accel accel: fix CONFIG_DRM dependencies 2023-03-10 09:28:36 +01:00
accessibility tty: fix possible null-ptr-defer in spk_ttyio_release 2023-01-19 16:24:04 +01:00
acpi ACPI: video: Fix Lenovo Ideapad Z570 DMI match 2023-03-10 09:29:11 +01:00
amba ARM updates for 6.2 2022-12-13 15:22:14 -08:00
android binder: validate alloc->mm in ->mmap() handler 2022-11-09 15:41:27 +01:00
ata ata: ahci: Revert "ata: ahci: Add Tiger Lake UP{3,4} AHCI controller" 2023-03-10 09:27:41 +01:00
atm treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
auxdisplay auxdisplay: hd44780: Fix potential memory leak in hd44780_remove() 2023-03-11 13:50:20 +01:00
base genirq/msi, platform-msi: Ensure that MSI descriptors are unreferenced 2023-03-10 09:29:48 +01:00
bcma bcma: Fail probe if GPIO subdriver fails 2022-11-04 12:59:51 +02:00
block brd: use radix_tree_maybe_preload instead of radix_tree_preload 2023-03-10 09:29:57 +01:00
bluetooth Bluetooth: btusb: Add VID:PID 13d3:3529 for Realtek RTL8821CE 2023-03-10 09:29:13 +01:00
bus bus: mhi: ep: Save channel state locally during suspend and resume 2023-03-10 09:29:54 +01:00
cdrom block: remove blk_cleanup_disk 2022-06-28 06:33:15 -06:00
char ipmi:ssif: Add a timer between request retries 2023-03-10 09:29:23 +01:00
clk clk: ingenic: jz4760: Update M/N/OD calculation algorithm 2023-01-25 16:08:27 -08:00
clocksource clocksource/drivers/riscv: Patch riscv_clock_next_event() jump before first use 2023-03-10 09:28:19 +01:00
comedi comedi: adv_pci1760: Fix PWM instruction handling 2023-01-19 17:24:47 +01:00
connector connector/cn_proc: Use task_is_in_init_pid_ns() 2022-01-26 18:57:09 -08:00
counter counter: stm32-lptimer-cnt: fix the check on arr and cmp registers update 2022-11-26 16:49:28 -05:00
cpufreq cpufreq: davinci: Fix clk use after free 2023-03-10 09:28:17 +01:00
cpuidle cpuidle: add ARCH_SUSPEND_POSSIBLE dependencies 2023-03-10 09:29:44 +01:00
crypto crypto: qat - fix out-of-bounds read 2023-03-10 09:29:41 +01:00
cxl cxl/pmem: Fix nvdimm registration races 2023-03-10 09:29:42 +01:00
dax dax/kmem: Fix leak of memory-hotplug resources 2023-03-10 09:29:48 +01:00
dca dca: Use PTR_ERR_OR_ZERO() to simplify code 2020-05-15 16:25:20 +02:00
devfreq PM / devfreq: event: use devm_platform_get_and_ioremap_resource() 2022-12-05 21:57:20 +09:00
dio drivers: dio: fix possible memory leak in dio_init() 2022-11-09 15:12:37 +01:00
dma dmaengine: ptdma: check for null desc before calling pt_cmd_callback 2023-03-10 09:28:57 +01:00
dma-buf dma-buf: actually set signaling bit for private stub fences 2023-01-27 14:16:18 +01:00
edac EDAC/qcom: Do not pass llcc_driv_data as edac_device_ctl_info's pvt_info 2023-01-20 19:47:34 +01:00
eisa EISA: use DEVICE_ATTR_RO() helper macro 2021-06-04 15:28:34 +02:00
extcon Char/Misc driver changes for 6.2-rc1 2022-12-16 03:49:24 -08:00
firewire firewire: fix memory leak for payload of request subaction to IEC 61883-1 FCP region 2023-01-17 18:09:21 +01:00
firmware firmware: coreboot: framebuffer: Ignore reserved pixel color bits 2023-03-10 09:29:22 +01:00
fpga fpga: microchip-spi: rewrite status polling in a time measurable way 2023-03-10 09:28:53 +01:00
fsi use less confusing names for iov_iter direction initializers 2022-11-25 13:01:55 -05:00
gnss driver core: make struct class.dev_uevent() take a const * 2022-11-24 17:12:15 +01:00
gpio gpio: vf610: connect GPIO label to dev name 2023-03-10 09:28:35 +01:00
gpu drm/i915/xelpmp: Consider GSI offset when doing MCR lookups 2023-03-11 13:50:31 +01:00
greybus greybus: svc: Use kstrtobool() instead of strtobool() 2022-11-10 19:03:58 +01:00
hid HID: logitech-hidpp: Don't restart communication if not necessary 2023-03-10 09:29:20 +01:00
hsi HSI: omap_ssi_core: Fix error handling in ssi_init() 2022-11-25 01:04:21 +01:00
hte hte: Uninitialized variable in hte_ts_get() 2022-05-20 15:54:41 +02:00
hv HV: hv_balloon: fix memory leak with using debugfs_lookup() 2023-02-03 07:45:18 +01:00
hwmon hwmon: (nct6775) Fix incorrect parenthesization in nct6775_write_fan_div() 2023-03-10 09:29:45 +01:00
hwspinlock hwspinlock: qcom: add support for MMIO on older SoCs 2022-09-13 17:01:18 -05:00
hwtracing hwtracing: hisi_ptt: Only add the supported devices to the filters list 2023-03-10 09:28:49 +01:00
i2c i2c: qcom-geni: change i2c_master_hub to static 2023-03-10 09:28:47 +01:00
i3c i3c: export SETDASA method 2022-12-11 21:25:58 +01:00
idle cpuidle, intel_idle: Fix CPUIDLE_FLAG_IRQ_ENABLE *again* 2023-03-10 09:27:46 +01:00
iio iio: light: tsl2563: Do not hardcode interrupt trigger type 2023-03-10 09:28:47 +01:00
infiniband IB/hfi1: Fix sdma.h tx->num_descs off-by-one errors 2023-03-10 09:28:59 +01:00
input Input: exc3000 - properly stop timer on shutdown 2023-03-10 09:29:42 +01:00
interconnect interconnect: qcom: rpm: Use _optional func for provider clocks 2023-01-05 17:29:57 +02:00
iommu iommu/vt-d: Fix PASID directory pointer coherency 2023-03-10 09:29:55 +01:00
ipack Char/Misc and other driver changes for 6.1-rc1 2022-10-08 08:56:37 -07:00
irqchip irqchip/irq-bcm7120-l2: Set IRQ_LEVEL for level triggered interrupts 2023-03-10 09:28:23 +01:00
isdn treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
leds leds: simatic-ipc-leds-gpio: Make sure we have the GPIO providing driver 2023-03-10 09:28:43 +01:00
macintosh macintosh/macio-adb: check the return value of ioremap() 2022-11-24 23:12:18 +11:00
mailbox - qcom: enable sc8280xp, sm8550 and sm4250 support 2022-12-21 09:31:18 -08:00
mcb mcb: mcb-parse: fix error handing in chameleon_parse_gdd() 2022-12-02 17:48:04 +01:00
md dm flakey: fix a bug with 32-bit highmem systems 2023-03-10 09:29:45 +01:00
media media: ipu3-cio2: Fix PM runtime usage_count in driver unbind 2023-03-10 09:29:49 +01:00
memory memory: renesas-rpc-if: Move resource acquisition to .probe() 2023-03-11 13:50:22 +01:00
memstick memstick/mspro_block: Convert to use sysfs_emit()/sysfs_emit_at() APIs 2022-12-09 10:29:58 +01:00
message scsi: message: fusion: Remove variable 'where' 2022-11-08 03:00:52 +00:00
mfd mfd: pcf50633-adc: Fix potential memleak in pcf50633_adc_async_read() 2023-03-10 09:28:46 +01:00
misc habanalabs: fix bug in timestamps registration code 2023-03-10 09:29:17 +01:00
mmc mmc: jz4740: Work around bug on JZ4760(B) 2023-02-14 00:14:05 +01:00
most most: usb: replace snprintf in show functions with sysfs_emit 2021-11-26 17:03:47 +01:00
mtd ubi: ubi_wl_put_peb: Fix infinite loop when wear-leveling work failed 2023-03-11 13:50:26 +01:00
mux mux: Fix struct mux_state kernel-doc comment 2022-02-04 15:47:12 +01:00
net net: dsa: felix: fix internal MDIO controller resource length 2023-03-11 13:50:34 +01:00
nfc nfc: fix memory leak of se_io context in nfc_genl_se_io 2023-03-11 13:50:33 +01:00
ntb NTB: epf: Allow more flexibility in the memory BAR map method 2022-08-09 17:54:03 -04:00
nubus proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
nvdimm cxl/pmem: Fix nvdimm registration races 2023-03-10 09:29:42 +01:00
nvme block-6.2-2023-02-17 2023-02-18 09:56:58 -08:00
nvmem nvmem: qcom-spmi-sdam: fix module autoloading 2023-01-28 14:39:31 +01:00
of 12 hotfixes, mostly against mm/. Five of these fixes are cc:stable. 2023-02-13 14:09:20 -08:00
opp OPP: fix error checking in opp_migrate_dentry() 2023-03-10 09:28:17 +01:00
parisc parisc: pdc_stable: use strscpy() to instead of strncpy() 2023-01-09 09:51:56 +01:00
parport parport_pc: Avoid FIFO port location truncation 2022-11-09 15:40:32 +01:00
pci PCI/DPC: Await readiness of secondary bus after reset 2023-03-10 09:29:54 +01:00
pcmcia treewide: Convert del_timer*() to timer_shutdown*() 2022-12-25 13:38:09 -08:00
peci peci: cpu: Fix use-after-free in adev_release() 2022-08-15 20:31:35 +02:00
perf arm_pmu: fix event CPU filtering 2023-02-16 21:23:52 +00:00
phy phy: rockchip-typec: fix tcphy_get_mode error case 2023-03-10 09:28:56 +01:00
pinctrl pinctrl: at91: use devm_kasprintf() to avoid potential leaks 2023-03-10 09:29:19 +01:00
platform platform/x86: dell-ddv: Add support for interface version 3 2023-03-10 09:29:11 +01:00
pnp PNP: Do not disable devices on suspend when they cannot be re-enabled on resume 2022-11-25 19:36:52 +01:00
power power: supply: remove faulty cooling logic 2023-03-10 09:28:54 +01:00
powercap powercap: fix possible name leak in powercap_register_zone() 2023-03-10 09:28:10 +01:00
pps pps: generators: pps_gen_parport: Switch to use module_parport_driver() 2022-03-18 14:01:19 +01:00
ps3 drivers/ps3: Fix double word in comments 2022-11-24 23:31:47 +11:00
ptp ptp: vclock: use mutex to fix "sleep on atomic" bug 2023-03-11 13:50:30 +01:00
pwm pwm: stm32-lp: fix the check on arr and cmp registers update 2023-03-11 13:50:22 +01:00
rapidio rapidio: devices: fix missing put_device in mport_cdev_open 2022-12-11 19:30:20 -08:00
ras RAS: Fix return value from show_trace() 2022-10-31 18:55:18 +01:00
regulator regulator: core: Use ktime_get_boottime() to determine how long a regulator was off 2023-03-10 09:29:47 +01:00
remoteproc remoteproc/mtk_scp: Move clk ops outside send_lock 2023-03-10 09:29:49 +01:00
reset reset: uniphier-glue: Fix possible null-ptr-deref 2023-01-03 11:30:46 +01:00
rpmsg rpmsg: glink: Release driver_override 2023-03-10 09:29:04 +01:00
rtc rtc: pm8xxx: fix set-alarm race 2023-03-10 09:29:22 +01:00
s390 vfio/ccw: remove WARN_ON during shutdown 2023-03-10 09:28:21 +01:00
sbus sparc: sbus: treat CPU index as integer 2022-11-19 00:56:15 +01:00
scsi scsi: ses: Fix slab-out-of-bounds in ses_intf_remove() 2023-03-10 09:29:52 +01:00
sh genirq: Add and use an irq_data_update_affinity helper 2022-07-07 09:38:04 +01:00
siox siox: fix possible memory leak in siox_device_add() 2022-11-09 15:40:14 +01:00
slimbus slimbus: qcom-ngd-ctrl: reinit the reconf completion flag 2022-11-23 19:45:33 +01:00
soc soc: qcom: stats: Populate all subsystem debugfs files 2023-03-11 13:50:27 +01:00
soundwire soundwire: cadence: Don't overflow the command FIFOs 2023-03-10 09:28:47 +01:00
spi spi: tegra210-quad: Fix validate combined sequence 2023-03-11 13:50:32 +01:00
spmi spmi: pmic-arb: Add support for PMIC v7 2022-11-10 18:37:59 +01:00
ssb ssb: gpio: Use generic_handle_irq_safe() 2022-09-19 15:08:38 +02:00
staging media: atomisp: Only set default_run_mode on first open of a stream/asd 2023-03-10 09:29:03 +01:00
target scsi: target: core: Fix warning on RT kernels 2023-01-13 20:24:24 -05:00
tc The main MIPS changes for 5.6: 2020-01-31 11:28:31 -08:00
tee SoC driver updates for 6.2 2022-12-12 10:17:08 -08:00
thermal thermal: intel: powerclamp: Fix cur_state for multi package system 2023-03-10 09:29:44 +01:00
thunderbolt thunderbolt: Disable XDomain lane 1 only in software connection manager 2023-01-09 10:44:43 +02:00
tty tty: serial: imx: disable Ageing Timer interrupt request irq 2023-03-10 09:28:55 +01:00
ufs scsi: ufs: core: Fix device management cmd timeout flow 2023-03-10 09:29:20 +01:00
uio uio: uio_dmem_genirq: Use non-atomic bit operations in irq config and handling 2022-11-10 18:54:29 +01:00
usb usb: host: fsl-mph-dr-of: reuse device_set_of_node_from_dev 2023-03-10 09:28:56 +01:00
vdpa vdpa: ifcvf: Do proper cleanup if IFCVF init fails 2023-01-27 06:18:41 -05:00
vfio vfio/type1: restore locked_vm 2023-03-10 09:29:56 +01:00
vhost vhost-scsi: unbreak any layout for response 2023-01-27 06:18:41 -05:00
video Revert "fbcon: don't lose the console font across generic->chip driver switch" 2023-03-10 09:29:15 +01:00
virt virt/sev-guest: Return -EIO if certificate buffer is not large enough 2023-03-10 09:29:36 +01:00
virtio virtio: Implementing attribute show with sysfs_emit 2022-12-28 05:28:11 -05:00
vlynq bus: Make remove callback return void 2021-07-21 11:53:42 +02:00
w1 w1: fix WARNING after calling w1_process() 2023-01-19 17:26:33 +01:00
watchdog watchdog: sbsa_wdog: Make sure the timeout programming is within the limits 2023-03-11 13:50:29 +01:00
xen xen/grant-dma-iommu: Implement a dummy probe_device() callback 2023-03-10 09:28:18 +01:00
zorro proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
Kconfig drivers/accel: define kconfig and register a new major 2022-11-22 13:13:51 +02:00
Makefile hwtracing: hisi_ptt: Add trace function support for HiSilicon PCIe Tune and Trace device 2022-09-08 16:26:17 -06:00