devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Robert Marko <robert.marko@sartura.hr>,
	agross@kernel.org, bjorn.andersson@linaro.org,
	robh+dt@kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org,
	andrew@lunn.ch
Cc: kbuild-all@lists.01.org
Subject: Re: [PATCH v2 net-next 3/4] net: phy: Add Qualcomm QCA807x driver
Date: Thu, 11 Feb 2021 07:03:11 +0800	[thread overview]
Message-ID: <202102110610.7TSCWnF3-lkp@intel.com> (raw)
In-Reply-To: <20210210125523.2146352-4-robert.marko@sartura.hr>

[-- Attachment #1: Type: text/plain, Size: 5034 bytes --]

Hi Robert,

I love your patch! Yet something to improve:

[auto build test ERROR on net-next/master]

url:    https://github.com/0day-ci/linux/commits/Robert-Marko/Add-support-for-Qualcomm-QCA807x-PHYs/20210210-210217
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git de1db4a6ed6241e34cab0e5059d4b56f6bae39b9
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/bf3f094b38fe42c313ba63d67c21b64cffb7f7b1
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Robert-Marko/Add-support-for-Qualcomm-QCA807x-PHYs/20210210-210217
        git checkout bf3f094b38fe42c313ba63d67c21b64cffb7f7b1
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/net/phy/qca807x.c: In function 'qca807x_read_copper_status':
>> drivers/net/phy/qca807x.c:404:12: error: 'struct phy_device' has no member named 'port'
     404 |  if (phydev->port != PORT_TP)
         |            ^~
   drivers/net/phy/qca807x.c:405:9: error: 'struct phy_device' has no member named 'port'
     405 |   phydev->port = PORT_TP;
         |         ^~
   drivers/net/phy/qca807x.c: In function 'qca807x_read_fiber_status':
   drivers/net/phy/qca807x.c:494:12: error: 'struct phy_device' has no member named 'port'
     494 |  if (phydev->port != PORT_FIBRE)
         |            ^~
   drivers/net/phy/qca807x.c:495:9: error: 'struct phy_device' has no member named 'port'
     495 |   phydev->port = PORT_FIBRE;
         |         ^~


vim +404 drivers/net/phy/qca807x.c

   399	
   400	static int qca807x_read_copper_status(struct phy_device *phydev, bool combo_port)
   401	{
   402		int ss, err, page, old_link = phydev->link;
   403	
 > 404		if (phydev->port != PORT_TP)
   405			phydev->port = PORT_TP;
   406	
   407		/* Only combo port has dual pages */
   408		if (combo_port) {
   409			/* Check whether copper page is set and set if needed */
   410			page = phy_read(phydev, QCA807X_CHIP_CONFIGURATION);
   411			if (!(page & QCA807X_BT_BX_REG_SEL)) {
   412				page |= QCA807X_BT_BX_REG_SEL;
   413				phy_write(phydev, QCA807X_CHIP_CONFIGURATION, page);
   414			}
   415		}
   416	
   417		/* Update the link, but return if there was an error */
   418		err = genphy_update_link(phydev);
   419		if (err)
   420			return err;
   421	
   422		/* why bother the PHY if nothing can have changed */
   423		if (phydev->autoneg == AUTONEG_ENABLE && old_link && phydev->link)
   424			return 0;
   425	
   426		phydev->speed = SPEED_UNKNOWN;
   427		phydev->duplex = DUPLEX_UNKNOWN;
   428		phydev->pause = 0;
   429		phydev->asym_pause = 0;
   430	
   431		err = genphy_read_lpa(phydev);
   432		if (err < 0)
   433			return err;
   434	
   435		/* Read the QCA807x PHY-Specific Status register copper page,
   436		 * which indicates the speed and duplex that the PHY is actually
   437		 * using, irrespective of whether we are in autoneg mode or not.
   438		 */
   439		ss = phy_read(phydev, QCA807X_PHY_SPECIFIC_STATUS);
   440		if (ss < 0)
   441			return ss;
   442	
   443		if (ss & QCA807X_SS_SPEED_AND_DUPLEX_RESOLVED) {
   444			int sfc;
   445	
   446			sfc = phy_read(phydev, QCA807X_FUNCTION_CONTROL);
   447			if (sfc < 0)
   448				return sfc;
   449	
   450			switch (FIELD_GET(QCA807X_SS_SPEED_MASK, ss)) {
   451			case QCA807X_SS_SPEED_10:
   452				phydev->speed = SPEED_10;
   453				break;
   454			case QCA807X_SS_SPEED_100:
   455				phydev->speed = SPEED_100;
   456				break;
   457			case QCA807X_SS_SPEED_1000:
   458				phydev->speed = SPEED_1000;
   459				break;
   460			}
   461			if (ss & QCA807X_SS_DUPLEX)
   462				phydev->duplex = DUPLEX_FULL;
   463			else
   464				phydev->duplex = DUPLEX_HALF;
   465	
   466			if (ss & QCA807X_SS_MDIX)
   467				phydev->mdix = ETH_TP_MDI_X;
   468			else
   469				phydev->mdix = ETH_TP_MDI;
   470	
   471			switch (FIELD_GET(QCA807X_FC_MDI_CROSSOVER_MODE_MASK, sfc)) {
   472			case QCA807X_FC_MDI_CROSSOVER_MANUAL_MDI:
   473				phydev->mdix_ctrl = ETH_TP_MDI;
   474				break;
   475			case QCA807X_FC_MDI_CROSSOVER_MANUAL_MDIX:
   476				phydev->mdix_ctrl = ETH_TP_MDI_X;
   477				break;
   478			case QCA807X_FC_MDI_CROSSOVER_AUTO:
   479				phydev->mdix_ctrl = ETH_TP_MDI_AUTO;
   480				break;
   481			}
   482		}
   483	
   484		if (phydev->autoneg == AUTONEG_ENABLE && phydev->autoneg_complete)
   485			phy_resolve_aneg_pause(phydev);
   486	
   487		return 0;
   488	}
   489	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 76556 bytes --]

  parent reply	other threads:[~2021-02-10 23:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-10 12:55 [PATCH v2 net-next 0/4] Add support for Qualcomm QCA807x PHYs Robert Marko
2021-02-10 12:55 ` [PATCH v2 net-next 1/4] dt-bindings: net: Add QCA807x PHY Robert Marko
2021-02-11  0:25   ` Andrew Lunn
2021-02-10 12:55 ` [PATCH v2 net-next 2/4] dt-bindings: net: Add bindings for Qualcomm QCA807x Robert Marko
2021-02-10 22:50   ` Rob Herring
2021-02-10 12:55 ` [PATCH v2 net-next 3/4] net: phy: Add Qualcomm QCA807x driver Robert Marko
2021-02-10 14:00   ` Heiner Kallweit
2021-02-10 23:03   ` kernel test robot [this message]
2021-02-11  0:05   ` Andrew Lunn
2021-02-11  0:20   ` Andrew Lunn
2021-02-10 12:55 ` [PATCH v2 net-next 4/4] MAINTAINERS: Add entry for Qualcomm QCA807x PHY driver Robert Marko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202102110610.7TSCWnF3-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=agross@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=bjorn.andersson@linaro.org \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=kuba@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=robert.marko@sartura.hr \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).