Received: by 10.192.165.148 with SMTP id m20csp2898037imm; Mon, 7 May 2018 03:09:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZozng+CnDNSHXpXypMSLV00r3jKaxp4JA0MN67ZDhWc61qD0BciPOUMJEvI+FsW6h6Vr/9X X-Received: by 2002:a17:902:6b03:: with SMTP id o3-v6mr36884388plk.213.1525687740622; Mon, 07 May 2018 03:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525687740; cv=none; d=google.com; s=arc-20160816; b=sNIl0GHphW4azprVmX5l6t83C4bO19UWxdMvkKqZPvZ4+qQ/jxF+TLAzvHWe6lVB60 nPKsXgycJCSV5GmAUonbuLrAB74OAUXkR8iiLYI5xsCXHfIWmXXIZv7UcdJAILOHVyBB D3od2fF80BgZqVA0xcuqlgv7nDYFLRXu6Mmui5rcztsOacGE+M6e7co8czDgcgQhZnIU WKpxgU56fwO8JEztrMi7O19nXPt1PwjBdKa8SRqb+ay4DxTkd241SgsZdlv3f12zXfwg 8COBzV0viOn8RZPdCfRsxJ6aFGwH5DOO/qfOXkOEWvjAhkQdYL7qEQDrEQ5DeZ0CSgfI HmTw== 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:dkim-signature:arc-authentication-results; bh=H5AsGQK117GBDtRaPYU4SWW7IPeBdR+I9XWa47zkxHk=; b=GDmqFR55UpgCQIgn8e0gl4+MRMigzTdiYe3L//IRFWg5rlcfnZjl0ijU/puWHg8LuX anLnHr7mI7g62Z1OA3tm2+Tp1Qt7uVBRDij/3xTN8v9zVQ9X1tGfQFY7Rp7K2STjSWMN Z/hph1PPe2aeDfFfdvT02+O+/xW181IOoKx4qcnJYRonpl0JzGES4/JBMO9/H4SJ8IdB I0lyRyXvMu08P47mHD7KRAcIK8m1KliIzNDpplAsRcSkc6c2GF31RFb876oa0+M58gqY MJAEJyIFBxQ6VlJftDIxPZOFK2q9pVlq6vekqRJLyT12t8TzUalLbyvRx/FmFOHeKB6i h48A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=mZSL7mw6; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q28si22515703pfl.317.2018.05.07.03.08.46; Mon, 07 May 2018 03:09:00 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=mZSL7mw6; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751968AbeEGKH4 (ORCPT + 99 others); Mon, 7 May 2018 06:07:56 -0400 Received: from mail-lf0-f42.google.com ([209.85.215.42]:43370 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750795AbeEGKHx (ORCPT ); Mon, 7 May 2018 06:07:53 -0400 Received: by mail-lf0-f42.google.com with SMTP id g12-v6so39726804lfb.10; Mon, 07 May 2018 03:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=H5AsGQK117GBDtRaPYU4SWW7IPeBdR+I9XWa47zkxHk=; b=mZSL7mw6ZdqbFtB5fzXaEkrYY0IUH6YHoR+kdZHKgHwJ+x87FIn+pE4Tks387pVfJH Y8ELMHqQTEURY1kiTMl13LS9nk44yAt0anY4MI/LCZ5h+ld3FaEAnQKEpVglzgzwQFLN uuwL9Q1bXKuWn+bFpvtrbUbl+7qabzL+4ytVNy6yo7OpD/4lCM0win9zcoeFQKGXuvKp t6eRKR5BLFOCYML7d/HnkCNGmEVSpPTuC62oO8L0Zc8j6qVAqpz6WQJT3eGvv9zJy/id 6SzBtmXO1Dw/R7Jye89jK0/V9DXlm6OZ/CXqgfe0efP34WFAyJ2O1h8t6wzjUkcWGkgt 6VzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=H5AsGQK117GBDtRaPYU4SWW7IPeBdR+I9XWa47zkxHk=; b=LVXkgusd3D3p03rIka5cs476PfukpiAlc+Zn5lerNIvRZhRnFHVcqmGtRT0TA1vp3G EgWLN8o2Q4Gy/1XzHabUT1Mxe036VYxgnNp06/IxLs72xXUVQ/6NyBA+NmoVTtO5Eamg l5N+bGqyVhse0GWiEo80LcrmRizm2zIfLLsXP6zNNXoPtkMx47mIQeuhV9DzHEgjz6b2 GUT2q/j3XQQBJgg0F+L0OUZE+fSJFhxOtIszatiw0TezvIb8nD4e8S5cgJ8nmabohpDm GmJPPqZ4xNmpRlDU/cnPjfkOLADd5Rr1gXxRTdFoHFPJw5P2F/gToma0s/Af/NL1DvwH rB/Q== X-Gm-Message-State: ALQs6tBhZQmgY4C3GdlhfH+B33Mi7VTVaCLyCWDBZxu6/W80tiOT5MBK oYAaP7YV5Ddet4PigY201DM= X-Received: by 2002:a2e:5855:: with SMTP id x21-v6mr25472796ljd.84.1525687672129; Mon, 07 May 2018 03:07:52 -0700 (PDT) Received: from xi.terra (c-8bb2e655.07-184-6d6c6d4.cust.bredbandsbolaget.se. [85.230.178.139]) by smtp.gmail.com with ESMTPSA id b15-v6sm4254197lji.25.2018.05.07.03.07.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 May 2018 03:07:51 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1fFd3e-0006g8-QU; Mon, 07 May 2018 12:07:50 +0200 Date: Mon, 7 May 2018 12:07:50 +0200 From: Johan Hovold To: "H. Nikolaus Schaller" Cc: Sebastian Reichel , Andreas Kemnade , Johan Hovold , 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 , Tony Lindgren Subject: Re: [PATCH 4/7] dt-bindings: gnss: add u-blox binding Message-ID: <20180507100750.GT2285@localhost> References: <20180424163458.11947-5-johan@kernel.org> <20180426091018.GU4615@localhost> <20180502081637.GE2285@localhost> <5242FCAD-3139-4A9C-B9FA-7BBAA0E6AE57@goldelico.com> <20180503205037.7be552c1@aktux> <44A0BC7C-67C7-4116-849F-90FF7CF2B1F0@goldelico.com> <20180504114213.3xlzqxe74n55tk5s@earth.universe> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 04, 2018 at 02:04:15PM +0200, H. Nikolaus Schaller wrote: > It should be possible to cover this by a timer that is started > in this case. If there is serdev data received after assuming the module > is turned off, the driver has detected the wrong case - and can safely > close the serdev until we want to have it powered on again. > > If there is no response after turing off, the module power state is already > in sync and we can close the serdev as well - after the timeout (let's say > 30 seconds). Then, the serdev UART can idle. We should open the serdev > and start this timer also in the probe function to catch an initially wrong > state. Right, the only thing that worried me about that was that we cannot really delay system suspend for 30 seconds even if a somewhat shorter delay should be probably be sufficient (still a number of seconds). Configuring the serial controller as a wakeup source which aborts suspend or resumes if the driver gets it wrong might be preferred to draining the battery in suspend however. Johan