While working on WWAN netdev creation support, I notice a few things that could be done to make the wwan subsystem more developer and user friendly. This series implements them. The series begins with a WWAN HW simulator designed simplify testing and make the WWAN subsystem available for a wider audience. The next two patches are intended to make the code a bit more clearer. This is followed by a few patches to make the port device naming more user-friendly. The series is finishes with a set of changes that allow the WWAN AT port to be used with terminal emulation software. All changes were tested with the HW simulator that was introduced in this series, as well as with a Huawei E3372 LTE modem (a CDC-NCM device), which I finally found on my desk. Sergey Ryazanov (10): wwan_hwsim: WWAN device simulator wwan_hwsim: add debugfs management interface net: wwan: make WWAN_PORT_MAX meaning less surprised net: wwan: core: init port type string array using enum values net: wwan: core: spell port device name in lowercase net: wwan: core: make port names more user-friendly net: wwan: core: expand ports number limit net: wwan: core: implement TIOCINQ ioctl net: wwan: core: implement terminal ioctls for AT port net: wwan: core: purge rx queue on port close drivers/net/wwan/Kconfig | 10 + drivers/net/wwan/Makefile | 2 + drivers/net/wwan/wwan_core.c | 238 ++++++++++++++-- drivers/net/wwan/wwan_hwsim.c | 500 ++++++++++++++++++++++++++++++++++ include/linux/wwan.h | 12 +- 5 files changed, 738 insertions(+), 24 deletions(-) create mode 100644 drivers/net/wwan/wwan_hwsim.c -- 2.26.3