Linux/linux 6cf62f0drivers/iio industrialio-buffer.c, drivers/iio/accel adxl355_core.c

Merge tag 'char-misc-6.18-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc

Pull char / misc / IIO fixes from Greg KH:
 "Here are some much-delayed char/misc/iio driver fixes for 6.18-rc8.

  Fixes in here include:

   - lots of iio driver bugfixes for reported issues.

   - counter driver bugfix

   - slimbus driver bugfix

   - mei tiny bugfix

   - nvmem layout uevent bugfix

  All of these have been in linux-next for a while, but due to travel on
  my side, I haven't had a chance to get them to you"

    [23 lines not shown]
DeltaFile
+43-30drivers/iio/humidity/hdc3020.c
+39-5drivers/iio/accel/adxl355_core.c
+29-11drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h
+16-5drivers/iio/industrialio-buffer.c
+8-11drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c
+9-6drivers/iio/pressure/bmp280-core.c
+144-6821 files not shown
+214-11327 files

Linux/linux dabf127drivers/tty/serial amba-pl011.c, drivers/tty/serial/8250 8250_rsa.c 8250.h

Merge tag 'tty-6.18-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty

Pull serial driver fixes from Greg KH:
 "Here are two serial driver fixes for reported issues for 6.18-rc8.

  These are:

   - fix for a much reported symbol build loop that broke the build for
     some kernel configurations

   - amba-pl011 driver bugfix for a reported issue

  Both have been in linux next (the last for weeks, the first for a
  shorter amount of time), with no reported issues"

* tag 'tty-6.18-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty:
  serial: 8250: Fix 8250_rsa symbol loop
  serial: amba-pl011: prefer dma_mapping_error() over explicit address checking
DeltaFile
+17-9drivers/tty/serial/8250/8250_rsa.c
+2-2drivers/tty/serial/8250/8250.h
+1-1drivers/tty/serial/8250/Makefile
+1-1drivers/tty/serial/8250/8250_platform.c
+1-1drivers/tty/serial/amba-pl011.c
+22-145 files

Linux/linux 5d324e5drivers/usb/dwc3 dwc3-pci.c, drivers/usb/gadget/udc core.c

Merge tag 'usb-6.18-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb

Pull USB/Thunderbolt fixes from Greg KH:
 "Here are some last-minutes USB and Thunderbolt driver fixes and new
  device ids for 6.18-rc8. Included in here are:

   - usb storage quirk fixup

   - xhci driver fixes for reported issues

   - usb gadget driver fixes

   - dwc3 driver fixes

   - UAS driver fixup

   - thunderbolt new device ids

   - usb-serial driver new ids

    [26 lines not shown]
DeltaFile
+58-44drivers/usb/host/xhci-sideband.c
+42-40drivers/usb/dwc3/dwc3-pci.c
+22-1drivers/usb/host/xhci-dbgtty.c
+16-1drivers/usb/gadget/udc/core.c
+16-0drivers/usb/storage/transport.c
+10-5drivers/usb/host/xhci-ring.c
+164-9119 files not shown
+228-10825 files

Linux/linux 24a84eadrivers/mailbox mtk-cmdq-mailbox.c omap-mailbox.c, include/linux/mailbox mtk-cmdq-mailbox.h

Merge tag 'mailbox-fixes-v6.18-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jassibrar/mailbox

Pull mailbox fixes from Jassi Brar:

 - omap: check for pending msgs only when mbox is exclusive

 - mailbox-test: debugfs_create_dir error checking

 - mtk:
     - cmdq: fix DMA address handling
     - gpueb: Add missing 'static' to mailbox ops struct

 - pcc: don't zero error register

 - th1520: fix clock imbalance on probe failure

* tag 'mailbox-fixes-v6.18-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/jassibrar/mailbox:
  mailbox: th1520: fix clock imbalance on probe failure
  mailbox: pcc: don't zero error register

    [4 lines not shown]
