Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2559918rwb; Mon, 3 Oct 2022 02:33:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4kCqiBTUx7iSBXPzUPqDSBWdH1n70FzRQKSM90jBlyTE7vG7Ee5j1vITuB7ZHL0utfF8Im X-Received: by 2002:a05:6402:3709:b0:459:279e:fdc6 with SMTP id ek9-20020a056402370900b00459279efdc6mr892351edb.338.1664789635860; Mon, 03 Oct 2022 02:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664789635; cv=none; d=google.com; s=arc-20160816; b=johm7g/ExtptUl3ATLev5WU2WaU/YR/YfnaKKX5H/fSSXK/9aklqXLOCk12KWjNEJn qnIegWXmfWzFL/UtFPY9PYmvpmn853rWY/I1FP25SikcFmPFMyj3wngFxiHar2b5aG3s 6vKKSkfgRwwJuqmznEtbWwyyfELbPvoIPveW1G/07AyNpTh8dg2CIF9QqCkffcppyuny FXa0ZCbt7m8CRd0B6zw3GByH7TylkgH47BHLoSpIBHG3zhk1JTKtnGygduTlERKz0UcM LgxRW9+HNaK3rF5Z02IHE7v+tE1lQnqRG/N9GAAnJAxGA4P5f1RwTUf58tuhkWnTFbAx YPSg== 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=Yfsi/AGFVq9lMy2xlrpaeIIHTsRKifHh6klZq85Xypg=; b=tPWxIDBfM7Cxev2IoPoiHXG3UF/MUloiz8mFiYibW5xwxqHumYVUrkVFHCh6IYeT4e AL1Y1Nq8gbEDncoCl4rLfSJULW91E7SdhUaYZZ3j+WQM8TDsGxONd+51srKr9TnrDGH1 +90zacMy8/hfJbgRZ4+rV6OUwvtb+S6+BzBNrjO5EQZ/rdKdylk+ufOU76G9lGx7Qtxl EfvI7YGIOPEFAinPjXa1ficEYJZ6mJuLCcba1jwedfrAc+wv4LTHpvdgTuvJi8l006sf p1sF2Q0GRczOIr3vKEre5Bt/OVsxai6qOvo8Uz3B+xl3ZNrmnmMSi/L3bAUfcG6/9TUR +byg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=G88CZIoY; 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 cr19-20020a170906d55300b00787aba35b7asi8342862ejc.102.2022.10.03.02.33.29; Mon, 03 Oct 2022 02:33:55 -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=G88CZIoY; 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 S231499AbiJCJcT (ORCPT + 99 others); Mon, 3 Oct 2022 05:32:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230162AbiJCJ3z (ORCPT ); Mon, 3 Oct 2022 05:29:55 -0400 Received: from mail-qt1-x836.google.com (mail-qt1-x836.google.com [IPv6:2607:f8b0:4864:20::836]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98E3553D23; Mon, 3 Oct 2022 02:27:50 -0700 (PDT) Received: by mail-qt1-x836.google.com with SMTP id c11so6007000qtw.8; Mon, 03 Oct 2022 02:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=Yfsi/AGFVq9lMy2xlrpaeIIHTsRKifHh6klZq85Xypg=; b=G88CZIoY5HgbeaRNhHCrdL7Sz4aXBPVFgxdqhTSuBcABcBFGHmVfI/KwpbCR2zTYyN RBhnc/zF0mk43Xm95haEK7sQUNckYZBD+kZpNjk0pyHVA1BvvY1gliZxwiXTtTqoygjI qDZ/XMPNZnBSn6Hfwifs3ZafhOpOQcStmvLesP25NsOlWnNaMNaJtxNVTwT+ObUwG2tn h1lfG/1Yo4koe4ulEDrKPQZqsjx6lNJ3B5jCWWgbIsel4n/wtPvU90w1WaISwWPEKstK 4gkCsZ9hhNw6v+8O8KPMQkkeMfjHm5pZz8ytLycVZtWz8SyUzpScPRIEW60jfcRKknwA N+Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=Yfsi/AGFVq9lMy2xlrpaeIIHTsRKifHh6klZq85Xypg=; b=Ol1CznoXUFrJYFEaAqEL0XcUi9zTlZ3j6E4CVHlEdmjI5HET/ujmB3zIN0MFRO17bx 0Ko+KSNcYAVleIfJZSyqJz2B5GY4dHgE8Hq3xxJv1b2P1aycdWcDgT64CxP8z837y2UM 8MUKTQbczgZtD2x5s+NKoE6df0KJ2EEIb/VfqDWhQ6MsruXK20pPo+/AqCxBjG1pseWm sA+Gi5fbXk8xAhszX6hFdmFS1X13bUaSbu6SuA8oJWRFtaVyXXwIw7+ig2/PbFFpn38j vrNI7wBypEoo3U6qPSF/NKAr3unLW++gIx1YzocjQD3bFOIff3e2H7lV2MPAf7Q4VwHL jeXw== X-Gm-Message-State: ACrzQf0g4LdMrSukl1QecGMaKd7I/ybHEziIM4hCQT9Kv50XIU3PTYS1 1n9S6QJnmtcbOsIQJMK1Kmfz2UfaJxt+KwQpNLQ= X-Received: by 2002:a05:622a:1701:b0:35b:b3bb:7c4e with SMTP id h1-20020a05622a170100b0035bb3bb7c4emr14800250qtk.195.1664789247473; Mon, 03 Oct 2022 02:27:27 -0700 (PDT) MIME-Version: 1.0 References: <20221001061507.3508603-1-kumaravel.thiagarajan@microchip.com> <20221001061507.3508603-4-kumaravel.thiagarajan@microchip.com> In-Reply-To: <20221001061507.3508603-4-kumaravel.thiagarajan@microchip.com> From: Andy Shevchenko Date: Mon, 3 Oct 2022 12:26:51 +0300 Message-ID: Subject: Re: [PATCH v2 tty-next 3/3] 8250: microchip: pci1xxxx: Add power management functions to quad-uart driver. To: Kumaravel Thiagarajan Cc: gregkh@linuxfoundation.org, jirislaby@kernel.org, ilpo.jarvinen@linux.intel.com, u.kleine-koenig@pengutronix.de, johan@kernel.org, wander@redhat.com, etremblay@distech-controls.com, macro@orcam.me.uk, geert+renesas@glider.be, jk@ozlabs.org, phil.edworthy@renesas.com, lukas@wunner.de, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, UNGLinuxDriver@microchip.com 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 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 Sat, Oct 1, 2022 at 9:15 AM Kumaravel Thiagarajan wrote: > > pci1xxxx's quad-uart function has the capability to wake up the host from > suspend state. Enable wakeup before entering into suspend and disable > wakeup on resume. ... > + port->suspended == 0 How is this check race-protected? ... > +static void pci1xxxx_port_resume(int line) > +{ > + if (port->suspended == 0) { Ditto. > + } > +} ... If you have similarities with 8250_pci, probably you need to split it to 8250_pcilib.c and share. (See how 8250_dw /8250_lpss are done in that sense.) -- With Best Regards, Andy Shevchenko