From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752200AbeEQRE6 (ORCPT ); Thu, 17 May 2018 13:04:58 -0400 Received: from muru.com ([72.249.23.125]:42666 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751698AbeEQRE4 (ORCPT ); Thu, 17 May 2018 13:04:56 -0400 Date: Thu, 17 May 2018 10:04:52 -0700 From: Tony Lindgren To: Andy Shevchenko Cc: Sebastian Andrzej Siewior , Andy Shevchenko , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Linux Kernel Mailing List , Greg Kroah-Hartman , Jiri Slaby , "open list:SERIAL DRIVERS" , Arnd Bergmann Subject: Re: [PATCH v1 0/3] console, serial8250: Disable PM and DMA ops Message-ID: <20180517170452.GK98604@atomide.com> References: <20180515183409.78046-1-andriy.shevchenko@linux.intel.com> <20180516100842.xuma7b3e727w7bpz@linutronix.de> <20180516104734.357oevogppu5bsg4@linutronix.de> <20180517135621.GJ98604@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180517135621.GJ98604@atomide.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Tony Lindgren [180517 06:56]: > * Andy Shevchenko [180516 13:12]: > > On Wed, 2018-05-16 at 12:47 +0200, Sebastian Andrzej Siewior wrote: > > > But since I am on it. You have to enable runtime-PM for the UART. So > > > what is the problem if you simply don't enable it for the UART which > > > used as the kernel console? > > > > How do I know at the ->probe() time that device in question is going to > > be kernel console? Maybe I missed simple way of it. > > Hmm parse the kernel cmdline maybe? :) > > BTW, kernel already has earlycon doing exactly what you're trying to do. And if earlycon does not do the job, maybe just set up some kernel command line parameter like "noidle" that makes serial probe call pm_runtime_forbid(). Regards, Tony