DeltaFile
+31-14drivers/mailbox/mtk-cmdq-mailbox.c
+20-15drivers/mailbox/omap-mailbox.c
+10-0include/linux/mailbox/mtk-cmdq-mailbox.h
+4-4drivers/mailbox/pcc.c
+1-3drivers/mailbox/mailbox-th1520.c
+1-1drivers/mailbox/mtk-gpueb-mailbox.c
+67-371 files not shown
+68-387 files

Linux/linux 4331989drivers/mmc/host sdhci-of-dwcmshc.c

Merge tag 'mmc-v6.18-rc2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc

Pull MMC fix from Ulf Hansson:

 - sdhci-of-dwcmshc: Fix reset handling for some variants

* tag 'mmc-v6.18-rc2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc:
  mmc: sdhci-of-dwcmshc: Promote the th1520 reset handling to ip level
DeltaFile
+17-12drivers/mmc/host/sdhci-of-dwcmshc.c
+17-121 files

Linux/linux f849f26drivers/pmdomain/mediatek mtk-pm-domains.c, drivers/pmdomain/tegra powergate-bpmp.c

Merge tag 'pmdomain-v6.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm

Pull pmdomain fixes from Ulf Hansson:

 - mediatek: Fix spinlock recursion in probe

 - tegra: Use GENPD_FLAG_NO_STAY_ON to restore old behaviour

* tag 'pmdomain-v6.18-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/linux-pm:
  pmdomain: tegra: Add GENPD_FLAG_NO_STAY_ON flag
  pmdomains: mtk-pm-domains: Fix spinlock recursion in probe
DeltaFile
+15-3drivers/pmdomain/mediatek/mtk-pm-domains.c
+1-0drivers/pmdomain/tegra/powergate-bpmp.c
+16-32 files

Linux/linux e3cee98drivers/mailbox mailbox-th1520.c

mailbox: th1520: fix clock imbalance on probe failure

The purpose of the devm_add_action_or_reset() helper is to call the
action function in case adding an action ever fails so drop the clock
disable from the error path to avoid disabling the clocks twice.

Fixes: 5d4d263e1c6b ("mailbox: Introduce support for T-head TH1520 Mailbox driver")
Cc: Michal Wilczynski <m.wilczynski at samsung.com>
Signed-off-by: Johan Hovold <johan at kernel.org>
Reviewed-by: Michal Wilczynski <m.wilczynski at samsung.com>
Signed-off-by: Jassi Brar <jassisinghbrar at gmail.com>
DeltaFile
+1-3drivers/mailbox/mailbox-th1520.c
+1-31 files

Linux/linux ff0e4d4drivers/mailbox pcc.c

mailbox: pcc: don't zero error register

The error status mask for a type 3/4 subspace is used for reading the
error status, and the bitwise inverse is used for clearing the error
with the intent being to preserve any of the non-error bits.  However,
we were previously applying the mask to extract the status and then
applying the inverse to the result which ended up clearing all bits.

Instead, store the inverse mask in the preserve mask and then use that
on the original value read from the error status so that only the error
is cleared.

Fixes: c45ded7e1135 ("mailbox: pcc: Add support for PCCT extended PCC subspaces(type 3/4)")
Signed-off-by: Jamie Iles <jamie.iles at oss.qualcomm.com>
Signed-off-by: Punit Agrawal <punit.agrawal at oss.qualcomm.com>
Signed-off-by: Jassi Brar <jassisinghbrar at gmail.com>
DeltaFile
+4-4drivers/mailbox/pcc.c
+4-41 files

Linux/linux 094b53edrivers/mailbox mtk-gpueb-mailbox.c

mailbox: mtk-gpueb: Add missing 'static' to mailbox ops struct

mtk_gpueb_mbox_ops should be declared static. However, due to its const
nature, this specifier was missed, as it compiled fine without it and
with no warning by the compiler.

arc-linux-gcc (GCC) 12.5.0 doesn't seem to like it however, so add the
static to fix that.

Reported-by: kernel test robot <lkp at intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202510100629.3nGvrhEU-lkp@intel.com/
Fixes: dbca0eabb821 ("mailbox: add MediaTek GPUEB IPI mailbox")
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli at collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
Signed-off-by: Jassi Brar <jassisinghbrar at gmail.com>
DeltaFile
+1-1drivers/mailbox/mtk-gpueb-mailbox.c
+1-11 files

