Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7134435imu; Tue, 22 Jan 2019 00:40:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN70BtmsEuecXaAxLqFPsZDQjFyfzyBDpQxlOXrnMzOYdAMvzZnGI2br4mYmACj2dLjNUJbZ X-Received: by 2002:a17:902:9047:: with SMTP id w7mr33600296plz.270.1548146430252; Tue, 22 Jan 2019 00:40:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548146430; cv=none; d=google.com; s=arc-20160816; b=hhfhV2TZotzsYNVAtJRzssR1oao8parv9XLZZ6bgST6oJ99BzY4oMTE5Z0/Q5LPs/K nK8T6uIjBsohudQdW4m4hII2e2yyv3ax1KNEDbg3+QbR7VY2Im20xz/9BY8R5zMZ9dg6 4CyMqInjfL+GKjw3TgBytAbuhD4h7iCG5DnXeqhYrlsCio6fhe5seuhkaELsw13XymT6 LVk6TvMa8XUBvdRUVq6O/0ZRdtnKNM0J8vEjdUHgPggNgOVSQcY27UaVm9FKstkBauo2 2B02nj6+01vLDwxHIpPhp6SA9tVuvIDd3Ux9eHKsFWQl9BHYjyA6Kg+zpv+Qy5KDgBuC nGvQ== 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; bh=m5A13cvB2eg27WOBv14LrmOzzEb6FVY/M7tYu0VplQw=; b=RcdNQTkguFf8kksq21Q2r8dCepZkSyiK2Hu4GRWHgvq1RxYdhmlJtxD1waefeAmiHn wSzZ/ocJxWwmu84uQD0jYEOAbxwzINQIFGhQvjygEC2gu3fQcZE25W5qHgA7ssaQEkRv voTHEe5HY/XMkgC6X+1n+3iaZ0DNpvlhXVy8ovcbwvh8s97tt2gqTIfZYgswfuwQ5MrT tTCnG7ktdeEHqjlfXU9fsQCy7x+xjev+TyOKyswiI1IAE+Qj2sDrIBoozLE5ytSLRRJO BZ4ecysIZYr2CGNbpNk96a1PcoWY3YlVOgJf0ho4t4kPdZVpTF4fcguNAdzXa7uqwkgJ VErA== 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; 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 b186si15230977pfb.24.2019.01.22.00.40.14; Tue, 22 Jan 2019 00:40:30 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727457AbfAVIi2 (ORCPT + 99 others); Tue, 22 Jan 2019 03:38:28 -0500 Received: from mail-lj1-f170.google.com ([209.85.208.170]:35656 "EHLO mail-lj1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727093AbfAVIi1 (ORCPT ); Tue, 22 Jan 2019 03:38:27 -0500 Received: by mail-lj1-f170.google.com with SMTP id x85-v6so19863336ljb.2; Tue, 22 Jan 2019 00:38:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=m5A13cvB2eg27WOBv14LrmOzzEb6FVY/M7tYu0VplQw=; b=ZGXKJL06+IJxd3o8SLe049RBc0JtBcLdXLJ6f0tdtMjH4GqwJV61HcKD8eDBE9eZZq eLUyV1ePRmFQ02lYXTKdFwOnETJzMDe7o++QhJ/6sgDufNatFZKW9JY3mbF6uPXtOELP CfRhQvVKhPc+xTXViGnYYoahdSBEvhQ+54BwDiApdSBWFdvIlGkiT/2KrRUG1v2xsGQD pkXQ5oP/bigU/WXdPTrEXbl/WinwEldskO5/6wtu/ZpI5aLypTuMF1MG+hnMF0vsnCVw CWexrjfPZRcQiRepalkmfubzm/rH7kwMqpbRYP+tSv/MRbcZzHmOnNfiDt5FoIuSzgg+ I+oQ== X-Gm-Message-State: AJcUukcWCTTOV2iI9IoU8oR3bjsm9D43vW6ekGolnPXTNC7llCTUWO37 hNGZaPS501VtQgJiWtTeDj6ayqX0 X-Received: by 2002:a2e:9c7:: with SMTP id 190-v6mr17817025ljj.120.1548146305381; Tue, 22 Jan 2019 00:38:25 -0800 (PST) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id v64sm2660087lfa.48.2019.01.22.00.38.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Jan 2019 00:38:24 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1glrZb-0003LL-Gs; Tue, 22 Jan 2019 09:38:20 +0100 Date: Tue, 22 Jan 2019 09:38:19 +0100 From: Johan Hovold To: Andreas Kemnade Cc: Johan Hovold , robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Discussions about the Letux Kernel Subject: Re: [PATCH v2 2/5] gnss: sirf: power on logic for devices without wakeup signal Message-ID: <20190122083819.GP3691@localhost> References: <20181209195150.5192-1-andreas@kemnade.info> <20181209195150.5192-3-andreas@kemnade.info> <20190110121038.GA9725@localhost> <20190110230223.18ecbd87@kemnade.info> <20190114105129.GE3691@localhost> <20190114131346.4d476055@kemnade.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190114131346.4d476055@kemnade.info> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 14, 2019 at 01:13:46PM +0100, Andreas Kemnade wrote: > On Mon, 14 Jan 2019 11:51:29 +0100 > Johan Hovold wrote: > > Good point. Unless we know the current state, we'd need to sleep for > > HIBERNATE_TIMEOUT before waiting for data reception. > > > > > > - timeout: failure > > > > > > > > hibernate: > > > > - toggle on-off > > > > - sleep(HIBERNATE_TIMEOUT) > > > we could also additionally check here for > > > if (last_bytes_received == GOODBYE_MSG) > > > > Caching and parsing the stream for this could get messy. And is the > > expected message clearly defined somewhere, or would it be device (and > > firmware) dependent? > > > I think so but I must check. > $PSRF150.0 > > But as said, these ideas are be for a possibly later patchset. Yeah, and remember that the receiver can be in binary sirf mode as well, so this do indeed seem like something that will need to wait. Thanks, Johan