Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1831124rwb; Sun, 6 Aug 2023 04:08:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEo/89zDJ4bvU+SKpTgBo8cafEKjaLo+r5tflLM2q7oNT77IZJ/uX4nnY/6CEh+cUoOuQ1h X-Received: by 2002:a05:6a20:4314:b0:131:f504:a631 with SMTP id h20-20020a056a20431400b00131f504a631mr7176714pzk.51.1691320130322; Sun, 06 Aug 2023 04:08:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691320130; cv=none; d=google.com; s=arc-20160816; b=GokmL4Q+EVOO1A+y9ndQfg4YE79dkOwV6i/iQ7E8cdIK3gn+jpSUGbXHtU2LYjJa7N TstyhLDjAebbJMVgyhSbTvk6HcT9nHA+M3RZt75y3S9+6Cn45dPVcCyGtW38JCYXXQgY vWVTSPivG8jGRbrTrrAc9tF9FiRQJY4uoN+QIKALW8vk/qChj85N16WZtsbOJu6tb0Xq hz1MwM6NriAQMHYxTruxPHChdM56GBYp5fzS4Nw6NbF0PJwZ2JM4TNPK1K4RN5gc+1qy oxmBbbErMKpAiC1TfGIn4KW2DxV+86CrxBh571zr3YL6zfP9DWsODCjpW/wRvt4jo518 5sHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uwhP2+jfEblYNQWEgkgnDpK4OkZF679u2SoydUuQnBQ=; fh=htNtFCRcZ5pse697xmbps92JPWAxqe99Gyhb+3hAduo=; b=olqTmnJ6gFiKlhKdyyS6KSP6Q9Vp2D/Mx5MPmbkAqZVs7ubsiDMPmMPGXszpdSUaKs 0gX/gFGwvQ9eLMYmceRCFhtCQ+o0vExdMaxsia1IbLfBGfkjKpYGcoVZ/x2259HFZNlM tBN5qL/t3rRKCSORRJvAdbJZ8uwfnkDJL91lUfoWR+vnZyasN45koSA6TAbyggn/KR1e K4PO2MfVlhsPUQ97eEBpBkLZZ4jB1ZVjdAows8eJ+P1Pq35j6KtQ0YQxkvqtI3wtMLse kbUdqq6+ewadCuBw6EzYQIVmSkiZcnhqe88iO/be09YVtqT0hpks+Y4ldES7i6OA+EYX 6GXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qAuLlUly; 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 d1-20020a631d01000000b00563da4d2a75si4164642pgd.23.2023.08.06.04.08.38; Sun, 06 Aug 2023 04:08:50 -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=qAuLlUly; 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 S230207AbjHFJwL (ORCPT + 99 others); Sun, 6 Aug 2023 05:52:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjHFJwJ (ORCPT ); Sun, 6 Aug 2023 05:52:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AB8A19A2; Sun, 6 Aug 2023 02:52:09 -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 BC89860FF5; Sun, 6 Aug 2023 09:52:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C1999C433C7; Sun, 6 Aug 2023 09:52:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691315528; bh=iLg14PgiXyDCt6R+keTK1cRDsoDH3Jk4ky5vKqUz6IM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qAuLlUlydksVby4Nqk2chMwgIQ65H9ADuyGu4FUDkjLgUzbKR8sSeWBWSiU68No4w y5F5Mx6wxYHvm1oWTHdEUv1a/OUr8pvHzUU6qAcKTcvpIl4Qb9LJ9qSCqzCVCG2GbJ hGCfjvMbX4JvTZWvc1OAivfd4cZC6a4lns21Y+pHFgJussdpTQJ+KAqKxipTS2uOuE FvLFNt0k3v5vUkKUT14eQ7Pr4pNYgRm3ypDpgJNCrMtOKzcb4xYXuZhnq/05H7bi1m qJS5iysYagDVYYRc1XcSlCRPE59ajnBQLcu4k8y4+PEnH8P08xWq1a3blm7DqUQe24 zRpJ3jqDmU6iA== Date: Sun, 6 Aug 2023 17:40:27 +0800 From: Jisheng Zhang To: Andy Shevchenko Cc: Conor Dooley , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ilpo =?utf-8?B?SsOkcnZpbmVu?= , Jiri Slaby , linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dt-bindings: serial: snps-dw-apb-uart: make interrupt optional Message-ID: References: <20230802150545.3742-1-jszhang@kernel.org> <20230802150545.3742-2-jszhang@kernel.org> <20230802-halogen-bungee-63273b2c456c@spud> <20230802-risk-getting-e6005e86be81@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 On Thu, Aug 03, 2023 at 02:40:05PM +0300, Andy Shevchenko wrote: > On Wed, Aug 02, 2023 at 11:53:59PM +0100, Conor Dooley wrote: > > On Thu, Aug 03, 2023 at 12:57:44AM +0300, Andy Shevchenko wrote: > > > On Wed, Aug 02, 2023 at 04:43:48PM +0100, Conor Dooley wrote: > > > > On Wed, Aug 02, 2023 at 11:05:44PM +0800, Jisheng Zhang wrote: > > > > > The driver fall back to poll style when there's no irq. "poll" still > > > > > looks better than no support. > > > > > > > > What is the user for this where the interrupt is not actually wired up > > > > in the hardware? > > > > > > FYI: kernel console doesn't use interrupts, so for example it might be > > > the debug port. Note, I have no idea of the Zhang's case, just my assumption. Hi Conor, Andy, Andy's assumption about the uart dedicated for debug purpose is true, since it's for log only, so no interrupt need at all. We can also see such no irq support in litex uart driver(liteuart.c) and even a 8250 variant(8250_ioc3.c). Thanks > > > > I'm less interested in what the software is doing, it's what the device > > that has not connected the interrupt is that I am curious about. > > As I said. The hw may be purely for debugging purposes (and yes, I have heard > about such a hardware). > > -- > With Best Regards, > Andy Shevchenko > >