ice: Remove second GNSS TTY device
Subsystems (4)
PATCH v2 1/1 ice: Remove second GNSS TTY device
Having a second GNSS TTY device causes issue when user is reading from both TTYs simultaneously. Remove second TTY device to avoid this issue. This TTY device is not necessary anymore and it's safe to remove it without breaking compatibility.
---
V1 -> V2: Removed unused variable.
.../device_drivers/ethernet/intel/ice.rst | 4 +- drivers/net/ethernet/intel/ice/ice.h | 4 +- drivers/net/ethernet/intel/ice/ice_gnss.c | 68 +++++++------------ drivers/net/ethernet/intel/ice/ice_gnss.h | 4 -- 4 files changed, 28 insertions(+), 52 deletions(-)
Documentation/networking/device_drivers/ethernet/intel/ice.rst +1 -3
@@ -904,9 +904,7 @@ To enable/disable UDP Segmentation Offload, issue the following command:: GNSS module ----------- Allows user to read messages from the GNSS module and write supported commands. -If the module is physically present, driver creates 2 TTYs for each supported -device in /dev, ttyGNSS_<device>:<function>_0 and _1. First one (_0) is RW and -the second one is RO. +If the module is physically present, a TTY in /dev, ttyGNSS_<device>:<function>. The protocol of write commands is dependent on the GNSS module as the driver writes raw bytes from the TTY to the GNSS i2c. Please refer to the module documentation for details.
drivers/net/ethernet/intel/ice/ice.h +2 -2
@@ -544,8 +544,8 @@ struct ice_pf {u32 msg_enable;struct ice_ptp ptp;struct tty_driver *ice_gnss_tty_driver; -struct tty_port *gnss_tty_port[ICE_GNSS_TTY_MINOR_DEVICES ]; -struct gnss_serial *gnss_serial[ICE_GNSS_TTY_MINOR_DEVICES ]; +struct tty_port *gnss_tty_port; +struct gnss_serial *gnss_serial;u16 num_rdma_msix;/* Total MSIX vectors for RDMA driver */ u16 rdma_base_vector;
drivers/net/ethernet/intel/ice/ice_gnss.c +25 -43
146 lines not on this page · raw message
drivers/net/ethernet/intel/ice/ice_gnss.h +0 -4
@@ -9,10 +9,6 @@#define ICE_E810T_GNSS_I2C_BUS 0x2#define ICE_GNSS_TIMER_DELAY_TIME (HZ / 10)/* 0.1 second per message */ -/* Create 2 minor devices, both using the same GNSS module. First one is RW, -* second one RO. -*/ -#define ICE_GNSS_TTY_MINOR_DEVICES 2#define ICE_GNSS_TTY_WRITE_BUF 250#define ICE_MAX_I2C_DATA_SIZE FIELD_MAX(ICE_AQC_I2C_DATA_SIZE_M)#define ICE_MAX_I2C_WRITE_BYTES 4
Signature · 6 lines
2.34.1 _______________________________________________ Intel-wired-lan mailing list [email protected] https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
Quoted 17 lines
-----Original Message-----
From: Intel-wired-lan <[email protected]> On Behalf Of Karol Kolacinski
Sent: Monday, August 29, 2022 1:04 PM
To: [email protected]
Cc: Kolacinski, Karol <[email protected]>
Subject: [Intel-wired-lan] [PATCH v2 net-next] ice: Remove second GNSS TTY deviceHaving a second GNSS TTY device causes issue when user is reading from both TTYs simultaneously. Remove second TTY device to avoid this issue. This TTY device is not necessary anymore and it's safe to remove it without breaking compatibility.
Signed-off-by Karol Kolacinski <[email protected]>
Quoted 9 lines
---
V1 -> V2: Removed unused variable..../device_drivers/ethernet/intel/ice.rst | 4 +- drivers/net/ethernet/intel/ice/ice.h | 4 +- drivers/net/ethernet/intel/ice/ice_gnss.c | 68 +++++++------------ drivers/net/ethernet/intel/ice/ice_gnss.h | 4 -- 4 files changed, 28 insertions(+), 52 deletions(-)
_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan
Tony Nguyen
maintainerQuoted 4 lines · Karol Kolacinski
Having a second GNSS TTY device causes issue when user is reading from both TTYs simultaneously. Remove second TTY device to avoid this issue. This TTY device is not necessary anymore and it's safe to remove it without breaking compatibility.
Dropping this based on feedback received from another patch dealing with GNSS/TTY[1]. We should look to convert to the GNSS API instead of maintaining our own version.
[1] https://lore.kernel.org/netdev/[email protected]/
Quoted 1 line
Signed-off-by Karol Kolacinski <[email protected]>
_______________________________________________
Intel-wired-lan mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/intel-wired-lan