From patchwork Mon Dec 11 12:49:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nam Cao X-Patchwork-Id: 13487184 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 7E17AC10F05 for ; Mon, 11 Dec 2023 12:50:10 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Yy8hBbWOo5y5GcV85SSx4dht2K1ZqadcbNLkKEXpX64=; b=LnBPChde89uAwQ lPAJZwwPrysFRtj81FMD5JhHYo9vd9pHqVj0whNhVB3PwSopum3hgfc0baju5E683l+ts64w18vmz cSJRPrIErK1W1xqAQfzfnJXWxBSb/FDcjYlbIkq87bKYa5t+sCehjf9Fsw43ZsBetuardW2OBp8rD Sc7roJZb1d7YWjWz4vRTjjEJB940PVhJAOt3lkji8ZzbgoIy58PCsNsEegHSJSYVoiJm7lFpysYuB K7/BEPzgocm7oClVw3Oys8VcK85sCuxySwS4DFEWl3Kz95sFgrCJiQiQDAGWegDQYNaQF145hZm59 JAgdMwMhqVKEf9oL09mw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rCfjA-004tES-0y; Mon, 11 Dec 2023 12:49:40 +0000 Received: from galois.linutronix.de ([193.142.43.55]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rCfj2-004tBT-1K for linux-arm-kernel@lists.infradead.org; Mon, 11 Dec 2023 12:49:36 +0000 From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702298965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QZzKwjWTDOK+X7Q3TY/aJqPSWaSZ1XBXSEY0XUeQD/0=; b=1XFw6mvYpdeNplzdWtSzeZwOA3ynoBpM7WEEQXZOxHeokczKH5c6iWlNF1Up6TbIN7FlQS TdTo8Lqk8H2im4WQURr5PW1mVg10ATrC3DO5ZrGJwDOrR5JPBxKIO7LwDzL4o3N1+2FEzO qaH9Qxks5Abxpyp+ck2ICtCRQVUMCE2s7d5FM7RMNeh5uVXQA+zjA1RBIybA95o1QudDqH ngsMSszpQsq8l1J9JleLSI5612kau9EBLhi+cbRhr+L8MFe/4yyfJU0HpKpp7u2lZt6Pzk mrCY+Qr5TdMaBRuKYuY0qYyQE+g/j/eaJmwimjiQb+uoy5Lc6IYAuqepD44wdg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702298965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=QZzKwjWTDOK+X7Q3TY/aJqPSWaSZ1XBXSEY0XUeQD/0=; b=TC0ReHNdWwpUHHTLM6SA8IlCg8XtXt/ob1vCrK2zV1HUGyN5JpVRH664ZO3riyPDpU/5P+ CpTHfkqGtftM6dAA== To: linus.walleij@linaro.org, broonie@kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Nam Cao Subject: [PATCH 1/2] spi: pl022: delete unused cur_gpiod in struct pl022 Date: Mon, 11 Dec 2023 13:49:14 +0100 Message-Id: <7618c9d714aa1c16c7cb06f9d1fb1c074d1d9c65.1702298527.git.namcao@linutronix.de> In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231211_044932_612024_8EDF50CE X-CRM114-Status: UNSURE ( 9.72 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The member cur_gpiod of struct pl022 is not used anywhere. Delete it. Signed-off-by: Nam Cao --- drivers/spi/spi-pl022.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 1e3bd6f3303a..fd21e83cc3a4 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -361,7 +361,6 @@ struct vendor_data { * @dummypage: a dummy page used for driving data on the bus with DMA * @dma_running: indicates whether DMA is in operation * @cur_cs: current chip select index - * @cur_gpiod: current chip select GPIO descriptor */ struct pl022 { struct amba_device *adev; @@ -393,7 +392,6 @@ struct pl022 { bool dma_running; #endif int cur_cs; - struct gpio_desc *cur_gpiod; }; /** @@ -1344,8 +1342,6 @@ static int pl022_transfer_one(struct spi_controller *host, struct spi_device *sp /* Setup the SPI using the per chip configuration */ pl022->cur_chip = spi_get_ctldata(spi); pl022->cur_cs = spi_get_chipselect(spi, 0); - /* This is always available but may be set to -ENOENT */ - pl022->cur_gpiod = spi_get_csgpiod(spi, 0); restore_state(pl022); flush(pl022); From patchwork Mon Dec 11 12:49:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nam Cao X-Patchwork-Id: 13487186 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 C5281C4167B for ; Mon, 11 Dec 2023 12:50:17 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VbvwUEN5hHocjPzGYDgRfjzAugVir7AWW+MGJu55nuM=; b=Lo8liqeNlWRQZt FH+Eer71P4d/wN25cXVjOePl8+aA0QOdk2Etr/mZDBXSHaQxJLINQYyniVf1KbCueWxqvkWyJFybr CIxBc3hPKevHSYQoVy64QKCwsPTD208gkgGGCS9FiOwnwEf8/tVJBgCjEGK0Mhb7RSTTFRtgXF0Hx Mr04jyaLkRVfoe4GinexK3vwnVARejadV8h0nXBJ+8N0hBpDUfzibTNiYjNoJjsjIFUOILyAdts5a /Kz2nTtsxz6xs9w/p4jbaJBITe03W0XnxJKycsMDSSMnAGSLkg3pMMJhgVlvCb3/qAsY7W878q2Hp WVLB7dDmxTrusPzBdv5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rCfjD-004tEi-0p; Mon, 11 Dec 2023 12:49:43 +0000 Received: from galois.linutronix.de ([193.142.43.55]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rCfj2-004tBh-1K for linux-arm-kernel@lists.infradead.org; Mon, 11 Dec 2023 12:49:36 +0000 From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702298966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+3ovit8JRev9mIgnPEoYTIqblldYPcpSv7qLZTfPzw4=; b=4JJ2Qk72dcJdeAaIHuGjup/kSea+/yooYgkZFiT0qzQcBSSLz9+okWoWsNtpQ5p/XSqNF4 EcIkOBZ5m+FV11RvcGy7ew1w0WCdwu1hN7f7r26WWRL/XzntVMOoWLTrkD6wkH9fSuNzcH MhriVyGNZ6LpKZwAIYRa3CqO9hui47wMIhWxMbcnLSR2MDFECU+x86OrgRfpvzsIRhwzhI CwYwzSV8k7a3PcYWb2NNPhdLLCkvRFghJ2frebp2yQp+hnWkIrehoovWF1Jie+DUvOXZkN 3A0M2D64VpPWkroKDJbAohZ/S6NvBHWYmm7Rj3Ipap22V2cqMtHRQ2iMPiIF4w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702298966; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+3ovit8JRev9mIgnPEoYTIqblldYPcpSv7qLZTfPzw4=; b=0iOZd71mxsCF/WKwjF1oAFTITnAJpc2esvPgdpjOBoI3gYWbFnaTE8Sbu7j60dj1EtClZr iwdCa+vhjo9MS6Dw== To: linus.walleij@linaro.org, broonie@kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Nam Cao Subject: [PATCH 2/2] spi: pl022: delete unused next_msg_cs_active in struct pl022 Date: Mon, 11 Dec 2023 13:49:15 +0100 Message-Id: <424fec01a75f6a881edcce189ac68b3408b62f29.1702298527.git.namcao@linutronix.de> In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231211_044932_612024_618946EE X-CRM114-Status: UNSURE ( 8.59 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The member next_msg_cs_active of struct pl022 is not used anywhere. Delete it. Signed-off-by: Nam Cao --- drivers/spi/spi-pl022.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index fd21e83cc3a4..3baf45da01cd 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -341,10 +341,6 @@ struct vendor_data { * @cur_msg: Pointer to current spi_message being processed * @cur_transfer: Pointer to current spi_transfer * @cur_chip: pointer to current clients chip(assigned from controller_state) - * @next_msg_cs_active: the next message in the queue has been examined - * and it was found that it uses the same chip select as the previous - * message, so we left it active after the previous transfer, and it's - * active already. * @tx: current position in TX buffer to be read * @tx_end: end position in TX buffer to be read * @rx: current position in RX buffer to be written @@ -372,7 +368,6 @@ struct pl022 { struct pl022_ssp_controller *host_info; struct spi_transfer *cur_transfer; struct chip_data *cur_chip; - bool next_msg_cs_active; void *tx; void *tx_end; void *rx;