Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp287602rdf; Tue, 21 Nov 2023 02:49:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGSJdAqFJPPxBoBHiopy/jnBWlTbbZQ2wBlCMwqi6YJGik03qK3y8BT8aNvmJd36k2LFAKb X-Received: by 2002:a05:6a20:4a23:b0:187:dadd:7e9d with SMTP id fr35-20020a056a204a2300b00187dadd7e9dmr7171616pzb.10.1700563772640; Tue, 21 Nov 2023 02:49:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700563772; cv=none; d=google.com; s=arc-20160816; b=J/mKxSzn5TrTChz370H0AZzCJ8+sRmJ4C4R7ZCLpvsKGha9ixVZFjmtZwio5QBOsIR w8lmFgT3hADoOk0Z+OURwf7LvRlIawC5OHIwAhOxa0O7keJBCbgiryxuaphgGPorCXhr bPVBIkT4CgtnMPgKKs/8QeIrMlWKI4MEDug73lEQqvtPU0CUDrHw0oDy3h84vG4UJgtc Thlnyq2xwv2QwNbjILuhb/Tq3JiHzFz6hj3DvXD6QUKALJangDtD05WpCMbixRwDnSK9 hBYtNXCgGpQRhYLrqUUoKb4PH2XJAZ/3w1Dfy5KuBzxhhj5A7eEjYQX79Dhbuqq41DLU OA7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:date:from :dkim-signature; bh=vm1mzb+/0cWoJA6/opr6AD2njrHp+x6yQgd44ScRa7Q=; fh=nyUs4i48QfYfnpR1A38kMumOy5chYWysjKgCzinv0sc=; b=R0loH5citvPWXwlHHJHgQNx84/UcxWMzMmyO8o9+r5RlqP482A8JJ9ZG1VAUKXObU8 y+E5nw4dwyufaw1Zoap5uWa9kYTChtp234giIdnKnWOXTDPQr5rJSTlcsnsOr3nWEAUz pHdgC+uqAjkNkIZ/ZiEYIRVirxkjzKA90dMDr6ZqP5smUNO8sjp14NHl2RKF9Vysl4WU uNK6pa3CAUi6jmzZiZccWPnibgSEMmPwhgCItes1VzXN8R8dMR3G3yzxhzx71lmQeifv fjwzOsLbAb/+zCDlF0YP+NPKsvFCWwJTfZSKQTJgo4CwZwcUk6aw2xyt4MCV5oCn7RcC zjvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=maJE4LgW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id oa17-20020a17090b1bd100b0027d1b42875bsi10623716pjb.64.2023.11.21.02.49.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:49:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=maJE4LgW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9658580557F8; Tue, 21 Nov 2023 02:49:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232300AbjKUKtU (ORCPT + 99 others); Tue, 21 Nov 2023 05:49:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjKUKtS (ORCPT ); Tue, 21 Nov 2023 05:49:18 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61D60CA for ; Tue, 21 Nov 2023 02:49:14 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4084de32db5so27629835e9.0 for ; Tue, 21 Nov 2023 02:49:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700563753; x=1701168553; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:message-id:subject:cc:to:date:from:from:to:cc:subject :date:message-id:reply-to; bh=vm1mzb+/0cWoJA6/opr6AD2njrHp+x6yQgd44ScRa7Q=; b=maJE4LgWjFL+KeiRZ6vg9pOgRWKwPxl/xNcpc2iCEg7vc67AdD6ybldaBDT5xnQp/N K3USUQo4VRlk/EzUAERX95T+61PPls9WF7+RVkwPG77lFcAhJ6xvHibwn174KVsuQsDw 0lezjF1uTaSzfy2ZsAuyDHogFrYWRN+rrm7JueF7R5vIIYmLuYmCETFZKFTdWo3VtlsB rKC7dDwGwc7HuaOJ+It+GL395fqn87R/7MniyHu2ww5EoBnXpUTsquLUkDtjScUS9I59 7exr+S49aEDUFYPJblbnJJMePEW7RR7rXNexnng4X3fGsLbQjRjhhzuGDUfPJJlHY9VK bCEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700563753; x=1701168553; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:message-id:subject:cc:to:date:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=vm1mzb+/0cWoJA6/opr6AD2njrHp+x6yQgd44ScRa7Q=; b=do7EhlWVK7xA1621GgMRrE7/Dnqw148DTKsXKXjbY5c2yshO777MHa26u4f+AKGiIR 2+t/GbYp2idsjIKhbrmTdjNYY4+W4N+Oz3aUwqEJsXepMqRwq1JQ/cStd24ZLiHvqzqv 3zU1EQXylU3pbckyVVZddzlwFI6Bl7P6PU7fblV2VccYAWddskEme6pAFVbbqJT2OTww /Sxtp/m5Ir0eeTFrXRLOqSdY7qrni4KJlCTqJb9S7frf1pejyLiJPH0imtlD+fGC+kga D06Q7cDzrMuBQLcuYEevZRViRESss+tEwNk+yv4u23rc4MHhKw6tjfuilBySJx2PMs6f QcPQ== X-Gm-Message-State: AOJu0YznNiM7prmej1ZRqI5nKnsX4TewcScB/yYEBqtnz/U4OsCpPmDD dLW0+tgl47wmjOYSbwFA1XfcDA== X-Received: by 2002:a05:600c:3588:b0:40b:29f3:af02 with SMTP id p8-20020a05600c358800b0040b29f3af02mr1059939wmq.27.1700563752661; Tue, 21 Nov 2023 02:49:12 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id je12-20020a05600c1f8c00b0040839fcb217sm16689767wmb.8.2023.11.21.02.49.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:49:12 -0800 (PST) From: Dan Carpenter X-Google-Original-From: Dan Carpenter Date: Tue, 21 Nov 2023 05:49:09 -0500 To: oe-kbuild@lists.linux.dev, Rasmus Villemoes , Greg Kroah-Hartman , Jiri Slaby Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, devicetree@vger.kernel.org, Andy Shevchenko , Lukas Wunner , Rasmus Villemoes , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: [PATCH 2/2] serial: core: implement support for rs485-mux-gpios Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231120151056.148450-3-linux@rasmusvillemoes.dk> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 21 Nov 2023 02:49:29 -0800 (PST) Hi Rasmus, kernel test robot noticed the following build warnings: https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Rasmus-Villemoes/dt-bindings-serial-rs485-add-rs485-mux-gpios-binding/20231120-231551 base: v6.7-rc2 patch link: https://lore.kernel.org/r/20231120151056.148450-3-linux%40rasmusvillemoes.dk patch subject: [PATCH 2/2] serial: core: implement support for rs485-mux-gpios config: hexagon-randconfig-r071-20231121 (https://download.01.org/0day-ci/archive/20231121/202311211751.MgZLovko-lkp@intel.com/config) compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) reproduce: (https://download.01.org/0day-ci/archive/20231121/202311211751.MgZLovko-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 | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202311211751.MgZLovko-lkp@intel.com/ New smatch warnings: drivers/tty/serial/serial_core.c:3651 uart_get_rs485_mode() warn: passing zero to 'PTR_ERR' Old smatch warnings: drivers/tty/serial/serial_core.c:2996 iomem_base_show() warn: argument 3 to %lX specifier is cast from pointer vim +/PTR_ERR +3651 drivers/tty/serial/serial_core.c d58a2df3d8877b Lukas Wunner 2020-05-18 3629 /* d58a2df3d8877b Lukas Wunner 2020-05-18 3630 * Disabling termination by default is the safe choice: Else if many d58a2df3d8877b Lukas Wunner 2020-05-18 3631 * bus participants enable it, no communication is possible at all. d58a2df3d8877b Lukas Wunner 2020-05-18 3632 * Works fine for short cables and users may enable for longer cables. d58a2df3d8877b Lukas Wunner 2020-05-18 3633 */ 7cda0b9eb6eb9e Andy Shevchenko 2023-10-03 3634 desc = devm_gpiod_get_optional(dev, "rs485-term", GPIOD_OUT_LOW); 7cda0b9eb6eb9e Andy Shevchenko 2023-10-03 3635 if (IS_ERR(desc)) 7cda0b9eb6eb9e Andy Shevchenko 2023-10-03 3636 return dev_err_probe(dev, PTR_ERR(desc), "Cannot get rs485-term-gpios\n"); 7cda0b9eb6eb9e Andy Shevchenko 2023-10-03 3637 port->rs485_term_gpio = desc; 8bec874f84d826 Ilpo J?rvinen 2022-07-04 3638 if (port->rs485_term_gpio) 8bec874f84d826 Ilpo J?rvinen 2022-07-04 3639 port->rs485_supported.flags |= SER_RS485_TERMINATE_BUS; d58a2df3d8877b Lukas Wunner 2020-05-18 3640 7cda0b9eb6eb9e Andy Shevchenko 2023-10-03 3641 dflags = (rs485conf->flags & SER_RS485_RX_DURING_TX) ? 163f080eb717d2 Christoph Niedermaier 2022-12-02 3642 GPIOD_OUT_HIGH : GPIOD_OUT_LOW; 7cda0b9eb6eb9e Andy Shevchenko 2023-10-03 3643 desc = devm_gpiod_get_optional(dev, "rs485-rx-during-tx", dflags); 7cda0b9eb6eb9e Andy Shevchenko 2023-10-03 3644 if (IS_ERR(desc)) 7cda0b9eb6eb9e Andy Shevchenko 2023-10-03 3645 return dev_err_probe(dev, PTR_ERR(desc), "Cannot get rs485-rx-during-tx-gpios\n"); 7cda0b9eb6eb9e Andy Shevchenko 2023-10-03 3646 port->rs485_rx_during_tx_gpio = desc; 163f080eb717d2 Christoph Niedermaier 2022-12-02 3647 da0ccd117da1e4 Rasmus Villemoes 2023-11-20 3648 dflags = (rs485conf->flags & SER_RS485_ENABLED) ? GPIOD_OUT_HIGH : GPIOD_OUT_LOW; da0ccd117da1e4 Rasmus Villemoes 2023-11-20 3649 desc = devm_gpiod_get_optional(dev, "rs485-mux", dflags); da0ccd117da1e4 Rasmus Villemoes 2023-11-20 3650 if (IS_ERR(desc)) da0ccd117da1e4 Rasmus Villemoes 2023-11-20 @3651 return dev_err_probe(dev, PTR_ERR(port->rs485_mux_gpio), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Should be PTR_ERR(desc). da0ccd117da1e4 Rasmus Villemoes 2023-11-20 3652 "Cannot get rs485-mux-gpios\n"); da0ccd117da1e4 Rasmus Villemoes 2023-11-20 3653 port->rs485_mux_gpio = desc; da0ccd117da1e4 Rasmus Villemoes 2023-11-20 3654 c150c0f362c1e5 Lukas Wunner 2020-05-12 3655 return 0; ef838a81dd4de1 Uwe Kleine-K?nig 2017-09-13 3656 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki