Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp897472pxb; Fri, 22 Apr 2022 13:44:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3rNWf9xM5n6u0hnb86QBSUkmUxbKCt5OP8c9hz7EnXqUDorojN12bolF0h0OSFbYY9ANo X-Received: by 2002:a63:1325:0:b0:39d:8eaa:27f7 with SMTP id i37-20020a631325000000b0039d8eaa27f7mr5450217pgl.297.1650660263981; Fri, 22 Apr 2022 13:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650660263; cv=none; d=google.com; s=arc-20160816; b=YtVezgcnqs2menZ25mzPBMYxrOY+CptBds7Yx7bJ2PSL1ZQBB2heEFUgInTcxCO6G8 KNn6zU3ZcrEZq31+jZIYf0H5j5V4yUCBdHpV+b70oBgNIEY/NAlU4GYpmXkulPl6A5bv EFky7/L8vU2ef+4CpJ/ydFBJkVl5BUfmq9wbqwPHDbfgdparIUUzE2J/zFT92Ej1GFxb IqMCMf3HimK0/Sc+BN5Kl9fSS3/fMV/FWUdZRN6oze9l8k0LEw3/EOfMOsRmG97f+rh1 J3DiHjyPMd7g6aWEjawBGRRNx1ZJ8QcWqK/vleso+gbPNn0Ym83RlzEL1o3RZSkr9gUP aBpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=/Nre80yG3dX3kSQn05Ue/XY8zsmy/wEbfiIp5CM7yac=; b=YQTFwlkeexmsOy0tpZzYo80IDcf6mb1TdSfa4lzZRhvuVkZity3sFkixw2jRjmQ56k wGqgFlguGPt44MCoWWAFIaL0EWSQKExdHeKH3QUKd3BWWoe1w1lPEfQL1dZUWgRrV03P aMSmbAP1mpd5dguG0mb8IEnBBCqro+bsauYWvh4561RMIM5G0dgTTlnqfqjiPI6KOe1A EnjPCXMs7TBE/SqSzq/661dDSuHd62rXu9h0J6rIIGgBG460nUd/i6Ue+StMXfnU2uK7 mS/1NTLz0ZWMzqu6i0kQeAVHfIwJpoo+UurXfaG90D+Egz/s+A02/4zh9z5Nj9AO36iC puxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="TJ/aeHQE"; dkim=neutral (no key) header.i=@suse.cz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q22-20020a656a96000000b003aabe8ebe43si3672728pgu.268.2022.04.22.13.44.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:44:23 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b="TJ/aeHQE"; dkim=neutral (no key) header.i=@suse.cz; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CCA422C66D5; Fri, 22 Apr 2022 12:31:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1388354AbiDUKUh (ORCPT + 99 others); Thu, 21 Apr 2022 06:20:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379764AbiDUKUD (ORCPT ); Thu, 21 Apr 2022 06:20:03 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB3A925C40; Thu, 21 Apr 2022 03:17:11 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id A201921110; Thu, 21 Apr 2022 10:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1650536230; h=from:from:reply-to: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=/Nre80yG3dX3kSQn05Ue/XY8zsmy/wEbfiIp5CM7yac=; b=TJ/aeHQEIzst0dMgWVyDEvZKl/9sw9YXVuYCt8QqePeQOp9t3zw4y+ZemPqnfHX0JeSwLo qG0p04wrGwFk9y6F0HzAdxVKzgVA2fwLJ+m7SzJ/H83v1FB01BWFvMQjpNxERG0dPHv6BU hLUBPEGbD0sA/xuXErAwnV1c3LZlQzs= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1650536230; h=from:from:reply-to: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=/Nre80yG3dX3kSQn05Ue/XY8zsmy/wEbfiIp5CM7yac=; b=3eN1T6Khp94LhXBTUA9ggDKKjg5/dPqrHN0XPr5EiyCaynzS9pjA1tywpAY8AcGd/oTjLm BEoFnS8Af8dY+HBg== Received: from localhost.localdomain (unknown [10.100.208.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 602062C141; Thu, 21 Apr 2022 10:17:10 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , Andy Gross , Bjorn Andersson Subject: [PATCH 5/7] serial: qcom: use check for empty instead of pending Date: Thu, 21 Apr 2022 12:17:06 +0200 Message-Id: <20220421101708.5640-6-jslaby@suse.cz> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220421101708.5640-1-jslaby@suse.cz> References: <20220421101708.5640-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The code wants to know if the circ buffer is empty, so use the proper macro. No functional change intended, just saner function name used for that use case. Cc: Andy Gross Cc: Bjorn Andersson Signed-off-by: Jiri Slaby --- drivers/tty/serial/qcom_geni_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/qcom_geni_serial.c b/drivers/tty/serial/qcom_geni_serial.c index 1543a6028856..f4961022d7d0 100644 --- a/drivers/tty/serial/qcom_geni_serial.c +++ b/drivers/tty/serial/qcom_geni_serial.c @@ -507,7 +507,7 @@ static void qcom_geni_serial_console_write(struct console *co, const char *s, */ qcom_geni_serial_poll_tx_done(uport); - if (uart_circ_chars_pending(&uport->state->xmit)) { + if (!uart_circ_empty(&uport->state->xmit)) { irq_en = readl(uport->membase + SE_GENI_M_IRQ_EN); writel(irq_en | M_TX_FIFO_WATERMARK_EN, uport->membase + SE_GENI_M_IRQ_EN); -- 2.36.0