Linux/linux a195c7cdrivers/mailbox mtk-cmdq-mailbox.c, include/linux/mailbox mtk-cmdq-mailbox.h

mailbox: mtk-cmdq: Refine DMA address handling for the command buffer

GCE can only fetch the command buffer address from a 32-bit register.
Some SoCs support a 35-bit command buffer address for GCE, which
requires a right shift of 3 bits before setting the address into
the 32-bit register. A comment has been added to the header of
cmdq_get_shift_pa() to explain this requirement.

To prevent the GCE command buffer address from being DMA mapped beyond
its supported bit range, the DMA bit mask for the device is set during
initialization.

Additionally, to ensure the correct shift is applied when setting or
reading the register that stores the GCE command buffer address,
new APIs, cmdq_convert_gce_addr() and cmdq_revert_gce_addr(), have
been introduced for consistent operations on this register.

The variable type for the command buffer address has been standardized
to dma_addr_t to prevent handling issues caused by type mismatches.

    [5 lines not shown]
DeltaFile
+31-14drivers/mailbox/mtk-cmdq-mailbox.c
+10-0include/linux/mailbox/mtk-cmdq-mailbox.h
+41-142 files

Linux/linux 3acf102drivers/mailbox mailbox-test.c

mailbox: mailbox-test: Fix debugfs_create_dir error checking

The debugfs_create_dir() function returns ERR_PTR() on error, not NULL.
The current null-check fails to catch errors.

Use IS_ERR() to correctly check for errors.

Fixes: 8ea4484d0c2b ("mailbox: Add generic mechanism for testing Mailbox Controllers")
Signed-off-by: Haotian Zhang <vulab at iscas.ac.cn>
Signed-off-by: Jassi Brar <jassisinghbrar at gmail.com>
DeltaFile
+1-1drivers/mailbox/mailbox-test.c
+1-11 files

Linux/linux 060e4e8drivers/mailbox omap-mailbox.c

mailbox: omap-mailbox: Check for pending msgs only when mbox is exclusive

On TI K3 devices, the mailbox resides in the Always-On power domain
(LPSC_main_alwayson) and is shared among multiple processors. The
mailbox is not solely exclusive to Linux.

Currently, the suspend path checks all FIFO queues for pending messages
and blocks suspend if any are present. This behavior is unnecessary for
K3 devices, since some of the FIFOs are used for RTOS<->RTOS
communication and are independent of Linux.

For FIFOs used in Linux<->RTOS communication, any pending message would
trigger an interrupt, which naturally prevents suspend from completing.
Hence, there is no need for the mailbox driver to explicitly check for
pending messages on K3 platforms.

Introduce a device match flag to indicate whether the mailbox instance
is exclusive to Linux, and skip the pending message check for
non-exclusive instances (such as in K3).

    [7 lines not shown]
DeltaFile
+20-15drivers/mailbox/omap-mailbox.c
+20-151 files

Linux/linux e538109drivers/gpu/drm drm_fb_helper.c, drivers/gpu/drm/amd/display/amdgpu_dm amdgpu_dm.c

Merge tag 'drm-fixes-2025-11-28' of https://gitlab.freedesktop.org/drm/kernel

Pull drm fixes from Dave Airlie:
 "Last one for this round hopefully, mostly the usual suspects,
  xe/amdgpu, with some single fixes otherwise.

  There is one amdgpu HDMI blackscreen bug that came in late in the
  cycle, but it was bisected and the revert is in here.

  i915:
   - Reject async flips when PSR's selective fetch is enabled

  xe:
   - Fix resource leak in xe_guc_ct_init_noalloc()'s error path
   - Fix stack_depot usage without STACKDEPOT_ALWAYS_INIT
   - Fix overflow in conversion from clock tics to msec

  amdgpu:
   - Unified MES fix

    [35 lines not shown]
