From patchwork Tue Jun 21 06:12:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Jander X-Patchwork-Id: 12888699 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E158CCA473 for ; Tue, 21 Jun 2022 06:12:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345615AbiFUGMt (ORCPT ); Tue, 21 Jun 2022 02:12:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345618AbiFUGMp (ORCPT ); Tue, 21 Jun 2022 02:12:45 -0400 Received: from smtp16.bhosted.nl (smtp16.bhosted.nl [IPv6:2a02:9e0:8000::27]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 055FD186E3 for ; Mon, 20 Jun 2022 23:12:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonic.nl; s=202111; h=content-transfer-encoding:mime-version:references:in-reply-to:message-id:date: subject:cc:to:from:from; bh=h7h2OdTZM5QjhOhXH4N7Lr5PvnITA26Ut5j2+5THjOQ=; b=qhozYrpNUQGmeUj1Z/3bRaYxiAfNsHxjH87bcRCsDciiZtMALjuokRwW8ATpGA86aiOIZd3YDiZPe KPpVktz1Ki0jnYVM6GEDWEZ01Rtl3QJRxxafZ4iylPEe6CITK3I61DkdmE6ffvqyZ5GmhEGJG8Ep93 I25Hj5OtHtmTXnTw/TfIUAgjIY4BH1CJHWkxqeYzRdA9Tuy9jFj6mlmEAAdShpWDfkCYwaUn7j/VWN nELLRpOKgqKvazQrXT7EOPvZ3lOd7rEEO/F2bjuoNm3rmn5ZbcHuC1dvfPHE69EmWAlubx6LtWfXhz dDohCcwKeHaBkfYl844oNZiw3sUgEzg== X-MSG-ID: 267befbe-f129-11ec-9051-0050569d2c73 From: David Jander To: Mark Brown Cc: linux-spi@vger.kernel.org, Marc Kleine-Budde , Andrew Lunn , David Jander Subject: [PATCH v3 06/11] spi: Remove check for idling in __spi_pump_messages() Date: Tue, 21 Jun 2022 08:12:29 +0200 Message-Id: <20220621061234.3626638-7-david@protonic.nl> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220621061234.3626638-1-david@protonic.nl> References: <20220621061234.3626638-1-david@protonic.nl> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org Since the whole idling transition is locked by the io_mutex now, there is no need to check this flag anymore. Signed-off-by: David Jander --- drivers/spi/spi.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index d8d2b7ac78f2..71b767a9ad77 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -1653,13 +1653,6 @@ static void __spi_pump_messages(struct spi_controller *ctlr, bool in_kthread) if (ctlr->cur_msg) goto out_unlock; - /* If another context is idling the device then defer */ - if (ctlr->idling) { - kthread_queue_work(ctlr->kworker, &ctlr->pump_messages); - spin_unlock_irqrestore(&ctlr->queue_lock, flags); - goto out_unlock; - } - /* Check if the queue is idle */ if (list_empty(&ctlr->queue) || !ctlr->running) { if (!ctlr->busy)