ice: Remove second GNSS TTY device
Subsystems (4)
PATCH 1/1 ice: Remove second GNSS TTY device
Due to design change, second GNSS TTY device is unncecessary. It introduces issues when user reads from both TTYs simultaneously.
Signed-off-by Karol Kolacinski <[email protected]>
--- .../device_drivers/ethernet/intel/ice.rst | 4 +- drivers/net/ethernet/intel/ice/ice.h | 4 +- drivers/net/ethernet/intel/ice/ice_gnss.c | 67 +++++++------------ drivers/net/ethernet/intel/ice/ice_gnss.h | 4 -- 4 files changed, 28 insertions(+), 51 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 -42
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