DeltaFile
+8-12drivers/gpu/drm/bridge/sii902x.c
+9-6drivers/gpu/drm/xe/xe_guc_ct.c
+15-0drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+0-14drivers/gpu/drm/drm_fb_helper.c
+8-3drivers/gpu/drm/amd/display/dc/core/dc_stream.c
+9-0drivers/video/fbdev/core/fbcon.c
+49-3514 files not shown
+85-6520 files

Linux/linux 6dbcb80drivers/gpu/drm/xe xe_guc_ct.c xe_gt_clock.c

Merge tag 'drm-xe-fixes-2025-11-27' of https://gitlab.freedesktop.org/drm/xe/kernel into drm-fixes

Driver Changes:
 - Fix resource leak in xe_guc_ct_init_noalloc()'s error path (Shuicheng Lin)
 - Fix stack_depot usage without STACKDEPOT_ALWAYS_INIT (Lucas)
 - Fix overflow in conversion from clock tics to msec (Harish Chegondi)

Signed-off-by: Dave Airlie <airlied at redhat.com>

From: Lucas De Marchi <lucas.demarchi at intel.com>
Link: https://patch.msgid.link/7ejiqjgthpqybg5svmkind2pszk4fqadxuq7rngchaaw76iept@5pn6sngqj6lk
DeltaFile
+9-6drivers/gpu/drm/xe/xe_guc_ct.c
+1-6drivers/gpu/drm/xe/xe_gt_clock.c
+10-122 files

Linux/linux 26c7a18drivers/gpu/drm drm_fb_helper.c, drivers/gpu/drm/bridge sii902x.c

Merge tag 'drm-misc-fixes-2025-11-27' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes

Short summary of fixes pull:

bridge:
- sil902x: Fix HDMI detection

imagination:
- Update documentation

sti:
- Fix leaks in probe

vga_switcheroo:
- Avoid race condition during fbcon initialization

Signed-off-by: Dave Airlie <airlied at redhat.com>

From: Thomas Zimmermann <tzimmermann at suse.de>
Link: https://patch.msgid.link/20251127081007.GA13578@2a02-2454-fd5e-fd00-689d-32c0-780c-bb87.dyn6.pyur.net
DeltaFile
+8-12drivers/gpu/drm/bridge/sii902x.c
+0-14drivers/gpu/drm/drm_fb_helper.c
+9-0drivers/video/fbdev/core/fbcon.c
+8-0drivers/gpu/drm/imagination/pvr_device.h
+6-1drivers/gpu/drm/sti/sti_vtg.c
+31-275 files

Linux/linux 4fc3ad6drivers/gpu/drm/amd/amdgpu amdgpu_gmc.c, drivers/gpu/drm/amd/display/amdgpu_dm amdgpu_dm.c amdgpu_dm_helpers.c

Merge tag 'amd-drm-fixes-6.18-2025-11-26' of https://gitlab.freedesktop.org/agd5f/linux into drm-fixes

amd-drm-fixes-6.18-2025-11-26:

amdgpu:
- Unified MES fix
- HDMI fix
- Cursor fix
- Bightness fix
- EDID reading improvement
- UserQ fix
- Cyan Skillfish IP discovery fix

Signed-off-by: Dave Airlie <airlied at redhat.com>

From: Alex Deucher <alexander.deucher at amd.com>
Link: https://patch.msgid.link/20251126204925.3316684-1-alexander.deucher@amd.com
DeltaFile
+15-0drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+8-3drivers/gpu/drm/amd/display/dc/core/dc_stream.c
+4-4drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c
+0-7drivers/gpu/drm/amd/display/dc/virtual/virtual_stream_encoder.c
+3-0drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
+3-0drivers/gpu/drm/amd/display/dc/link/link_dpms.c
+33-145 files not shown
+36-2011 files

Linux/linux aa7243adrivers/iommu dma-iommu.c, kernel/dma direct.c

Merge tag 'dma-mapping-6.18-2025-11-27' of git://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux

Pull dma-mapping fixes from Marek Szyprowski:
 "Two last minute fixes for the recently modified DMA API infrastructure:

   - proper handling of DMA_ATTR_MMIO in dma_iova_unlink() function (me)

   - regression fix for the code refactoring related to P2PDMA (Pranjal
     Shrivastava)"

