Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1099086rwo; Wed, 2 Aug 2023 08:42:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlFWzcXV6G2j6lvSBkipm1oEYUcas+SA5LmHd3XPRuXhXnL5QV3OeGgmsWTsHzZI3EU35sVH X-Received: by 2002:a05:6512:3d22:b0:4fb:7642:88dd with SMTP id d34-20020a0565123d2200b004fb764288ddmr5857520lfv.67.1690990919665; Wed, 02 Aug 2023 08:41:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690990919; cv=none; d=google.com; s=arc-20160816; b=ySJGlcj2mcm564O2Pyt9rl5+mM0DG4/3jl154g/oep/v1OtEfqZShkUQQRksH404bU CwxZrW3rTmHDjdUT5xFiRbWTHAwF6uVgRN+nyio6bWkaeWZ31N1z5x6VMCthEwD3c4Q8 AMmWkEltyHg6FFCqsj6tUOnsaGWqfnEZ+wigO6xouyTXdid7FJXEttmkcvxmtVpygWbW cko93xjgBT3C4ufPxHtwpFk787crJCiN9L6ImhYMRfjK105YpvMUDXPqBGKbV+ZPqjve Atu4YbxdQsAofGe7PYCuXdP2FThvhNAbuJ8cKWt8C54xx96558FqSJVrRtju1AGtf162 Fkpw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=LWPpcezjy068an8ryd6YWH+3z1xl0u7CLpyqS9LGHV8=; fh=9LhevukQlN8QgABBNKHWl1nBtSwK1vKoyAVqIrNCnSI=; b=Qezc0ecZj6suYMh3byR6aQOsHjDz4lj4kIdZuNwpXistg1io9BZauk15j6oBUh/t7S Kw0OaynUnuV6PyZ1NQIlHsIXWBkJ0kIv1hT11q+IjqHfgBz/NT49Z3N5WYG3dCMb7Nrl vlyFGmQXz0teIiYj2WKgXwPDTfdjLc7UDPQovk5v41yo78lvruOgB6uXznl3FPUMYpO1 /tVonfTrssALzQDtEkoHPD+8ePDgMPa++I5REHmn3CNsqwlAkPuiO39jcqSLUV/TOse3 UTneu69HnhB6ovAmpOBCYZXJ4PxI9eBngnNUY1fACL3J2k6gj2G+Devg4C0sYtv5+pk9 P25A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s7SFB7RK; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j24-20020aa7ca58000000b005223d772ca4si6365365edt.325.2023.08.02.08.41.34; Wed, 02 Aug 2023 08:41:59 -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=@kernel.org header.s=k20201202 header.b=s7SFB7RK; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235161AbjHBPWA (ORCPT + 99 others); Wed, 2 Aug 2023 11:22:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235040AbjHBPVk (ORCPT ); Wed, 2 Aug 2023 11:21:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74C516E8E; Wed, 2 Aug 2023 08:18:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9A6DB619F4; Wed, 2 Aug 2023 15:17:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB5F1C433C8; Wed, 2 Aug 2023 15:17:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690989447; bh=zCG2ZBd2we+fd27UTmu6rhjgwUlTuUjqhSSKE4Jo9tk=; h=From:To:Cc:Subject:Date:From; b=s7SFB7RKYOBIxWmgwOhfXom5MqafkZjArUC6xzXeLX3sHSZzxTk7UfBhdK3zXnbuQ G08WzNpkP44JpVBQ5gAtNY8ESItymYb8yF76eSCFmbPkRbqa0fmV3I6KdH152EScuC eCeBCADPOarvKkijcxa4rRGZD7VZFWntEZv+/gnzvMLbKf+4RFCIaD/iBYJU0sN7yG t0dLfP8SB51iCPmvjg7JxrhRc01NlEiD25F2lSdL75RyHI5hh8oieHtMa2OiMJTf57 sBukbpb5rXpKvUiq/ASVYpbZ7+jhja2wqf5hAfe4awmTq6dfioLf9XsigFujOc90L7 qegjIB1U2nmKA== From: Jisheng Zhang To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Andy Shevchenko , Jiri Slaby Cc: linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] serial: 8250_dw: fall back to poll if there's no interrupt Date: Wed, 2 Aug 2023 23:05:43 +0800 Message-Id: <20230802150545.3742-1-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 When there's no irq(this can be due to various reasons, for example, no irq from HW support, or we just want to use poll solution, and so on), falling back to poll is still better than no support at all. patch1 makes the interrupt property in dt-binding optional patch2 falls back to poll if there's no interrupt Jisheng Zhang (2): dt-bindings: serial: snps-dw-apb-uart: make interrupt optional serial: 8250_dw: fall back to poll if there's no interrupt .../devicetree/bindings/serial/snps-dw-apb-uart.yaml | 1 - drivers/tty/serial/8250/8250_dw.c | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) -- 2.40.1