Received: by 10.192.165.148 with SMTP id m20csp5566639imm; Wed, 9 May 2018 07:06:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoFTaBBaqSGgvDdtcxTvoNYL4cnq9OVcjs5x4Sl1RYjf8sQgipnV2zJTdj3faBfLhaV6iCa X-Received: by 2002:a17:902:22a:: with SMTP id 39-v6mr46288679plc.128.1525874790604; Wed, 09 May 2018 07:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525874790; cv=none; d=google.com; s=arc-20160816; b=TNWyZGgLmlPvP/0QX3XfezhZLUrNlHfvvKLJVZibiAjTcoETeS7Zv+xF/MV+DykNEl 39gvzULIo2CBqK3B8dJbGniChI8Jx6LT/kqKfIUaYGC0m9jLS0JSTojGK0pITfPduTXV 4OlfyrWZfI96sxRKzv0WdBMCSPF/5dL6bPlOVNLFEwPa46rwoNiSgYgKZ9QLvsm5wg3D ewPCP4XgTIA+4UUyhX9sdzo+S0QCOXrjquO1eGROjStS6/XiD1kh2brhp/HknMobmWi2 TsqSxcO27UOSxAhtf6osrnWC+fMQgfMO4+dHJjUEs3c/2A5SMPsQ7kasCTEcYLY19Z79 HlWg== 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=1f4PAM0ApMORVpu24hIzY84hccnl3K6fC8/lyhCmKcU=; b=eJcCijiIA4TDAfOF+tHjBs2SJdCb1skq5ham7TxbwncLel91jlVFEsFeoO/Yul5Fux 4Vrld086DnGMmEOzM9h1XDj3wwFEMMlpecxghCnzpexQuV9w0gg0nTaZzyPSyAt/a2Ni ZO4/N3cbFxuoNRjz9tHxpQiO2QCOrB34sO6WmxhVxUbvVtvYAHavYlfEP2IvpAEpO9Nx jCYCshtLEzq9DDB9WRuRY221g+Rb5REmHrhv4shstTdWG8QKJB3aaRLWAz+7+OiuTcXv KpqIuItOR7NmjHqXlQBfA/7YTluNBihF9vT62doVG3s+kL6bvTejHy9jucm/P9I6dZVo 1T/w== 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 g67si27247486pfe.4.2018.05.09.07.06.16; Wed, 09 May 2018 07:06:30 -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 S1756549AbeEIOF6 (ORCPT + 99 others); Wed, 9 May 2018 10:05:58 -0400 Received: from muru.com ([72.249.23.125]:41420 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756375AbeEIOFy (ORCPT ); Wed, 9 May 2018 10:05:54 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id BA91480EE; Wed, 9 May 2018 14:07:53 +0000 (UTC) Date: Wed, 9 May 2018 07:05:50 -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-pm@vger.kernel.org Subject: Re: Serdev runtime PM (was: Re: [PATCH 4/7] dt-bindings: gnss: add u-blox binding) Message-ID: <20180509140550.GC98604@atomide.com> References: <20180502081637.GE2285@localhost> <5242FCAD-3139-4A9C-B9FA-7BBAA0E6AE57@goldelico.com> <20180503205037.7be552c1@aktux> <44A0BC7C-67C7-4116-849F-90FF7CF2B1F0@goldelico.com> <20180504114213.3xlzqxe74n55tk5s@earth.universe> <20180507100135.GS2285@localhost> <20180507154515.GP98604@atomide.com> <20180507163439.GV2285@localhost> <20180508155608.3bzcbepsmoskhlox@earth.universe> <20180509091831.GA2285@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180509091831.GA2285@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 09:20]: > On Tue, May 08, 2018 at 05:56:08PM +0200, Sebastian Reichel wrote: > > I think using open/close for runtime pm is good enough for GPS, > > since it regularly sends data and draws lots of power anyways. > > But devices, that have an out-of-band wakeup signal can do proper > > runtime PM of the serial port without loosing characters. > > Yeah, there may be some applications where this is possible. And this is > not the case for GPS, but not just because of a generally higher power > consumption, but due to the fact that we cannot afford having the first > message in every report burst be dropped. Well most of the phone implementations use one or two out of band GPIOs to first wake the UART before any data is sent. For serdev this can be called from the serdev consumer write function for TX. For RX, the serdev consumer needs to implement an interrupt handler and wake up the parent UART before serdev RX. > > Note, that OMAP does not reach deep idle states with active > > serial port. This is not acceptable for low power devices. > > Sure, but note that OMAP is the only serial driver which currently > implements this kind of aggressive runtime PM (besides a couple of > usb-serial drivers). This means that a serdev driver can never rely on > this being the case, and therefore needs to be restrictive about how > long the port is kept open if it cares about power at all. Well by default we don't allow lossy UART. It needs to be manually configured via /sys for the timeout. With serdev, this can all be done with no /sys configuration needed for the cases with GPIO wake irqs :) Regards, Tony