Received: by 10.192.165.148 with SMTP id m20csp5556589imm; Wed, 9 May 2018 06:59:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrggpj0ERt3TKPCM16L+8JSZdisXrxalPcpPdFpq1X6sCd9u0va+7PnX6VptcoPSi/pVtsv X-Received: by 2002:a17:902:bb84:: with SMTP id m4-v6mr45415285pls.339.1525874364440; Wed, 09 May 2018 06:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525874364; cv=none; d=google.com; s=arc-20160816; b=R72xNmiLZ6tOkCDA5ExZBe0TpcrZEnCJQDkfOulL0WJcVV+TX8LJaAySvukFMGFnwe jGY79JaAVx+Uvcyq6CSZNe4tAWI3kwwdq7tF9qnTcc2opJZIKZ3YEjbmZ5ZfNGodgHtD mELmcEMCf2kWhYgAAVvl0ObrrDU4NKcdKaItdQXeHaiXxetxmwve/mJ2CryjtA03EmUX UOkzV/23Rpq+DNZEWNdDz3Xw7wiTf5imttfXEChoWCwxcLeQTw4bIKG+qZr8MeEIIkPu I2DAr6RFFOU7x1JkgbHC+y1025O/L3EDQ7wqFW8LVjDN2cIwOqFrVCtzZesOtZDGiEIT M4BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=CEAv6d9FEz0/FwVgHs6j/qy8myCTwzu9gY7A6Upeskc=; b=wDVWa3A8oyHz+qrk/vgGhRTSAXI2zlc72k7QAoDKsbd5nm4itEJEGVsxAUaIPAjrPA KxQTPGC3WhCIauE1wc/bTDozdy8AKiGTaUQyg/fCOl5DsseX1MGfILOWOGHQMK9284/d d58R/K+O5AW/7FGmlYabqwdKL/h7N7gqt/tghkhbcalCC58iuIVMb4C3jtOyl99URxY8 w0L2o+xr8cvfZlveYquc82tFZ31J3AvbB4J/6Mla4sJuZiLZrCnf2c+CyrB4Kihwh+Fi LM9bdChyej/MuqCQn8fPNJgYJ49Y803bgZEiASzTiYCibwMLIZnEh+XPTHdm/g5RPNY1 A/sQ== 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 k1-v6si17512659pgr.450.2018.05.09.06.59.09; Wed, 09 May 2018 06:59:24 -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 S1756306AbeEIN5O (ORCPT + 99 others); Wed, 9 May 2018 09:57:14 -0400 Received: from muru.com ([72.249.23.125]:41398 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756221AbeEIN5K (ORCPT ); Wed, 9 May 2018 09:57:10 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id D5DE080EE; Wed, 9 May 2018 13:59:09 +0000 (UTC) Date: Wed, 9 May 2018 06:57:06 -0700 From: Tony Lindgren To: Johan Hovold Cc: Sebastian Reichel , "H. Nikolaus Schaller" , Andreas Kemnade , Mark Rutland , Arnd Bergmann , Pavel Machek , "linux-kernel@vger.kernel.org" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Greg Kroah-Hartman , Rob Herring , linux-serial@vger.kernel.org, linux-omap@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: OMAP serial runtime PM and autosuspend (was: Re: [PATCH 4/7] dt-bindings: gnss: add u-blox binding)) Message-ID: <20180509135706.GB98604@atomide.com> References: <20180507100135.GS2285@localhost> <20180507154515.GP98604@atomide.com> <20180507163439.GV2285@localhost> <20180507175032.GR98604@atomide.com> <20180508065852.GW2285@localhost> <20180508152228.GV98604@atomide.com> <20180508154756.GW98604@atomide.com> <20180508155405.GX98604@atomide.com> <20180508164904.GZ98604@atomide.com> <20180509131003.GC2285@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180509131003.GC2285@localhost> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Johan Hovold [180509 13:12]: > While this seems to fix the idling of closed ports here too, I'm not > sure we can move use_autosuspend to startup() like this. > > First, this flag should be set before registering the tty so that udev > can be used to update the attributes. > > Second, this prevents setting the autosuspend delay through sysfs when > the port is closed (when autosuspend is disabled). Yeah I noticed that too yesterday. > It seems we really should not be using the negative autosuspend to > configure the RPM behaviour the way these drivers do. Perhaps a new > mechanism is needed. Hmm well simply defaulting to "on" instead of "auto" and setting the autosuspend_ms to 3000 by default might be doable. I think that way we can keep use_autosuspend() in probe. Let's hope there are no existing use cases that would break with that. > But I'm afraid I don't have time to look at this today. Sure np thanks, Tony