From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nguyen, Anthony L Date: Mon, 13 Dec 2021 20:14:34 +0000 Subject: [Intel-wired-lan] [PATCH v3 intel-next] ice: add TTY for GNSS module for E810T device In-Reply-To: <20211213105234.397045-1-karol.kolacinski@intel.com> References: <20211213105234.397045-1-karol.kolacinski@intel.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: On Mon, 2021-12-13 at 11:52 +0100, Karol Kolacinski wrote: > Add a new ice_gnss.c file for holding the basic GNSS module > functions. > If the device supports GNSS module, call the new ice_gnss_init and > ice_gnss_release functions where appropriate. > > Implement basic functionality for reading the data from GNSS module > using TTY device. > > Add I2C read AQ command. It is now required for controlling the > external > physical connectors via external I2C port expander on E810-T > adapters. > > Future changes will introduce write functionality. > > Signed-off-by: Karol Kolacinski > Signed-off-by: Sudhansu Sekhar Mishra > --- > V1 -> V2: Added CONFIG_TTY dependency > V2 -> V3: Removed unnecessary & on pf->hw pointer check > +???????pf = gnss->back; > +???????if (!pf || !pf->hw || !gnss->tty || !gnss->tty->port) { > +???????????????err = -EFAULT; > +???????????????goto exit; > +???????} ../drivers/net/ethernet/intel/ice/ice_gnss.c: In function ice_gnss_read: ../drivers/net/ethernet/intel/ice/ice_gnss.c:30:13: error: wrong type argument to unary exclamation mark if (!pf || !pf->hw || !gnss->tty || !gnss->tty->port) { ^ I believe Piotr's comment meant the &pf->hw check is not needed at all.