Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp456165imu; Sat, 17 Nov 2018 03:12:14 -0800 (PST) X-Google-Smtp-Source: AJdET5eGbnrq5xlK51DkZGR6TMIMBUUsJJwachLNiQckXRumP/wSIbP0EvPCTxjjh23foAGEmZPr X-Received: by 2002:a62:5615:: with SMTP id k21-v6mr14738952pfb.190.1542453134599; Sat, 17 Nov 2018 03:12:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542453134; cv=none; d=google.com; s=arc-20160816; b=Cw+R8W3Ea7q0l1dewTF9NfEMWYjowJiuSfmgN9MwuKIPCISzuHHiuearpK9vKZxTM4 QAhcZzcPVuMkp+kPu7N3rSHiUA0QFH1T6ERzODfNkz4GGZ5S4YnAC7Hg46DgndMlOhmB 30mElNOpoTuliIwNnL7wSiNIxTNSB/+u4tE+wtXFH0IZFW1Ucdlaud/6rNWLVNoKs32R oRYw5md2Agcs/vmyldHvbMBXnRLH63FRvLRfDx9oBGU7k4KMqeOlSSEf9miuUf9F5Qx3 vzjGibLAx6RJc8dZ0ueD8720CAGuBxsRCT8g5cA+z5oQqBA8WT9STwjZKP/gWknuOTKD gJRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sKtSs7b/UrM3wVvSIxclujlNf5Ety+rlyRmk1MtkH/8=; b=TB1T/ceQko/oD3+GkNk8tOpYBpHzxqpoHmzxEjnLhuJGVAJ8zC+xr6E+p3pUfJUSDM A9iIufSDbEAP7ZBKfllrrmSxYuRnvVAr50gED4LFbdWGmzmGpHNOei+sk00H4j2w7BfZ yJfL/S7dH+w74m2WLjhm/l1mNW4/EDLWQMrA9WRU9mdJivksqgNw5mu9BpbD5yyfOS+L uMgyImXUf00rOaNBSvstod99TxCksVM0Uy5Gm6GdylhTfG2FWA0CEEGbNML1xLko2825 Ih+WJlxNTvkPvbKm2wU5LKRAk8njEvdHGIjati2WeGDTnnGaYydE6Spu24nfmkyu6Vvf +zrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WgITSpKH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si35517737pln.299.2018.11.17.03.11.59; Sat, 17 Nov 2018 03:12:14 -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=pass header.i=@gmail.com header.s=20161025 header.b=WgITSpKH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726113AbeKQV1m (ORCPT + 99 others); Sat, 17 Nov 2018 16:27:42 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:45324 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725929AbeKQV1m (ORCPT ); Sat, 17 Nov 2018 16:27:42 -0500 Received: by mail-ot1-f68.google.com with SMTP id 32so23135214ota.12 for ; Sat, 17 Nov 2018 03:11:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sKtSs7b/UrM3wVvSIxclujlNf5Ety+rlyRmk1MtkH/8=; b=WgITSpKHq70GE/UShaszHdVZS+z59mQkQ6SSFoPUbMhEHzw+5JRkiJ639MAhNNtXKi hjnHKq/XfYk7W8V9taAOmao1jw/JaH5vVkvwHpUaoYlYSCtPa91NWgZQch/QDuL9w0ET pZKiYxw4ChTRgsDKx4hx2D4bRWMwXRpVzcOy/t3O0PxDkWt73Onm8oT6vU0CsRMO+Jx+ dR4l0ofcY1povJ0UrZ8cEDK/cM6Q6lZlGiI3gV8v+sEmnPW+wRD13FNTRGzPEDaFkfni CDMiSvjbKBEF1hWLkj2SRaWAEq+PiNzD2f/XzYOrXCbxeglmdpG8lOfUbczrvMix2lHP G9gA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sKtSs7b/UrM3wVvSIxclujlNf5Ety+rlyRmk1MtkH/8=; b=SskBVyilfsmpFx0hyY55D1uUg79pJXngsyYBDME6qBPw3q49egnNdsnKp0+3iweizD LaAZ2eDHAqzNH+vPYp0a3ySNYHucFikiSSIFNV6zAS/sw8+QmH5F8nxejeK+OeUO7msD v+clutThueVfAeSVDsHDl4f3naPbBYLDd9Bh8I1lA3JXIlfbodpjB72Dsh0GBJrv8lQu UesjB3Z++mayPVOTEWFIefzk5oGHm4eIi+vY0wMhBzOqXp7ZFK/ACGfJjZHBwSHF9+oT OALvt82SC82xEFHPKWRpUpQ/BcqzGTSuywYTLIq6f2kVwIgdkhGnLEyESE4Efy2CnURW //6w== X-Gm-Message-State: AGRZ1gLfqenGuF0p51/qan4y6v4lFoBjGs33IdyOruf7AZEZk3DPYt00 PRmW68HpgqpIt0qX31gLoT97jrAiCRU6tbtu59QCwLuq X-Received: by 2002:a9d:5549:: with SMTP id h9mr7980555oti.83.1542453081320; Sat, 17 Nov 2018 03:11:21 -0800 (PST) MIME-Version: 1.0 References: <20181113034007.3878-1-tom@aussec.com> <20181113034007.3878-2-tom@aussec.com> <20181113034007.3878-3-tom@aussec.com> In-Reply-To: <20181113034007.3878-3-tom@aussec.com> From: Philipp Zabel Date: Sat, 17 Nov 2018 12:11:10 +0100 Message-ID: Subject: Re: [PATCH v6 2/4] pps: descriptor-based gpio, capture-clear addition To: tom@aussec.com Cc: LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tom, On Tue, Nov 13, 2018 at 5:08 AM Tom Burkart wrote: > > This patch changes the GPIO access for the pps-gpio driver from the > integer based API to the descriptor based API. It also adds > documentation for the device tree capture-clear option and > device tree capture-clear extraction. > > The change from integer based GPIO API to the descriptor based API > breaks backward compatibility for the devicetree. This is due to > the descriptor based API appending "-gpio" or "-gpios" (see > Documentation/gpio/base.txt.) Documentation/devicetree/bindings/gpio/gpio.txt says: "While a non-existent is considered valid for compatibility reasons (resolving to the "gpios" property), it is not allowed for new bindings." This is not a new binding, so there should be no reason to change it. gpiod_get() and friends support this by using the "gpios" property if they are passed a NULL con_id. of_find_gpio() in drivers/gpio/gpiolib-of.c contains the relevant code. regards Philipp