From patchwork Wed Oct 19 14:55:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Ogness X-Patchwork-Id: 5636 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp378480wrs; Wed, 19 Oct 2022 08:09:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Lq1Pchc/7rMH9t5C2VTK6fy+r3JC53mCtTqn9o6yAJ+CIw+HmFG3KtF12IsbxGhInTuKW X-Received: by 2002:a17:907:868c:b0:78d:f741:7fa7 with SMTP id qa12-20020a170907868c00b0078df7417fa7mr7187588ejc.648.1666192151677; Wed, 19 Oct 2022 08:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666192151; cv=none; d=google.com; s=arc-20160816; b=bQ2kI3wPsNW6Spt20tWJwB0rzqOaG+5CQdzmSEc1shcN25WX8yNn1KPraek9/CdgYu JpZM2omyt1lOW++SLMze/B8oEAA0/dGn3w1l2UaSAtXosfBebEScjSVtIVIJbZHrxGUs fgknXAt/4TDVkREn9/CT5E4Cdl77Y0ur+vDJ3AHnYZv8GNLIeoFXAMZ360/EE9UFmzgM AgpdVEJc3a+sv5gYvK3LRVZb3KyFoVS9d0kZyuYWjASzHkX9SX/a6Z5XR5mjKWzmVD0C WbBDAeq5CGP38KMv+QcllX1f+2D4Xwb90meTbN/cbkZCOsDUtH6r5ASSbGVIM9NSJxd+ wokw== 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:dkim-signature :dkim-signature:from; bh=jjpBzMIZil2dmLUT+irfoeemb7oKmLhPxEY4dlNGawQ=; b=nv4qlCSJlSvWzLvuYfQPr2aKWV1onNyKck0ne+voAI4ncDITglT0CVspE2b4oRy6Xc Smmv+PCxztqIIF/Ea9r++19qTBIz3T6pmt4oPMYfVhEUgP/3Zs1NomkZOQStNtcIE0lJ mbbi7wcaAPSbwTYBcMP1ax9r9fl5fkPQkKQKkpeGDReboMEaLybQ3xKBuiuNNoFsAHoQ ObZtAlQrgCyQ/J8notJtZfTrJ7yxH+RrQDhm2TmMxM1kWkJq7tfojFZk4yR17J+mCf9A JWd67H1aiKJAYmGPlInxmwleNi8Ndq8SIGwt2LHmKqdwBVF5a3hRh5TgtH3tuQpb0JHa Gk+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SRSJfh36; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a39-20020a509eaa000000b0045919a1a07esi12864323edf.126.2022.10.19.08.08.44; Wed, 19 Oct 2022 08:09:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SRSJfh36; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232072AbiJSPGn (ORCPT + 99 others); Wed, 19 Oct 2022 11:06:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231847AbiJSPFk (ORCPT ); Wed, 19 Oct 2022 11:05:40 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C8C334993; Wed, 19 Oct 2022 07:59:17 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1666191370; 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=jjpBzMIZil2dmLUT+irfoeemb7oKmLhPxEY4dlNGawQ=; b=SRSJfh36p3UleipLxlUtTUFpPUDmxLS8yo+PBwx959oqjUNw376zK6DIo/TpEECQam0Wav /2i/bDbwVlsuguU4ipVk+E4hAwVZr3ThbxI4eRGPkgdkCfPFhUgsuu/0h07oZavqc7iS6J j2MiWZcfTsr11cF4dBtCFOpcYxI5k3TlsXRagqXz+bBUpm3HMvQNYCWx3izXsjdjez+Q9W wEFLfevTyEeT3C/B5o9VIhitHIt0qyzvN3XoWRCvsHwrp7R5LrgqTxXEsewej4Jm6gnydQ aBuETCfoPiaOSRdbyc7ZRmpDtL6UqKZgreHmyf0z8VczL/og4nKGiDSM/2agug== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1666191370; 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=jjpBzMIZil2dmLUT+irfoeemb7oKmLhPxEY4dlNGawQ=; b=HzSWZdqEZL2J95BBvsCPnMwoU3L+/EMg5oVAvdeTTFj3KSaG3KgrIou7oKqs+PVEiiY/lu WxdYmH+I94CFn5DA== To: Petr Mladek Cc: Sergey Senozhatsky , Steven Rostedt , Thomas Gleixner , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Jiri Slaby , Michal Simek , linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH printk v2 16/38] tty: serial: xilinx_uartps: use console_is_enabled() Date: Wed, 19 Oct 2022 17:01:38 +0206 Message-Id: <20221019145600.1282823-17-john.ogness@linutronix.de> In-Reply-To: <20221019145600.1282823-1-john.ogness@linutronix.de> References: <20221019145600.1282823-1-john.ogness@linutronix.de> MIME-Version: 1.0 X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,INVALID_DATE_TZ_ABSURD, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747129101864890250?= X-GMAIL-MSGID: =?utf-8?q?1747129101864890250?= Replace (console->flags & CON_ENABLED) usage with console_is_enabled(). Signed-off-by: John Ogness Reviewed-by: Greg Kroah-Hartman Reviewed-by: Petr Mladek --- drivers/tty/serial/xilinx_uartps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 2eff7cff57c4..e1fe95bd55c1 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -1631,7 +1631,7 @@ static int cdns_uart_probe(struct platform_device *pdev) #ifdef CONFIG_SERIAL_XILINX_PS_UART_CONSOLE /* This is not port which is used for console that's why clean it up */ if (console_port == port && - !(cdns_uart_uart_driver.cons->flags & CON_ENABLED)) { + !console_is_enabled(cdns_uart_uart_driver.cons)) { console_port = NULL; cdns_uart_console.index = -1; }