Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp542023imw; Wed, 13 Jul 2022 03:31:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s63oZQngX7Bgx9em4VIL4LvsmqvvHD/TT526hu4wxJ6erQkYLwhdomt3l8F3jjhZjBBH/N X-Received: by 2002:a05:6402:5193:b0:43a:eaa8:74b2 with SMTP id q19-20020a056402519300b0043aeaa874b2mr3948766edd.111.1657708308959; Wed, 13 Jul 2022 03:31:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657708308; cv=none; d=google.com; s=arc-20160816; b=E5xpLs7BXpKJRWkA2I8fszhRarkriBN5gO9pMyNFtkOoWwyba7KZf7JXdPmlFg53PS RoW2e7QGYRVI3PN5cJQ3UeHRzX8lVNKw406lwfr29bvTN/ENqer3EwnolOW1fPyGX/kA sRNiCTb3X3Cd/45BRmLrO4bBkdzYsPo6x5H3NUtp6NXhmyVguuYj4G/d88f0ls0JYmf5 vp1RavyiMz2sppSE8l96vnoxXL2JXvLBuK/G5zIZaFqPOCR64QIZZUCPJUHQR4CHo91C NbzRx0fcdagHLVeazmdfk1Fla6nTtoB+FxX/8FD9cLDsEJ5hlSIsLSqtnDlm5I/9ouH+ Jlww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=K7K9RIsTB7qhaxVyNzqwwrUpbCvrSnTsy4cv/fUmIs4=; b=Y5CeOCIVs1vWHKZblqAmfKO0O78R64+RhfCjii/TWF0cQ3O+kkoPUJrzuxYn+vmJPC xOmQVePBfK7vD7H5UwLAnEsHlWrynq7yja8UFgqiDNyYFe9frcGaZrVDIXTENqT1Ei8x YoJANf9kJiEg1AtZxengonniDVdcHMP3ij7TmtLz29mfcgo4XcR7N5c7817w67EAJYJS e4W2kbfHSBLztYJAaDi6XcbbMIszBDFwzFtRdaPzv6rzBHCc9d1plhZ8hv50708N/KfV GOUVE2KBsnn/n6n2lD3CH3/VbH16KO5aaAi8K1TTbd39PmkaVfPUP50omILwxWnTgMsh OrjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="Y/0nPTRg"; 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=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m18-20020aa7d352000000b004358c3bfb61si16720451edr.141.2022.07.13.03.31.23; Wed, 13 Jul 2022 03:31:48 -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=@gmail.com header.s=20210112 header.b="Y/0nPTRg"; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235303AbiGMKTn (ORCPT + 99 others); Wed, 13 Jul 2022 06:19:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234934AbiGMKTl (ORCPT ); Wed, 13 Jul 2022 06:19:41 -0400 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CEE6E0251; Wed, 13 Jul 2022 03:19:40 -0700 (PDT) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-31c86fe1dddso107723397b3.1; Wed, 13 Jul 2022 03:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=K7K9RIsTB7qhaxVyNzqwwrUpbCvrSnTsy4cv/fUmIs4=; b=Y/0nPTRgiekpHs3vqhMQjlZgVGd/asaU6Il9ZzErijaqBx9WUk+ztSFtsEEd1fNq24 AA5nRZBeFv1iFSHAQDbQdi5BSyxVcn3lh+kAPIJN02uCmNMmb5/AXb+doaHQ6BfCp50L YXtySiaZpEDiHYmg7eVbXusE4nFjqAJ380bqEUCSyPRR6nDz5jXIQED2tUE5KASivuN0 IqVZSYbj5NEN8D95h5Y3FWQTlYvl8hjAg02J++JSSNW/lNVaHhulRO7yy8SR+A6t5GM3 zHhr6okuiw5f5OInU7dkA2rQdsKNAZrtEJGuN54vUB6OkldnkU+lhtgGhoFGj0Rp+QYX Dk9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=K7K9RIsTB7qhaxVyNzqwwrUpbCvrSnTsy4cv/fUmIs4=; b=dzfnqvVqwKF+LE9abWy4qdXTngOwcnFD1bDOfriGxxZBe9TdZPRWxS6C1wvUHDCfhT gcCFDJ7Y97sbt9mY+Ft69YrNjoAstXs5tmGzsMGYSVxMCRCCrVt1UFzAjEe6PV3UmxgC mUWxZwAOuJuK/pupI4Nqk9tJUhlzy0bspmr15bS3JVEUJTd13WHgDwe8LmarYRPv+dky ok9sMNWtgWX01FKT/U+vvqNGfk9BN63iKu9jvbC3PjAqtdd9yu9DVBqjsGoXIwysRpAF bJ3X6a+vRVarR9fnXEmfqCF8rhi44R/mguepZMatdscxSbt5QV3bZbMDAABxpOqn8xGE aYlw== X-Gm-Message-State: AJIora/uRO7tJIq794AlMxO3oR5gjCcmamHzcPckngsN/FzJiH/d4tQe mwvxebhvlITIg7j0rsofdyc8Czs5chdeVsDvA24SeELm9/VEVg== X-Received: by 2002:a81:72c4:0:b0:31c:b309:c4e8 with SMTP id n187-20020a8172c4000000b0031cb309c4e8mr3318340ywc.520.1657707579858; Wed, 13 Jul 2022 03:19:39 -0700 (PDT) MIME-Version: 1.0 References: <20220712131523.1874428-1-vamshigajjela@google.com> In-Reply-To: From: Andy Shevchenko Date: Wed, 13 Jul 2022 12:19:03 +0200 Message-ID: Subject: Re: [PATCH] serial: 8250_dw: Avoid pslverr on reading empty receiver fifo To: VAMSHI GAJJELA Cc: Andy Shevchenko , Greg Kroah-Hartman , Jiri Slaby , Miquel Raynal , Phil Edworthy , Emil Renner Berthing , Heikki Krogerus , Johan Hovold , "open list:SERIAL DRIVERS" , Linux Kernel Mailing List , Manu Gautam Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Wed, Jul 13, 2022 at 10:13 AM VAMSHI GAJJELA wrote: > On Tue, Jul 12, 2022 at 6:56 PM Andy Shevchenko > wrote: > > On Tue, Jul 12, 2022 at 3:16 PM Vamshi Gajjela wrote: ... > > > + lsr = p->serial_in(p, UART_LSR); > > > > The only caller of this function already has the lsr value, why you > > can't (re)use it? > lsr is not read before, caller function (dw8250_check_lcr) reads lcr. I see, thanks for elaboration. -- With Best Regards, Andy Shevchenko