Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp4614554rwe; Tue, 30 Aug 2022 13:32:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR4sEMaUuSqa9EuKtsgjckuClc5MShngXtxzKQA09gY+vrEq9z2yTw4iEPS2Y7X/PnXJ9cC4 X-Received: by 2002:a17:90a:4801:b0:1fa:98ec:fa2 with SMTP id a1-20020a17090a480100b001fa98ec0fa2mr24554266pjh.41.1661891534987; Tue, 30 Aug 2022 13:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661891534; cv=none; d=google.com; s=arc-20160816; b=HTFBNUbz/2+qmX7A0044E8PBYLVVfRCvQuI4B1K9bNxEzzLmYdLXxYTyJhaeCjab7/ /7BujKphzcv0sazuRNV7BGwEWN5VQLYmtp6mnRlCMJkjJkE7SmEMvjzmYKKmgZcayeER Qzlq0jUMNVyIq0w4qpiISxSj3EtvqpFvinL31aCNQUgQXw3zPJqNDaC5zHuYBU01wfU0 9auHhB/Lla9iz9g2HyiZ3nnFtnVVklViR+d2HkJFhda+3P7bcfsP4VwTVbPgvoJkhPkl I5mHa3et+RaXRp0Cy/gwOrVJfD/jgAJGaHmZWTlFrpxITav0X7jEvFh3v0Bh+6hAKY7a rEmg== 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=B7z26XIqnnDQkHMdYCIbF/h+gJRRyxIq0yn7zncBJrk=; b=Kidw8z20HuDObY8DTbYOAWXXeI/EeFCDnBuHCvHGAdx3VZJBQJBREiCz/7Qk01SO0S nehuf7j9PCPkLquEeMFba6p+yzmCP9OIL6ffgDEcuW9lFSzUlxVY1LdYupV50Mtan242 ymn9nnBw64iuYoisNa2p73qKfAV2LsvZKEr9cXlhARTbdAscE2ltQneKeJ/DWK6m+EJ0 mBg6F8Ns4Lzr7Fz9efPYJSmrIFCyhO0pC60Zw+O9Rete5U/B6Kdhn1QBS4n7KIfiC3Hz 0c1/GYA3s0yFU9wIKd/iFKfzNsm2ghA4n9MXnPWfGkho85ybioqyjmb+8pJhHKXtnEug jYLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YTnX+rhn; 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 x144-20020a633196000000b0042b31fdb2d1si3074438pgx.208.2022.08.30.13.31.52; Tue, 30 Aug 2022 13:32:14 -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=YTnX+rhn; 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 S231668AbiH3T46 (ORCPT + 99 others); Tue, 30 Aug 2022 15:56:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231277AbiH3T4z (ORCPT ); Tue, 30 Aug 2022 15:56:55 -0400 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCC8670E6C; Tue, 30 Aug 2022 12:56:54 -0700 (PDT) Received: by mail-qk1-x735.google.com with SMTP id a15so9308821qko.4; Tue, 30 Aug 2022 12:56:54 -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; bh=B7z26XIqnnDQkHMdYCIbF/h+gJRRyxIq0yn7zncBJrk=; b=YTnX+rhn984d5NOCrdBYNeb+VhC21SiC3ELqCVa0g/FHVCINcdFWpyRBc+ZenESTsu 1EbWd0pLHXUiO6JWpC75u9oLgv5GCWCBrxyF6wi0INXtgRqSD6nR+9Z6GIBJtvHFQgfQ d+7yAjw8ZJf9E1+RmUHZbk8Wxi0gTWr8utmrsQIiNnaMydl3uQvzbsttNtAgKhDA+Msc jtWZIq7vJXTRUkA7/q+kFSMs23lMlEzcCaabUGSVVWrX0JmKEtzYQBcd6DthOo7Rhf1o Lc/quHnUw98Lq04EG4BFJaeopAa+CXkWLEzRu2owRzpeC+wjC0+psVyae8Y7LIgTANpI Z2zA== 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; bh=B7z26XIqnnDQkHMdYCIbF/h+gJRRyxIq0yn7zncBJrk=; b=8BUti9//1LjYTAoOct3W0eAP3LJ+0uqXk/BKvGxIgiSlxAn93h3sFY2N/awlXFKhbj KmAQGTpLOjpJsc3H2GS/y8GljeR6kA1MNkk6XwAceVe3AljLA8c8v+dkELjlqZAW6pbJ iGZfefdJSZdSFNR4OmRSCuItcOpgRO3YP4FT+ynJxb5Xf8TOwG1AChUDv9La+iHutVcP oBJZo2xWUxau2Nw6lIloY3GFUH0WLBFQpMokM58CAEleB+0XRW1lC6hqZwLtnA30TX+l p1jIzOFgcDb5LoSYEsSC2mox++9pYnKWYxqV0TfWc6bHUjvFWN2+GVJhMDYXRUTfkPlZ zZYw== X-Gm-Message-State: ACgBeo0X2CihXSlrUcsLLrhA3ViHsvZDq2oV1PGEzTm2Ces6dAR4wiik e/M/UMwLlemcJgCs5OtF0+CQhKXTG4erQuZKdjw= X-Received: by 2002:a05:620a:254d:b0:6ab:84b8:25eb with SMTP id s13-20020a05620a254d00b006ab84b825ebmr13249125qko.383.1661889413770; Tue, 30 Aug 2022 12:56:53 -0700 (PDT) MIME-Version: 1.0 References: <20220830180054.1998296-1-kumaravel.thiagarajan@microchip.com> <20220830180054.1998296-3-kumaravel.thiagarajan@microchip.com> In-Reply-To: <20220830180054.1998296-3-kumaravel.thiagarajan@microchip.com> From: Andy Shevchenko Date: Tue, 30 Aug 2022 22:56:17 +0300 Message-ID: Subject: Re: [PATCH v1 tty-next 2/2] 8250: microchip: pci1xxxx: Add power management functions to pci1xxxx's quad-uart driver. To: Kumaravel Thiagarajan Cc: Greg Kroah-Hartman , Jiri Slaby , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Johan Hovold , Wander Lairson Costa , Eric Tremblay , "Maciej W. Rozycki" , Geert Uytterhoeven , Jeremy Kerr , Phil Edworthy , Lukas Wunner , Linux Kernel Mailing List , "open list:SERIAL DRIVERS" , Microchip Linux Driver Support 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 Tue, Aug 30, 2022 at 9:01 PM 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 upon resume. on resume ... First of all, we have pm_ptr() and pm_sleep_ptr() with corresponding other macros in pm.h. Use them. Second, if you need to duplicate a lot of code from 8250_pci, split that code to 8250_pcilib.c and use it in the driver. -- With Best Regards, Andy Shevchenko