Received: by 10.192.165.148 with SMTP id m20csp3964311imm; Tue, 8 May 2018 00:04:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpPr10Q3v3VVpaiLz0gAzZTuZMETJJVgi75FfTUqGcsstB8Dx9FdyVC7vXEwAMznidxurJA X-Received: by 2002:a63:4245:: with SMTP id p66-v6mr32366832pga.345.1525763042762; Tue, 08 May 2018 00:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525763042; cv=none; d=google.com; s=arc-20160816; b=YOSPaaxHLSfGUDyX9SscvMiKEo8Q0m1aCin1rvMCgJdGUidx484zKBfH1E5lEPg0BU Z3gNRQ3UYEuTCDarcdmdfZUS9+wjasyZzHC1ZTdmvGC1upZBiEmMqTfFhoqCIUwMhQvr EvShqyYok6vGtOL6rzaYW6M0wI/DyhNxaERUuZ7v6iLOw6cPb/XrFbgogEGm6NPf7vP8 UnDFyf319dfoa4qerKiI+wuVYi2d/iSBF4YmP+QajQB4cXTtd6PPNT2LkS9rn+vLwVjA KEpPBoRvU+KAKmP618Qvhy58DmX0bUEGUvQZidhvAN+c5NAKsS1gp9V0Ha4In3rpSw5d iAzw== 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=bJt3phMwrsYIcJVwRbjY2LWJVfYJ1hQBoPXk6u9hvYU=; b=ZPLqKwzb62X/0eptvUcINwXmo1Q30h9xbe7OpbYjFBoyEko6h6HExH3bjtEjuEhCVH EemtSy3hMBZ+0275HrcDfFaORf6xzuAhrclebH1OdTnn62iMJznV/barntTXat2XEnIP Zmo8MP3Ic7lF3pVWeGnGw6HXWDQ2tKHrpC9PWRNSRJiRU31AYZTDW6EYcqEnFxU/mtb8 xkQOHfx+HcjDDFpqxLGbe+yJGelXJqubFWQAPEm+1NVIF47lNngcWns7J3qI5QoyQOrF kzvQH4cGVEx3KNhe7s/0tafyPMKUEmoZPo1Sh+T+oJjhxWNk8rLGfOgUAM4uBz8WK+Kb y0yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=G+Xl1BuH; 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 f9-v6si19083661pge.639.2018.05.08.00.03.48; Tue, 08 May 2018 00:04:02 -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=G+Xl1BuH; 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 S1754348AbeEHHB6 (ORCPT + 99 others); Tue, 8 May 2018 03:01:58 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:41026 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754302AbeEHHB4 (ORCPT ); Tue, 8 May 2018 03:01:56 -0400 Received: by mail-lf0-f65.google.com with SMTP id o123-v6so44223879lfe.8; Tue, 08 May 2018 00:01:55 -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=bJt3phMwrsYIcJVwRbjY2LWJVfYJ1hQBoPXk6u9hvYU=; b=G+Xl1BuHcrjw1IPQ5A7nragPscHGVcibhF5g9xMmtq1J1xZclo+n7wAuGy4m6ghkPw +8KdcBYDYeLeilWvLM3/SM1t6b8OvbOj/4z2fl1qH/a9+ZLjfgM0y/m1YWd5f6LEn9Xt /7eTzcF3i87mTZl91cxBljMDVJYWKdOCZBCM39VwveSDDBaKXQY7Z0aFKwMDqmjdaRNs 7ijn+Putd9vEXC8CXwTmlGGVTXfMkbATP4YJulNvEzGiHNsteb9M/0PYHmd0oxoWus/P I0SX+XCXUFdN0X/kegG/jbGNxqKnP3MsE6ORq4mxN/KWr+YaoFaMtT9G2Age0InD9n9v 1c3A== 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=bJt3phMwrsYIcJVwRbjY2LWJVfYJ1hQBoPXk6u9hvYU=; b=R6X38UDPxVXNVWYR42DKyATnDqD5+7MrcQGfMO37VsjxJxlTyelaMxYMRCJ5xBlBqL Qb8g/VEeIzivheoO8DkgSpkkwlfSlvlUJUTBUgyOx7+LCfzQX8EuHXRbkVOwc0Coowlo 4QeU7V8/dF0RWOnnUWlpK9K6UEodFGL2GQkkhgMRQc7voF3ElKOODavSO+hUTu4UOjYy lYbBAIEAkVdVymNZODkG+0BXHaBFmjlJLBs28p1NRjyOADZLGuhH+GxX8++ivajgRRjX UtoSBzBwU7Xc+2wkJOgZWxK/ryh13dVMcPLwm4AaSbBFoMNBRsdAZCyMYn/OvJyE9aa/ 6evg== X-Gm-Message-State: ALQs6tDZw3OjH3UfoPr2muPeErc0k/YdniSO8xHgH0OAZPpYcl34WtHO TpIlqmCVxlLMAqfJu9AHjr56ilNi X-Received: by 2002:a2e:4185:: with SMTP id d5-v6mr26227757ljf.114.1525762915065; Tue, 08 May 2018 00:01:55 -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 u7-v6sm3935918ljj.96.2018.05.08.00.01.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 May 2018 00:01:54 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1fFwdF-0007nd-Jf; Tue, 08 May 2018 09:01:53 +0200 Date: Tue, 8 May 2018 09:01:53 +0200 From: Johan Hovold To: Marcel Holtmann Cc: Johan Hovold , Sebastian Reichel , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Andreas Kemnade , Arnd Bergmann , "H . Nikolaus Schaller" , Pavel Machek , LKML , devicetree@vger.kernel.org Subject: Re: [PATCH 0/7] gnss: add new GNSS subsystem Message-ID: <20180508070153.GX2285@localhost> References: <20180424163458.11947-1-johan@kernel.org> <20180504132741.brn5jqv5ufjhp7ky@earth.universe> <20180507102056.GU2285@localhost> 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 Mon, May 07, 2018 at 09:06:44PM +0200, Marcel Holtmann wrote: > >> I have one concern, though. While providing raw data by > >> default is fine generally, it is a problem with device > >> auto-discovery. I think there should be some IOCTL from > >> the start, that can be used to inform userspace about > >> the raw protocol being used (i.e. "NMEA"). I fear, that > >> userspace may start to just assume raw = NMEA without > >> having this (especially since all initial drivers provide > >> NMEA). > > > > One problem I see here would be that the driver does not necessarily > > know either what protocol is currently being used. Some devices have > > boot-pins which can be used to configure the initial protocol used (and > > this could perhaps be reflected in DT), but this can often later be > > changed (by user space) and even be made persistent using battery-backed > > ram or eeproms. > > > > Also note that at least u-blox devices supports having more than one > > protocol active on the same port... > > as long as userspace can determine that it is GNSS hardware and what > hardware it is, then you deal with the rest in userspace. Yeah, I think that will do for now. Thanks, Johan