Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1793778rwb; Sun, 6 Aug 2023 03:07:08 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGUzU6+MlpAzSpzi5hBMAqmBlNsynLKpCEsZcdvLLMpN9BJ7XCF2MFM/aZiHH0QR1XJwQN8 X-Received: by 2002:a05:6870:5494:b0:1be:e1d9:6f88 with SMTP id f20-20020a056870549400b001bee1d96f88mr7852709oan.40.1691316428617; Sun, 06 Aug 2023 03:07:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691316428; cv=none; d=google.com; s=arc-20160816; b=ntbUJEesXTkvYPyUzVuImodbHbPOt74p8FJtWlUhW4De86c3ggtohlqaF7Kd3ClFDh X70747FXPGtF3Z21fnZ+EhhrlyrzH7ShA6uLfFjgzWWDCS4deaxDYGL15iJ34VIIr3ep hA21Digw8lQSQE51A6M8YCAI1BfVVK9S7CxdBNj0fF2i+rKJNy2BNQJgCJcYy/t1c2C8 DDoLOBdgSoxI5UebL3tsLdG+x09fUNm3s9PcEg1Q33ZXFYqfwLFYhKV+1Mnpnn4lgptt pw+962AUXo6YiGWmbaG6nHQxCfMU7wgsPCwOW20BBYefn3VpAKDav8Ig2PY7IvxPXbF+ 6Fqg== 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=+ppPQccbGCd5KCLpbbOv7CriHQ4O/ydq5pp08/dEsMg=; fh=9LhevukQlN8QgABBNKHWl1nBtSwK1vKoyAVqIrNCnSI=; b=EK6YoGmFtauYLQ5kbOe97YvCNumHuhOmXcdZbHtDTx9t4Jc1J1TEvMlauGfZVow95E nTqTIq2vqouxqKZss+BjZP4pnqkQKQtS/YHnCd4ZXcYckBJX5RPncnIN82cS/iXe3KaG 4q6QCsuCF4dpiac1dMLlLFUNUGKRSFdVptPT1qaNgTvzYtTq2GKPs+L7Lf5LIiAi1pBx eg0uqZXpC/cHmsXbESZ6VqqHrO9eBZkoD1K2/UtU4F6IQphX7nnKLXaqYYJmv00mH0by 24jnjj6KFdrYZLu02Y3TY5NvmQRIVl0cr2B5Xp+56LCTvis2AAGhTuOEmqGkXXXe9S32 F/gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="leVX9+/a"; 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 h128-20020a636c86000000b005644e2acd67si4181831pgc.141.2023.08.06.03.06.57; Sun, 06 Aug 2023 03:07:08 -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="leVX9+/a"; 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 S230155AbjHFJcj (ORCPT + 99 others); Sun, 6 Aug 2023 05:32:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229639AbjHFJci (ORCPT ); Sun, 6 Aug 2023 05:32:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE389F3; Sun, 6 Aug 2023 02:32:37 -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 5BFED60FFC; Sun, 6 Aug 2023 09:32:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83E21C433C8; Sun, 6 Aug 2023 09:32:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691314356; bh=e3eVn3I3csuxUTSWKKbazD8xuiApRe8LHcpfQHQofGk=; h=From:To:Cc:Subject:Date:From; b=leVX9+/a4UYzb787JuPbefONy8LrIEK0Y4HHBTpRJ+k6FGVF+P9dJxWdUtupLM+5y 1K14x98xs+yaAQSfm0kjiqW8979VfUz1wSlhrK2eXmF9MvHIfM24+w/xEcuOwQKFxf xywwFT1YvyvDz6vsfPjF7Q9aZIcMlt4v08+qJqaGdqbyiK5/hLpsfZcWIG64RqcU7F iPHuoMWLpGJjbwPH0RcpnXgQhOrEzAyflu3kV+gyqcjz6ZPpGUg/436UzOXKXi9qgH MZv1GWepaSmPN7rrDddTXkP9NnUzuT9fCWfMWTr9MtGyUFGAj2esYMQjRwspXrgM4C pBOkUpN8vMeog== 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 v2 0/2] serial: 8250_dw: fall back to poll if there's no interrupt Date: Sun, 6 Aug 2023 17:20:54 +0800 Message-Id: <20230806092056.2467-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=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,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 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 since v1: - adopt Andy's suggestion to simplified the code 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 | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) -- 2.40.1