Re: [PATCH 1/4] net: mhi: Rename MHI interface to improve clarity

From: Jakub Kicinski
Date: Fri Jul 25 2025 - 20:09:08 EST


On Thu, 24 Jul 2025 19:21:17 +0530 Vivek.Pernamitta@xxxxxxxxxxx wrote:
> From: Vivek Pernamitta <quic_vpernami@xxxxxxxxxxx>
>
> Rename the MHI network interface to include the device name, improving
> clarity when multiple MHI controllers are connected.
>
> Currently, MHI NET device interfaces are created as mhi_swip<n>/
> mhi_hwip<n> for each channel, making it difficult to distinguish between
> channels when multiple EP/MHI controllers are connected.
>
> Rename the MHI interface to include the device name, for example:
> - Channel IP_SW0 for the 1st MHI controller will be named mhi0_IP_SW0.
> - Channel IP_SW0 for the 2nd MHI controller will be named mhi1_IP_SW0.
> - Channel IP_HW0 for the 1st MHI controller will be named mhi0_IP_HW0.

The userspace can rename the interfaces. It has the association with
the underlying device right there in the udev event.