public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Lino Sanfilippo <l.sanfilippo@kunbus.com>,
	gregkh@linuxfoundation.org, jirislaby@kernel.org,
	ilpo.jarvinen@linux.intel.com
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	u.kleine-koenig@pengutronix.de, shawnguo@kernel.org,
	s.hauer@pengutronix.de, mcoquelin.stm32@gmail.com,
	alexandre.torgue@foss.st.com, cniedermaier@dh-electronics.com,
	hugo@hugovil.com, linux-kernel@vger.kernel.org,
	linux-serial@vger.kernel.org, LinoSanfilippo@gmx.de,
	lukas@wunner.de, p.rosenberger@kunbus.com,
	Lino Sanfilippo <l.sanfilippo@kunbus.com>,
	stable@vger.kernel.org
Subject: Re: [PATCH v6 6/7] serial: omap: do not override settings for RS485 support
Date: Tue, 26 Dec 2023 07:30:55 +0800	[thread overview]
Message-ID: <202312260719.mI12i497-lkp@intel.com> (raw)
In-Reply-To: <20231225113524.8800-7-l.sanfilippo@kunbus.com>

Hi Lino,

kernel test robot noticed the following build errors:

[auto build test ERROR on ceb6a6f023fd3e8b07761ed900352ef574010bcb]

url:    https://github.com/intel-lab-lkp/linux/commits/Lino-Sanfilippo/serial-Do-not-hold-the-port-lock-when-setting-rx-during-tx-GPIO/20231225-193833
base:   ceb6a6f023fd3e8b07761ed900352ef574010bcb
patch link:    https://lore.kernel.org/r/20231225113524.8800-7-l.sanfilippo%40kunbus.com
patch subject: [PATCH v6 6/7] serial: omap: do not override settings for RS485 support
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20231226/202312260719.mI12i497-lkp@intel.com/config)
compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project d3ef86708241a3bee902615c190dead1638c4e09)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231226/202312260719.mI12i497-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312260719.mI12i497-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/tty/serial/omap-serial.c:1501:29: error: use of undeclared identifier 'serial_omap_rs485_supported'
    1501 |         up->port.rs485_supported = serial_omap_rs485_supported;
         |                                    ^
   1 error generated.


vim +/serial_omap_rs485_supported +1501 drivers/tty/serial/omap-serial.c

  1485	
  1486	static int serial_omap_probe_rs485(struct uart_omap_port *up,
  1487					   struct device *dev)
  1488	{
  1489		struct serial_rs485 *rs485conf = &up->port.rs485;
  1490		struct device_node *np = dev->of_node;
  1491		enum gpiod_flags gflags;
  1492		int ret;
  1493	
  1494		rs485conf->flags = 0;
  1495		up->rts_gpiod = NULL;
  1496	
  1497		if (!np)
  1498			return 0;
  1499	
  1500		up->port.rs485_config = serial_omap_config_rs485;
> 1501		up->port.rs485_supported = serial_omap_rs485_supported;
  1502	
  1503		ret = uart_get_rs485_mode(&up->port);
  1504		if (ret)
  1505			return ret;
  1506	
  1507		if (of_property_read_bool(np, "rs485-rts-active-high")) {
  1508			rs485conf->flags |= SER_RS485_RTS_ON_SEND;
  1509			rs485conf->flags &= ~SER_RS485_RTS_AFTER_SEND;
  1510		} else {
  1511			rs485conf->flags &= ~SER_RS485_RTS_ON_SEND;
  1512			rs485conf->flags |= SER_RS485_RTS_AFTER_SEND;
  1513		}
  1514	
  1515		/* check for tx enable gpio */
  1516		gflags = rs485conf->flags & SER_RS485_RTS_AFTER_SEND ?
  1517			GPIOD_OUT_HIGH : GPIOD_OUT_LOW;
  1518		up->rts_gpiod = devm_gpiod_get_optional(dev, "rts", gflags);
  1519		if (IS_ERR(up->rts_gpiod)) {
  1520			ret = PTR_ERR(up->rts_gpiod);
  1521		        if (ret == -EPROBE_DEFER)
  1522				return ret;
  1523	
  1524			up->rts_gpiod = NULL;
  1525			up->port.rs485_supported = (const struct serial_rs485) { };
  1526			if (rs485conf->flags & SER_RS485_ENABLED) {
  1527				dev_err(dev, "disabling RS-485 (rts-gpio missing in device tree)\n");
  1528				memset(rs485conf, 0, sizeof(*rs485conf));
  1529			}
  1530		} else {
  1531			gpiod_set_consumer_name(up->rts_gpiod, "omap-serial");
  1532		}
  1533	
  1534		return 0;
  1535	}
  1536	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  parent reply	other threads:[~2023-12-25 23:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-25 11:35 [PATCH v6 0/7] Fixes and improvements for RS485 Lino Sanfilippo
2023-12-25 11:35 ` [PATCH v6 1/7] serial: Do not hold the port lock when setting rx-during-tx GPIO Lino Sanfilippo
2023-12-25 12:31   ` Maarten Brock
2023-12-29 15:03     ` Lino Sanfilippo
2024-01-02 15:53       ` Maarten Brock
2023-12-25 11:35 ` [PATCH v6 2/7] serial: core: set missing supported flag for RX during TX GPIO Lino Sanfilippo
2023-12-25 11:35 ` [PATCH v6 3/7] serial: core: fix sanitizing check for RTS settings Lino Sanfilippo
2023-12-25 11:35 ` [PATCH v6 4/7] serial: core: make sure RS485 cannot be enabled when it is not supported Lino Sanfilippo
2023-12-25 11:35 ` [PATCH v6 5/7] serial: core, imx: do not set RS485 enabled if " Lino Sanfilippo
2023-12-25 11:35 ` [PATCH v6 6/7] serial: omap: do not override settings for RS485 support Lino Sanfilippo
2023-12-25 22:29   ` kernel test robot
2023-12-25 23:30   ` kernel test robot [this message]
2023-12-25 11:35 ` [PATCH v6 7/7] serial: 8250_exar: Set missing rs485_supported flag Lino Sanfilippo

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=202312260719.mI12i497-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=LinoSanfilippo@gmx.de \
    --cc=alexandre.torgue@foss.st.com \
    --cc=cniedermaier@dh-electronics.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hugo@hugovil.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jirislaby@kernel.org \
    --cc=l.sanfilippo@kunbus.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=lukas@wunner.de \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=p.rosenberger@kunbus.com \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=u.kleine-koenig@pengutronix.de \
    /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