Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1404992ybt; Thu, 9 Jul 2020 06:22:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2xVEeOvg7QPl58rZWkMakhfAeZcyH+l+pUVDKsW0pynctj4ccl/fbkejHWyvHp1Qx8BSx X-Received: by 2002:a17:906:71c6:: with SMTP id i6mr58787191ejk.103.1594300933961; Thu, 09 Jul 2020 06:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594300933; cv=none; d=google.com; s=arc-20160816; b=QXh5yeGERDy7NmvDG2LnmS4L85S6ASRkQ5bqPStS8ohupfKTqC7vNAmBJBlOnT8q+5 bzH8PUb9qyq42VqRE6bYdRnVpwpRdFDftrFANUfYpIBHbMXot52rGs2a9vp7Ugg9u6oM dAIIIeNhf7Vq/fwzMYv36VSWjGUZiUn7Pj9/LhqTJEXclRqNoitSOFehIc/gZRuHACu7 Kgf+FAAA0RLIMybepMqYY5VuWOdFvJ1X0ssI55z/e0cTCJbFprVNFvRnBLbVpmaDibnf nnvPhd0OQp7ZInuntJq8roX7Irq+H+ctS9q6bSqJB7TgyI/LNflSJklEXekhQWleoG9d uIQQ== 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=wDgz11ShYk/Rb+cjhB3hGNA4H8iFe+o/AJhL/6TvR/c=; b=Wav0JjrfL2PW+7Wr5BnGDv7PWBM6N8XOBV7YVCIVhCruPMD1ub6SZZB6lMHkFYcPFZ CUNAb6VJ63fZEjvhSyX5hhJA9GRbbcyydihr2Nt54T8dq6vUP+sX1NVr1B+g2qIzS47Y pXHa7gfYXWbI+0V9ILcj/bJSwWkgGoV0wdl35+i8J6tvlv1cn2kBJxDaK0PkuzSoyqNe Tr9a5H1V2oEtozUEUD4f0uc4XTz0WXLKJ1a5lMKJ0fXoyVuHaSs3ymYocSmazq2/MVuI lnbK9i2qq3W9yLJlhOf8VKb+XzrvqkkHC8zhziOVcPRUXr+9fxMBmgos1FOJMw3yZQ21 6Abg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=rCiEZYZ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y1si1703169edt.101.2020.07.09.06.21.50; Thu, 09 Jul 2020 06:22:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=rCiEZYZ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727071AbgGINTo (ORCPT + 99 others); Thu, 9 Jul 2020 09:19:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726941AbgGINTa (ORCPT ); Thu, 9 Jul 2020 09:19:30 -0400 Received: from mail-qv1-xf43.google.com (mail-qv1-xf43.google.com [IPv6:2607:f8b0:4864:20::f43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C80E8C08C5DC for ; Thu, 9 Jul 2020 06:19:29 -0700 (PDT) Received: by mail-qv1-xf43.google.com with SMTP id ed14so906961qvb.2 for ; Thu, 09 Jul 2020 06:19:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=wDgz11ShYk/Rb+cjhB3hGNA4H8iFe+o/AJhL/6TvR/c=; b=rCiEZYZ9CED5ElkKfWtMCX8ixiQqplvTeIu+Ibn+QBVy3wXBuDBikSfnSKeNCRj/VB EqrVchTsBbGc2W4JWOIzzNVs1qy4idQxgXy97+072cnPMGKGFuMvjU3yMnu4EE5TT6mj ooFWv3xAjwHTB7RfTTbBACSQ7WhJUIzjDqmPKM91EatqfR1ThIFZ0bhRDCUVl230P+P2 pW3pfIm3zvrjncMfAhRrznCBtGEMNIqV8f4UKRPrlh0GmAqAnTpZ3MidAZEOM8F0zIvp rH2B5Xpi3y5E/XAeSdtuqt5ODAyaLxUXME5yc/FwYj2cReLsn6uLB+MOM284lCaJi6/8 BmXQ== 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=wDgz11ShYk/Rb+cjhB3hGNA4H8iFe+o/AJhL/6TvR/c=; b=qjl1qFT7cqRfkN/UWxcQkR2YwdS25/5H/zyEPtO4g7CN2mphRWLg3pj1dDfFegUKey 17yVEul1nWHLCsA1WkfRw/dmANSUfObNQGqGhMCnOO1Vw/kmTZYM0SHR9QoThEn4ErrI TUy/tsONs33gHzUkqSdamN9CWXlevZeVR4maog4ARJilakv0eL64L4WD19ylVi19PScq SA6T/lUTbo4niaT0wdJBh5oap5yKj8PXmvzBjYiigwdb85h9k+vKArpJCwfGjP4XuJs3 nmCICW4HOkojPqkCQ3V3GdJdFa3RJPdtYeN7/E1vBl2eKqDUGG0WSgzXkrS3CLdjfkqf +JAQ== X-Gm-Message-State: AOAM533qzuscgl4Mmxufs/AuQmSqXfTKZnBX+ijIcV6fl1RMlawMAWS1 1y6nr2a2XLndvNYxfC5Ds+nwIqy+Liek8tmzRngcEA== X-Received: by 2002:a05:6214:72c:: with SMTP id c12mr59335115qvz.76.1594300768959; Thu, 09 Jul 2020 06:19:28 -0700 (PDT) MIME-Version: 1.0 References: <20200708041600.768775-1-warthog618@gmail.com> In-Reply-To: <20200708041600.768775-1-warthog618@gmail.com> From: Bartosz Golaszewski Date: Thu, 9 Jul 2020 15:19:18 +0200 Message-ID: Subject: Re: [PATCH 00/17] gpiolib: cdev: pre-uAPI v2 cleanups To: Kent Gibson Cc: LKML , linux-gpio , Linus Walleij 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 On Wed, Jul 8, 2020 at 6:18 AM Kent Gibson wrote: > > This collection of patches provides improvements to or > address minor problems in gpiolib-cdev. > > The majority of the patches (1-7, 9-11) have been pulled directly from > my "gpio: cdev: add uAPI V2" patch set, as they are not related to any > uAPI changes. > The remaining patches were either split out of the remaining patches > from that set, as they are not directly part of the uAPI changes, or > were inspired by fixes for issues in that set, or were only noticed > subsequent to that set. > > Changes since "gpio: cdev: add uAPI V2": > - rebase onto latest gpio/devel > - fix typo in patch 1 commit description > - replace patch 8 with the blocking notifier call chain patch > - rename priv to cdev instead of gcdev in patch 9 > - fix error handling in patch 10 > - add patches 12 to 17 > > Kent Gibson (17): > gpiolib: move gpiolib-sysfs function declarations into their own > header > gpiolib: cdev: sort includes > gpiolib: cdev: minor indentation fixes > gpiolib: cdev: refactor gpiohandle_flags_to_desc_flags > gpiolib: cdev: rename 'filep' and 'filp' to 'file' to be consistent > with other use > gpiolib: cdev: rename numdescs to num_descs > gpiolib: cdev: remove pointless decrement of i > gpiolib: cdev: use blocking notifier call chain instead of atomic > gpiolib: cdev: rename priv to cdev > gpiolib: cdev: fix minor race in GET_LINEINFO_WATCH > gpiolib: cdev: remove recalculation of offset > gpiolib: cdev: refactor linehandle cleanup into linehandle_free > gpiolib: cdev: refactor lineevent cleanup into lineevent_free > gpio: uapi: fix misplaced comment line > tools: gpio: fix spurious close warning in lsgpio > tools: gpio: fix spurious close warning in gpio-utils > tools: gpio: fix spurious close warning in gpio-event-mon > > drivers/gpio/gpiolib-cdev.c | 385 ++++++++++++++++------------------- > drivers/gpio/gpiolib-sysfs.c | 1 + > drivers/gpio/gpiolib-sysfs.h | 24 +++ > drivers/gpio/gpiolib.c | 15 +- > drivers/gpio/gpiolib.h | 20 +- > include/uapi/linux/gpio.h | 2 +- > tools/gpio/gpio-event-mon.c | 3 +- > tools/gpio/gpio-utils.c | 4 +- > tools/gpio/lsgpio.c | 3 +- > 9 files changed, 217 insertions(+), 240 deletions(-) > create mode 100644 drivers/gpio/gpiolib-sysfs.h > > > base-commit: b239e4454e59bc85d466eb5630da46f6a876df77 > -- > 2.27.0 > Hi Kent, The entire series looks good to me, thanks for doing this. I'll pick it up into my tree and send a PR to Linus. Bartosz