Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3296952pxk; Tue, 15 Sep 2020 15:45:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweFVTYdsY4znugbrmTICCZRL6g/LhaEEu70PfsIxarzvG5I0hk7oHRx53Y1WiuqX4wFQYF X-Received: by 2002:a17:906:5fc5:: with SMTP id k5mr21619158ejv.63.1600209925046; Tue, 15 Sep 2020 15:45:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600209925; cv=none; d=google.com; s=arc-20160816; b=Faou/luD7T2BgXxDYPvUoifysKFSbPRmc4qTspe8VVM5AdLkx+qknkE8crMpgR5KTJ RUATsnlMHHbmGlOfARaDNz+Qb4AlnQF43iWXDIimOhPpN28Mwgm4JGIyu9fDyH7KAsFx UZhESJlWaQ+l8fCxNjrXxfH55Ja+FGtO5Dk9eMHT+LDFDlmRPujCWaeQJE6e8Vx47s8s o+V0OvlQVT6XQZqehiT1dDgpsMcGFM7OIsg5Cg4C1t7zw/ljcdUVS9CC1bBb1oHXItiv 4JrSI4GOz+U4RthQn5f0I/uZYWKXRKi3r85VABugNe06bNv1WGoOFyxyayib/6k91f21 uf5A== 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=Bk8FHoNYavjQaDMXukfCSYNC7rOp0MBvdAbTSFJ9/og=; b=JZJ6/9jCfacOSN5KLrMCdwHzPoDantMQFxQg+wxHzGeQfDHMvjMXE2GcRMUXMWFeFW KNVEUJepSM5QGeMBqz9ZK6w5MySmZ0G32U+SJwItZ/K6AJVQqpVkByBYE00jIbE1QyB2 joiNAgh9D9AtnxJu5qNcHwxQmcfDhqDMDz3VWx1SykE4JqpDp9no22efZjaR6wWFcF5T 8+q9l+SwM7euuReWaKomQ/f50Mzl0Uz78LO055chOFUfdK9sGZql0LLQCqZ4kNVC6Zjr CWzw1NZiu8Ac35ISqJnRNxhi6tkBL+EHhjqN/ukASXMYK45SwKGNlRm/jRcM1Up9/lyr DDfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LM3vKSgY; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g23si10178291edm.130.2020.09.15.15.45.02; Tue, 15 Sep 2020 15:45:25 -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=@gmail.com header.s=20161025 header.b=LM3vKSgY; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727788AbgIOWlm (ORCPT + 99 others); Tue, 15 Sep 2020 18:41:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727511AbgIOP5x (ORCPT ); Tue, 15 Sep 2020 11:57:53 -0400 Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42D4EC06178C; Tue, 15 Sep 2020 08:29:41 -0700 (PDT) Received: by mail-pl1-x644.google.com with SMTP id bh1so1527051plb.12; Tue, 15 Sep 2020 08:29:41 -0700 (PDT) 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=Bk8FHoNYavjQaDMXukfCSYNC7rOp0MBvdAbTSFJ9/og=; b=LM3vKSgY2UgkNKUQYWyLUW3BKLsSq+62daDFWAUjlul9vZzWf4dzoBZ90heTZum4QG MghPqoe0FtuJFRhPz0Xc3khKfOsoGWKeHTX/T4fTeVCe16wj/R0bgzOcluhVJDyx2Jzq 5CS4QyXxh4BwcJ5mmGUmlU2z2Tr/0N1MdeQLGcDIksOcKxsIyMp0s9dYEqVbtoCzXCRP TymqMryLPlGrEOQuD5YbuYMP9xtaKuO0nkiBODXXKDA4BR1d49aGFVJ8SrN2qQamDtT0 2QdE+lo3mfc0XEHYv6HTeEKVvW4OqQjVd6r6dzxD4eHFs32rzrNKiNT50+1DLG9JEWV7 1hgw== 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=Bk8FHoNYavjQaDMXukfCSYNC7rOp0MBvdAbTSFJ9/og=; b=IdXvRi6ALTqw9kccGpE9tOOUYz1RktAsifSwKRG2ATJKxW99QioZz1Dz7HjTMWRjJZ uqBqmv7VhWf9jjFUx02XtNsGAQAD76+G+vn7VgARRxDpxamSfm09PeFhmZiqAFWhFaR6 OY6vzCF8gsZN5eO1B/5ssD8W3dmSvEnFlYNWQBLogkLgpWQVSj/vkoG4KkIqa7nfTQvv UpDFqWbV9JjCxAV6I187XhiQkhtSYRZLuziVWmPPaFU42DxRbzg5xPX+LEzXBvfAV2SX M24uag9D2bdfhZOrZZo7LXHoE+w29ZZmhjJ6E9P+vhwoaOXQnkzrfPEngoVuGOKcsr+k qVjA== X-Gm-Message-State: AOAM531+PL/d5UmtfTcO9uu9ohUBTs5F32E0XQyg70JWzEq66SGIuidR Hvz0k41l1EDtDKmBRhWk/8XUzohd3VOVz5UFxCx3lHJKh7N6OQ== X-Received: by 2002:a17:902:b7c7:b029:d1:cc21:9c38 with SMTP id v7-20020a170902b7c7b02900d1cc219c38mr8557505plz.21.1600183780761; Tue, 15 Sep 2020 08:29:40 -0700 (PDT) MIME-Version: 1.0 References: <20200909102640.1657622-1-warthog618@gmail.com> <20200909102640.1657622-8-warthog618@gmail.com> In-Reply-To: <20200909102640.1657622-8-warthog618@gmail.com> From: Andy Shevchenko Date: Tue, 15 Sep 2020 18:29:23 +0300 Message-ID: Subject: Re: [PATCH v8 07/20] gpiolib: cdev: support GPIO_V2_GET_LINE_IOCTL and GPIO_V2_LINE_GET_VALUES_IOCTL To: Kent Gibson Cc: Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , Bartosz Golaszewski , 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, Sep 9, 2020 at 1:35 PM Kent Gibson wrote: > > Add support for requesting lines using the GPIO_V2_GET_LINE_IOCTL, and > returning their current values using GPIO_V2_LINE_GET_VALUES_IOCTL. > > The struct linereq implementation is based on the v1 struct linehandle > implementation. Seems I have reviewed v7 of this. According to the changelog most of the comments are still applicable I think. > Signed-off-by: Kent Gibson > --- > > The linereq_ioctl() is a simple wrapper around linereq_get_values() here, > but will be extended with other ioctls in subsequent patches. > > Similarly, the struct line only contains the desc here, but will receive > the edge detector and debouncer fields in subsequent patches. > > Changed for v8: > - fix BUILD_BUG_ON conditions and relocate them before the return in > gpiolib_cdev_register() -- With Best Regards, Andy Shevchenko