Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1295811imu; Wed, 16 Jan 2019 16:37:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN6EIrwCgqqh1b1EZgYlHrMW79u6SbzdMh1ENi694k2Ezdf5yMVKskFlTgch1smeyOpewqvm X-Received: by 2002:a62:83ce:: with SMTP id h197mr12693058pfe.187.1547685458784; Wed, 16 Jan 2019 16:37:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547685458; cv=none; d=google.com; s=arc-20160816; b=z4g3/o9xjFTI3meI9n5AYeTlQ6455iLPwhN4231VNCpL7hKWbM4yobbbRgn0nLN8A+ 20u86a9r+eXNZGRw4PHm76hhxW+TjibUDCQT0GcPhnxTvLsGicD/0mSqKOExPeslohDA 5WfuQaSHnRZM2CR/XR6JcT+nZn4mVvchcK2pIIxFoK67wgkVJqxKGD/5NVr731vSm7Y+ 6SFD8Yhb+jx+sNK2NkcAKVGp8S1WCkHHTWh1QzUJPDMpfP7ad0YyFY2uHi5m7N4lK7+V FNkR1dlCKxG65J6yZxxHu/GzUYODIHd718lFuY0pLndqZ4htHntZjkfdfAtqMl+tIhc4 Fcsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=SlxBPAyHPuHlD9t5cx3Dk+26a1z4YNuD+oxh29qvfHk=; b=DDrDQI1+JJYSGAqliiQnmles8b54IUsIRAnjCtyr1cJKfbpxAWTqPxfAYdEL7Vj9/S hsw246C3aIb2sg7Qa+n2Ea5q0CdTm4psMTIfL34QQThu1etNfKXY64QJU7NrzW5g6sCn 5CwkiPvoKKteh7vKAWWkTc6UeIaeKdTKtWWbfbGirvjrOEghAR3dZMsRKbjmgdYxLron Kd5ABURE0SsLaMZPbA0R62bF8QxTCt7BqKK7NBwq6wGx873sgr3Rq4eRGGzLiJj5IREe PqqL4DfADJpUWanEXPyupKCKFJTn2kjXZJWtKE9e9CN+phXw3CarZ7zi4pymb3NQ9af+ Uxfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=Ih9SDbmo; 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 d34si7451947pgb.43.2019.01.16.16.37.23; Wed, 16 Jan 2019 16:37:38 -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; dkim=fail header.i=@kemnade.info header.s=20180802 header.b=Ih9SDbmo; 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 S1728648AbfAPVSo (ORCPT + 99 others); Wed, 16 Jan 2019 16:18:44 -0500 Received: from mail.andi.de1.cc ([85.214.239.24]:55466 "EHLO h2641619.stratoserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726942AbfAPVSn (ORCPT ); Wed, 16 Jan 2019 16:18:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20180802; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=SlxBPAyHPuHlD9t5cx3Dk+26a1z4YNuD+oxh29qvfHk=; b=Ih9SDbmocMsa1gCUqgK35rJuYB LgYaWr9yGWRklJEo1ThEyHUFdb4N6mMFdUyA+8MFddCjPS99oFK6DyVR1lkyUYKOdv1f6xa1PfGou jJC/LhmyRBvZtj0nOBzicvaF825ZRoFzIgHwBfzy9DHY8WAGdG6Yf7aj2uYn2dRiULPE=; Received: from p200300ccfbcc8e007ee9d3fffe1fa246.dip0.t-ipconnect.de ([2003:cc:fbcc:8e00:7ee9:d3ff:fe1f:a246] helo=eeepc) by h2641619.stratoserver.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gjsa3-0006IJ-Bs; Wed, 16 Jan 2019 22:18:35 +0100 Received: from andi by localhost with local (Exim 4.89) (envelope-from ) id 1gjsZz-0001eu-Ja; Wed, 16 Jan 2019 22:18:31 +0100 From: Andreas Kemnade To: letux-kernel@openphoenux.org, johan@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andreas Kemnade Subject: [PATCH v3 0/6] gnss: sirf: add support for w2sg0004 + lna Date: Wed, 16 Jan 2019 22:18:06 +0100 Message-Id: <20190116211812.6337-1-andreas@kemnade.info> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Here is another chapter of the story to get gta04 gnss power management into the mainline kernel. There is a w2sg0004 without wakeup line in there, so power state can only be determined indirectly by looking at the serial data lines. Then there as also an lna which needs to be powered for real gps reception. Changes in v2: - do not change behavior of devices with wakeup line - do not keep serdev open if runtime is active and device is not used - style cleanup - locking of sirf_close() vs. gnss_insert_raw() - name reordering Changes in v3: - more style cleanup - more locking - better regulator error handling - timeout logic cleaned up and problems documented - initial power off sorted out as a separate patch - renamed patch gnss: sirf: power on logic for devices without wakeup signal Andreas Kemnade (6): gnss: sirf: write data to gnss only when the gnss device is open gnss: sirf: set power state initially off gnss: sirf: add support for configurations without wakeup signal dt-bindings: gnss: add w2sg0004 compatible string gnss: sirf: add a separate supply for a lna dt-bindings: gnss: add lna-supply property Documentation/devicetree/bindings/gnss/gnss.txt | 1 + .../devicetree/bindings/gnss/sirfstar.txt | 1 + drivers/gnss/sirf.c | 204 +++++++++++++++++---- 3 files changed, 175 insertions(+), 31 deletions(-) -- 2.11.0