* tag 'dma-mapping-6.18-2025-11-27' of git://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux:
  dma-direct: Fix missing sg_dma_len assignment in P2PDMA bus mappings
  iommu/dma: add missing support for DMA_ATTR_MMIO for dma_iova_unlink()
DeltaFile
+3-2drivers/iommu/dma-iommu.c
+1-0kernel/dma/direct.c
+4-22 files

Linux/linux 3fa7787drivers/acpi processor_driver.c

Merge tag 'acpi-6.18-rc8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm

Pull ACPI fix from Rafael Wysocki:
 "One more urgent ACPI support fix for 6.18

  There is one more commit that needs to be reverted after reverting
  problematic commit 7a8c994cbb2d ("ACPI: processor: idle: Optimize ACPI
  idle driver registration"), so revert it"

* tag 'acpi-6.18-rc8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
  Revert "ACPI: processor: Update cpuidle driver check in __acpi_processor_start()"
DeltaFile
+1-1drivers/acpi/processor_driver.c
+1-11 files

Linux/linux b31e2e3drivers/gpu/drm/i915/display intel_display.c intel_psr.c

Merge tag 'drm-intel-fixes-2025-11-26' of https://gitlab.freedesktop.org/drm/i915/kernel into drm-fixes

- Reject async flips when PSR's selective fetch is enabled (Ville)

Signed-off-by: Dave Airlie <airlied at redhat.com>

From: Rodrigo Vivi <rodrigo.vivi at intel.com>
Link: https://patch.msgid.link/aScgY8QMjmyJRBX2@intel.com
DeltaFile
+8-0drivers/gpu/drm/i915/display/intel_display.c
+0-6drivers/gpu/drm/i915/display/intel_psr.c
+8-62 files

Linux/linux fbf0421drivers/acpi processor_driver.c

Revert "ACPI: processor: Update cpuidle driver check in __acpi_processor_start()"

Revert commit 8a1b5d412cb4 ("ACPI: processor: Update cpuidle driver
check in __acpi_processor_start()") which depends on commit
7a8c994cbb2d ("ACPI: processor: idle: Optimize ACPI idle driver
registration") that got reverted.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki at intel.com>
DeltaFile
+1-1drivers/acpi/processor_driver.c
+1-11 files

Linux/linux e1afacbinclude/linux/ceph libceph.h, net/ceph ceph_common.c osdmap.c

Merge tag 'ceph-for-6.18-rc8' of https://github.com/ceph/ceph-client

Pull ceph fixes from Ilya Dryomov:
 "A patch to make sparse read handling work in msgr2 secure mode from
  Slava and a couple of fixes from Ziming and myself to avoid operating
  on potentially invalid memory, all marked for stable"

* tag 'ceph-for-6.18-rc8' of https://github.com/ceph/ceph-client:
  libceph: prevent potential out-of-bounds writes in handle_auth_session_key()
  libceph: replace BUG_ON with bounds check for map->max_osd
  ceph: fix crash in process_v2_sparse_read() for encrypted directories
  libceph: drop started parameter of __ceph_open_session()
  libceph: fix potential use-after-free in have_mon_and_osd_map()
DeltaFile
+34-24net/ceph/ceph_common.c
+11-7net/ceph/osdmap.c
+11-5net/ceph/debugfs.c
+7-4net/ceph/messenger_v2.c
+1-2include/linux/ceph/libceph.h
+2-0net/ceph/auth_x.c
+66-421 files not shown
+67-437 files

Linux/linux 1f5e808drivers/net/can/rcar rcar_canfd.c, drivers/net/can/usb gs_usb.c

Merge tag 'net-6.18-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net

Pull networking fixes from Paolo Abeni:
 "Including fixes from bluetooth and CAN. No known outstanding
  regressions.

  Current release - regressions:

   - mptcp: initialize rcv_mss before calling tcp_send_active_reset()

   - eth: mlx5e: fix validation logic in rate limiting

  Previous releases - regressions:

   - xsk: avoid data corruption on cq descriptor number

   - bluetooth:
       - prevent race in socket write iter and sock bind
       - fix not generating mackey and ltk when repairing

    [45 lines not shown]
DeltaFile
+88-55net/xdp/xsk.c
+88-14drivers/net/can/usb/gs_usb.c
+37-52net/bluetooth/hci_core.c
+62-14drivers/vhost/vhost.c
+52-12drivers/net/ethernet/freescale/fec_ptp.c
+31-22drivers/net/can/rcar/rcar_canfd.c
+358-16943 files not shown
+701-35449 files

Linux/linux a76dce0drivers/platform/arm64 lenovo-thinkpad-t14s.c, drivers/platform/x86/intel punit_ipc.c

Merge tag 'platform-drivers-x86-v6.18-5' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86

Pull platform driver fixes from Ilpo Järvinen:

 - arm64/thinkpad-t14s-ec:
    - Fix IRQ race condition
    - Sleep after EC access

 - intel/punit_ipc: Fix memory corruption

* tag 'platform-drivers-x86-v6.18-5' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86:
  platform/x86: intel: punit_ipc: fix memory corruption
  platform: arm64: thinkpad-t14s-ec: sleep after EC access
  platform: arm64: thinkpad-t14s-ec: fix IRQ race condition
DeltaFile
+10-6drivers/platform/arm64/lenovo-thinkpad-t14s.c
+1-1drivers/platform/x86/intel/punit_ipc.c
+11-72 files

Linux/linux f07f4eanet/mptcp protocol.c

mptcp: Initialise rcv_mss before calling tcp_send_active_reset() in mptcp_do_fastclose().

syzbot reported divide-by-zero in __tcp_select_window() by
MPTCP socket. [0]

We had a similar issue for the bare TCP and fixed in commit
499350a5a6e7 ("tcp: initialize rcv_mss to TCP_MIN_MSS instead
of 0").

Let's apply the same fix to mptcp_do_fastclose().

[0]:
Oops: divide error: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 6068 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:__tcp_select_window+0x824/0x1320 net/ipv4/tcp_output.c:3336
Code: ff ff ff 44 89 f1 d3 e0 89 c1 f7 d1 41 01 cc 41 21 c4 e9 a9 00 00 00 e8 ca 49 01 f8 e9 9c 00 00 00 e8 c0 49 01 f8 44 89 e0 99 <f7> 7c 24 1c 41 29 d4 48 bb 00 00 00 00 00 fc ff df e9 80 00 00 00
RSP: 0018:ffffc90003017640 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88807b469e40

    [44 lines not shown]
DeltaFile
+6-0net/mptcp/protocol.c
+6-01 files

Linux/linux 36d7478drivers/net/ethernet/freescale fec_ptp.c fec.h

Merge branch 'net-fec-fix-some-ptp-related-issues'

Wei Fang says:

====================
net: fec: fix some PTP related issues

There are some issues which were introduced by the commit 350749b909bf
("net: fec: Add support for periodic output signal of PPS"). See each
patch for more details.
====================

Link: https://patch.msgid.link/20251125085210.1094306-1-wei.fang@nxp.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>
DeltaFile
+52-12drivers/net/ethernet/freescale/fec_ptp.c
+1-0drivers/net/ethernet/freescale/fec.h
+53-122 files

Linux/linux 9a060d0drivers/net/ethernet/freescale fec_ptp.c

net: fec: do not register PPS event for PEROUT

There are currently two situations that can trigger the PTP interrupt,
one is the PPS event, the other is the PEROUT event. However, the irq
handler fec_pps_interrupt() does not check the irq event type and
directly registers a PPS event into the system, but the event may be
a PEROUT event. This is incorrect because PEROUT is an output signal,
while PPS is the input of the kernel PPS system. Therefore, add a check
for the event type, if pps_enable is true, it means that the current
event is a PPS event, and then the PPS event is registered.

Fixes: 350749b909bf ("net: fec: Add support for periodic output signal of PPS")
Signed-off-by: Wei Fang <wei.fang at nxp.com>
Link: https://patch.msgid.link/20251125085210.1094306-5-wei.fang@nxp.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>

DeltaFile
+5-2drivers/net/ethernet/freescale/fec_ptp.c
+5-21 files

Linux/linux e97faa0drivers/net/ethernet/freescale fec_ptp.c fec.h

net: fec: do not update PEROUT if it is enabled

If the previously set PEROUT is already active, updating it will cause
the new PEROUT to start immediately instead of at the specified time.
This is because fep->reload_period is updated whithout check whether
the PEROUT is enabled, and the old PEROUT is not disabled. Therefore,
the pulse period will be updated immediately in the pulse interrupt
handler fec_pps_interrupt().

Currently, the driver does not support directly updating PEROUT and it
will make the logic be more complicated. To fix the current issue, add
a check before enabling the PEROUT, the driver will return an error if
PEROUT is enabled. If users wants to update a new PEROUT, they should
disable the old PEROUT first.

Fixes: 350749b909bf ("net: fec: Add support for periodic output signal of PPS")
Signed-off-by: Wei Fang <wei.fang at nxp.com>
Link: https://patch.msgid.link/20251125085210.1094306-3-wei.fang@nxp.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>

DeltaFile
+33-10drivers/net/ethernet/freescale/fec_ptp.c
+1-0drivers/net/ethernet/freescale/fec.h
+34-102 files

Linux/linux 50caa74drivers/net/ethernet/freescale fec_ptp.c

net: fec: cancel perout_timer when PEROUT is disabled

The PEROUT allows the user to set a specified future time to output the
periodic signal. If the future time is far from the current time, the FEC
driver will use hrtimer to configure PEROUT one second before the future
time. However, the hrtimer will not be canceled if the PEROUT is disabled
before the hrtimer expires. So the PEROUT will be configured when the
hrtimer expires, which is not as expected. Therefore, cancel the hrtimer
in fec_ptp_pps_disable() to fix this issue.

Fixes: 350749b909bf ("net: fec: Add support for periodic output signal of PPS")
Signed-off-by: Wei Fang <wei.fang at nxp.com>
Link: https://patch.msgid.link/20251125085210.1094306-2-wei.fang@nxp.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>

DeltaFile
+2-0drivers/net/ethernet/freescale/fec_ptp.c
+2-01 files

Linux/linux c0a1f3ddrivers/net/ethernet/freescale fec_ptp.c

net: fec: do not allow enabling PPS and PEROUT simultaneously

In the current driver, PPS and PEROUT use the same channel to generate
the events, so they cannot be enabled at the same time. Otherwise, the
later configuration will overwrite the earlier configuration. Therefore,
when configuring PPS, the driver will check whether PEROUT is enabled.
Similarly, when configuring PEROUT, the driver will check whether PPS
is enabled.

Fixes: 350749b909bf ("net: fec: Add support for periodic output signal of PPS")
Signed-off-by: Wei Fang <wei.fang at nxp.com>
Link: https://patch.msgid.link/20251125085210.1094306-4-wei.fang@nxp.com
Signed-off-by: Paolo Abeni <pabeni at redhat.com>

DeltaFile
+12-0drivers/net/ethernet/freescale/fec_ptp.c
+12-01 files

Linux/linux b3e528anet/mctp route.c

net: mctp: unconditionally set skb->dev on dst output

On transmit, we are currently relying on skb->dev being set by
mctp_local_output() when we first set up the skb destination fields.
However, forwarded skbs do not use the local_output path, so will retain
their incoming netdev as their ->dev on tx. This does not work when
we're forwarding between interfaces.

Set skb->dev unconditionally in the transmit path, to allow for proper
forwarding.

We keep the skb->dev initialisation in mctp_local_output(), as we use it
for fragmentation.

Fixes: 269936db5eb3 ("net: mctp: separate routing database from routing operations")
Suggested-by: Vince Chang <vince_chang at aspeedtech.com>
Signed-off-by: Jeremy Kerr <jk at codeconstruct.com.au>
Link: https://patch.msgid.link/20251125-dev-forward-v1-1-54ecffcd0616@codeconstruct.com.au
Signed-off-by: Paolo Abeni <pabeni at redhat.com>

DeltaFile
+1-0net/mctp/route.c
+1-01 files