Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp669412imm; Sat, 14 Jul 2018 09:29:06 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdV/ivGH71kkXFEzlEYtPC/yexb7Vum8Hk1pqEzA/hNFdtiIkLMiHJo63GZPAJRV0nGhVX3 X-Received: by 2002:a17:902:7009:: with SMTP id y9-v6mr10551652plk.217.1531585746244; Sat, 14 Jul 2018 09:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531585746; cv=none; d=google.com; s=arc-20160816; b=Zkg2tvX3caUCIfepGIcEvy0NnvXzs6tOsC/LJW6EljpVru/Gng8OIlzTSxpMmiGAo6 PRMuoXU2H/r4yn68jsPbbCkaHIeW8OuKOh+ec6EvjGS9UNP+x7XoZCq1QJ/X+J8+eg5v PLytoAeYEA3sP1z7DqCZNxnYkEFfJditAUgM6MJduOEDdwKpki1m/S0Z/ioq24XUl3Jc yzOrOJ9HG6Xl3iIrxPXMIuacqwBQOUdvC82bxpWseaxbYAkc8+xJkWDPNTuFJ5r4DS+Y bscFZEhyAV8A678opccUapoUka7wfgMWsO2ShxJYYsM2lGmfWINf0lB/5UbdpHbPsXkd r1Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:arc-authentication-results; bh=o7mMm2UwbV/YA0dWcG3p9iqNr7GWYb/aI5Ve+y4+nF4=; b=YCi2mCMtrYFT0SH3s3gGMxQImft6GQNyxxW7rRLoIZA7U9+UhNeeDaboAHD6ZjvyNt KKeRiMWSgRFTzS1HW9GrzuqjXW03TUiPgEUhQXOLCGybRq6PmWygqfsF4YK6kLkTyWqS d7lO0CVwoK9rXGEH9XNxHFTYEqGBSjCQPw78CGNJCkQnoL5hZObox/mK7jOafHZxsNrz EM5RAWTBLCKp/92PeF8vj89E7kE4+UzuihEI4JmwKtSfdM7AuQ9/qMGekgHgZQRADDA2 inN814VhntoHyCVXehjeGBfIpfbY4OVakHLeq5vYS05g7N1Rto39cVa6Kg7VvGkhOZH5 4aSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8-v6si13332041plk.79.2018.07.14.09.28.51; Sat, 14 Jul 2018 09:29:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729245AbeGNQrM convert rfc822-to-8bit (ORCPT + 99 others); Sat, 14 Jul 2018 12:47:12 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:49672 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726618AbeGNQrM (ORCPT ); Sat, 14 Jul 2018 12:47:12 -0400 Received: from [192.168.0.117] (188.146.224.185.nat.umts.dynamic.t-mobile.pl [188.146.224.185]) by mail.holtmann.org (Postfix) with ESMTPSA id E267CCF163; Sat, 14 Jul 2018 18:34:27 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: [PATCH v5 2/7] serdev: add dev_pm_domain_attach|detach() From: Marcel Holtmann In-Reply-To: Date: Sat, 14 Jul 2018 18:27:33 +0200 Cc: Rob Herring , Mark Rutland , Johan Hedberg , devicetree@vger.kernel.org, linux-bluetooth@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Ulf Hansson , Greg Kroah-Hartman , Jiri Slaby , linux-serial@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: References: To: sean.wang@mediatek.com X-Mailer: Apple Mail (2.3445.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sean, > In order to open up the required power gate before any operation can be > effectively performed over the serial bus between CPU and serdev, it's > clearly essential to add common attach functions for PM domains to serdev > at the probe phase. > > Similarly, the relevant dettach function for the PM domains should be > properly and reversely added at the remove phase. > > Signed-off-by: Sean Wang > Reviewed-by: Ulf Hansson > Cc: Rob Herring > Cc: Ulf Hansson > Cc: Greg Kroah-Hartman > Cc: Jiri Slaby > Cc: linux-serial@vger.kernel.org > --- > drivers/tty/serdev/core.c | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) can we take this through the serial subsystem? Or should I just take it when the driver is ready to be included? Regards Marcel