From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 79C7ECA0FE0 for ; Thu, 31 Aug 2023 22:52:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PVifrnmLCdyZwyUkiXU+Ca358Bggfi9/f4rHjMu4yc8=; b=DZ6RTHjsiT0Lbf wcH2cLER12iNeOlwF1qmF/NCZDgB+oQpTNbSqhO3m3W57eAfl8lyGxLOtPt3ORW0rF8S0fVEaR4da ymS/wsm5d9FGod9Ara13dszc8nsL8ilVx3eDA5qqVXDwiCYDBYgflQTS+3ysDc9xWXk+zzcFljhwS crEbo+QyrV62FW70ggddjj+oTVa3DY/ZkOPww5gtxzkb05d/mY+pGYY/9YsUJAt4oEn8iloE1bvBN bHiYp1x9U92iFwornQE+EYjTzXXT27MPhlA31lDgUa/MOgFqEoJOdf7vqxqB2Vnmwvj8L9A2N3OL3 3iEBsyEPIm2oHhldGMhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qbqWW-00Fw46-0F; Thu, 31 Aug 2023 22:52:24 +0000 Received: from mgamail.intel.com ([192.55.52.136]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qbqWS-00Fw3O-2x; Thu, 31 Aug 2023 22:52:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1693522340; x=1725058340; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=FuQPMXB2hrMkwbwe+y0VdlVr+7bGItkbctGZUbDvjS4=; b=RvFpKUYSCErTXQ8/HHIubdPB2szTX1TcjOO/RPQeVkRkcobQKyReBMCG kU0hlGjvq0Tjo0IjDBujg8e9ghibIpp6UduwezXmBVLzX4fSCxQl38d9W yECg1zgvW85lpy+f/0SxVBF8zaxGLan2gyITXF4o6iNZrhSoxuitLZ438 bkUwYTTosnZnafbCzb4Fe304ztKU/kvg708E4CqDSTJmA8NPJrehW8An6 plGEsDyEL1foTDcqzt8oHEcXjmxLKpQjVQ0bqWLEzBp8tMzhQUTiN8/5w FmEUMa/qcZrKdE/uVQyHVdWBb2DQwfba3QwfLy0k7NvF/yYtPmDIw8vKH A==; X-IronPort-AV: E=McAfee;i="6600,9927,10819"; a="355582691" X-IronPort-AV: E=Sophos;i="6.02,218,1688454000"; d="scan'208";a="355582691" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2023 15:52:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10819"; a="854462866" X-IronPort-AV: E=Sophos;i="6.02,218,1688454000"; d="scan'208";a="854462866" Received: from lkp-server01.sh.intel.com (HELO 5d8055a4f6aa) ([10.239.97.150]) by fmsmga002.fm.intel.com with ESMTP; 31 Aug 2023 15:52:11 -0700 Received: from kbuild by 5d8055a4f6aa with local (Exim 4.96) (envelope-from ) id 1qbqWH-0000ct-1M; Thu, 31 Aug 2023 22:52:09 +0000 Date: Fri, 1 Sep 2023 06:51:26 +0800 From: kernel test robot To: Bartosz Golaszewski , Mark Brown , Florian Fainelli , Andy Shevchenko , Linus Walleij , Ray Jui , Scott Branden Cc: oe-kbuild-all@lists.linux.dev, Broadcom internal kernel review list , linux-spi@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski Subject: Re: [RFT PATCH] spi: bcm2835: reduce the abuse of the GPIO API Message-ID: <202309010647.GUOYgT4J-lkp@intel.com> References: <20230831194934.19628-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230831194934.19628-1-brgl@bgdev.pl> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230831_155220_972448_BA82D2B6 X-CRM114-Status: GOOD ( 17.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Bartosz, kernel test robot noticed the following build warnings: [auto build test WARNING on broonie-spi/for-next] [also build test WARNING on linus/master next-20230831] [cannot apply to v6.5] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Bartosz-Golaszewski/= spi-bcm2835-reduce-the-abuse-of-the-GPIO-API/20230901-035139 base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for= -next patch link: https://lore.kernel.org/r/20230831194934.19628-1-brgl%40bgde= v.pl patch subject: [RFT PATCH] spi: bcm2835: reduce the abuse of the GPIO API config: m68k-allyesconfig (https://download.01.org/0day-ci/archive/20230901= /202309010647.GUOYgT4J-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 13.2.0 reproduce (this is a W=3D1 build): (https://download.01.org/0day-ci/archive= /20230901/202309010647.GUOYgT4J-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new versio= n of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202309010647.GUOYgT4J-lkp@i= ntel.com/ All warnings (new ones prefixed by >>): >> drivers/spi/spi-bcm2835.c:146: warning: Function parameter or member 'cs= _gpio' not described in 'bcm2835_spi' vim +146 drivers/spi/spi-bcm2835.c f8043872e79614 Chris Boot 2013-03-11 77 = ff245d90ebed8d Martin Sperl 2019-04-23 78 /* define polling limit= s */ cbd632ea8ee4ae Jason Yan 2020-09-12 79 static unsigned int pol= ling_limit_us =3D 30; ff245d90ebed8d Martin Sperl 2019-04-23 80 module_param(polling_li= mit_us, uint, 0664); ff245d90ebed8d Martin Sperl 2019-04-23 81 MODULE_PARM_DESC(pollin= g_limit_us, ff245d90ebed8d Martin Sperl 2019-04-23 82 "time in us to run a= transfer in polling mode\n"); ff245d90ebed8d Martin Sperl 2019-04-23 83 = acf0f856959937 Lukas Wunner 2018-11-08 84 /** acf0f856959937 Lukas Wunner 2018-11-08 85 * struct bcm2835_spi -= BCM2835 SPI controller acf0f856959937 Lukas Wunner 2018-11-08 86 * @regs: base address = of register map acf0f856959937 Lukas Wunner 2018-11-08 87 * @clk: core clock, di= vided to calculate serial clock c45c1e82bba130 Alexandru Tachici 2021-07-17 88 * @clk_hz: core clock = cached speed acf0f856959937 Lukas Wunner 2018-11-08 89 * @irq: interrupt, sig= nals TX FIFO empty or RX FIFO =BE full 3bd7f6589f67f0 Lukas Wunner 2018-11-08 90 * @tfr: SPI transfer c= urrently processed afe7e36360f4c9 Robin Murphy 2020-06-16 91 * @ctlr: SPI controlle= r reverse lookup acf0f856959937 Lukas Wunner 2018-11-08 92 * @tx_buf: pointer whe= nce next transmitted byte is read acf0f856959937 Lukas Wunner 2018-11-08 93 * @rx_buf: pointer whe= re next received byte is written acf0f856959937 Lukas Wunner 2018-11-08 94 * @tx_len: remaining b= ytes to transmit acf0f856959937 Lukas Wunner 2018-11-08 95 * @rx_len: remaining b= ytes to receive 3bd7f6589f67f0 Lukas Wunner 2018-11-08 96 * @tx_prologue: bytes = transmitted without DMA if first TX sglist entry's 3bd7f6589f67f0 Lukas Wunner 2018-11-08 97 * length is not a mult= iple of 4 (to overcome hardware limitation) 3bd7f6589f67f0 Lukas Wunner 2018-11-08 98 * @rx_prologue: bytes = received without DMA if first RX sglist entry's 3bd7f6589f67f0 Lukas Wunner 2018-11-08 99 * length is not a mult= iple of 4 (to overcome hardware limitation) 3bd7f6589f67f0 Lukas Wunner 2018-11-08 100 * @tx_spillover: wheth= er @tx_prologue spills over to second TX sglist entry 154f7da56f1ecb Martin Sperl 2019-04-23 101 * @debugfs_dir: the de= bugfs directory - neede to remove debugfs when 154f7da56f1ecb Martin Sperl 2019-04-23 102 * unloading the m= odule 154f7da56f1ecb Martin Sperl 2019-04-23 103 * @count_transfer_poll= ing: count of how often polling mode is used 154f7da56f1ecb Martin Sperl 2019-04-23 104 * @count_transfer_irq:= count of how often interrupt mode is used 154f7da56f1ecb Martin Sperl 2019-04-23 105 * @count_transfer_irq_= after_polling: count of how often we fall back to 154f7da56f1ecb Martin Sperl 2019-04-23 106 * interrupt mode = after starting in polling mode. 154f7da56f1ecb Martin Sperl 2019-04-23 107 * These are count= ed as well in @count_transfer_polling and 154f7da56f1ecb Martin Sperl 2019-04-23 108 * @count_transfer= _irq 154f7da56f1ecb Martin Sperl 2019-04-23 109 * @count_transfer_dma:= count how often dma mode is used 00be843bc1c3c7 Yang Yingliang 2023-07-28 110 * @target: SPI target = currently selected 8259bf667a0f9e Lukas Wunner 2019-09-11 111 * (used by bcm2835_spi= _dma_tx_done() to write @clear_rx_cs) 8259bf667a0f9e Lukas Wunner 2019-09-11 112 * @tx_dma_active: whet= her a TX DMA descriptor is in progress 8259bf667a0f9e Lukas Wunner 2019-09-11 113 * @rx_dma_active: whet= her a RX DMA descriptor is in progress 8259bf667a0f9e Lukas Wunner 2019-09-11 114 * (used by bcm2835_spi= _dma_tx_done() to handle a race) 2b8279aec1829d Lukas Wunner 2019-09-11 115 * @fill_tx_desc: preal= located TX DMA descriptor used for RX-only transfers 2b8279aec1829d Lukas Wunner 2019-09-11 116 * (cyclically copies f= rom zero page to TX FIFO) 2b8279aec1829d Lukas Wunner 2019-09-11 117 * @fill_tx_addr: bus a= ddress of zero page acf0f856959937 Lukas Wunner 2018-11-08 118 */ f8043872e79614 Chris Boot 2013-03-11 119 struct bcm2835_spi { f8043872e79614 Chris Boot 2013-03-11 120 void __iomem *regs; f8043872e79614 Chris Boot 2013-03-11 121 struct clk *clk; 1098696c0d4d2d Bartosz Golaszewski 2023-08-31 122 struct gpio_desc *cs_g= pio; c45c1e82bba130 Alexandru Tachici 2021-07-17 123 unsigned long clk_hz; f8043872e79614 Chris Boot 2013-03-11 124 int irq; 3bd7f6589f67f0 Lukas Wunner 2018-11-08 125 struct spi_transfer *t= fr; afe7e36360f4c9 Robin Murphy 2020-06-16 126 struct spi_controller = *ctlr; f8043872e79614 Chris Boot 2013-03-11 127 const u8 *tx_buf; f8043872e79614 Chris Boot 2013-03-11 128 u8 *rx_buf; e34ff011c70e5f Martin Sperl 2015-03-26 129 int tx_len; e34ff011c70e5f Martin Sperl 2015-03-26 130 int rx_len; 3bd7f6589f67f0 Lukas Wunner 2018-11-08 131 int tx_prologue; 3bd7f6589f67f0 Lukas Wunner 2018-11-08 132 int rx_prologue; b31a9299bca66c Lukas Wunner 2018-11-29 133 unsigned int tx_spillo= ver; 154f7da56f1ecb Martin Sperl 2019-04-23 134 = 154f7da56f1ecb Martin Sperl 2019-04-23 135 struct dentry *debugfs= _dir; 154f7da56f1ecb Martin Sperl 2019-04-23 136 u64 count_transfer_pol= ling; 154f7da56f1ecb Martin Sperl 2019-04-23 137 u64 count_transfer_irq; 154f7da56f1ecb Martin Sperl 2019-04-23 138 u64 count_transfer_irq= _after_polling; 154f7da56f1ecb Martin Sperl 2019-04-23 139 u64 count_transfer_dma; 8259bf667a0f9e Lukas Wunner 2019-09-11 140 = 00be843bc1c3c7 Yang Yingliang 2023-07-28 141 struct bcm2835_spidev = *target; 8259bf667a0f9e Lukas Wunner 2019-09-11 142 unsigned int tx_dma_ac= tive; 8259bf667a0f9e Lukas Wunner 2019-09-11 143 unsigned int rx_dma_ac= tive; 2b8279aec1829d Lukas Wunner 2019-09-11 144 struct dma_async_tx_de= scriptor *fill_tx_desc; 2b8279aec1829d Lukas Wunner 2019-09-11 145 dma_addr_t fill_tx_add= r; ec679bda639fe8 Lukas Wunner 2021-05-27 @146 }; ec679bda639fe8 Lukas Wunner 2021-05-27 147 = -- = 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel