Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7521376ybl; Tue, 24 Dec 2019 04:10:51 -0800 (PST) X-Google-Smtp-Source: APXvYqyMXFkKx6XgLiXAvqzRs+zS1011xfOoXAYN2osLCuug5IQKpR5DzsbckwFosFgKtUZxd/lK X-Received: by 2002:a05:6830:10c6:: with SMTP id z6mr40356359oto.203.1577189451345; Tue, 24 Dec 2019 04:10:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577189451; cv=none; d=google.com; s=arc-20160816; b=cmn/+W7JdChvBlTfBvpc2TJaWbv7HhsyvJuz8aLQtY+Bt2JhSkintorwfFDgBWhlP1 zvCpBr8oHed5dElHXZM8ZYssF1Nim04VgmTJbKGtoGyd58D/8+NdqbeGQNsD4ClWf9tB 56JK8lNPswXcRDmEDgi7nC61fXY9Hh4iPnlSTFxk2HSMtJmUwlLOY6tE3oFbMuTKdGWW QiErYpfOD7oB22tMhFmSW/SVtuUOdHvn8+l/opGoJZ6xQ1xfzG7aJ87PFqtUTJTxPJRc jSBZY1cRXcAHEGrlK/NdkaorSAYqHkvISsqDQ69nMftwwXV7GIyzMV7YjRwTMP3hBVCC mVXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=QhDBoTIiirz7+f0YK9tYWNUzE5UvM7uCBjdyK0UCnvg=; b=KEf3HsOoQPCoYmqIc63/cwwpP5/i0arETu+GYk2Tzzfv+4Jy0lDrb75uu6TYNTCLYv zikUz7hAwAPkFHlxvQDm5eGk6BNUtEcaIZRpuHDL+qTn0BMnTUp1aTh0JXm4bUiPSfJJ BxIlc3cdzbImq5nO6Phb6Zc+ChsVu1S2BkOLfTwHO6YvEd0VWQfD99Oy3GbY3ztZmFW2 H1LqcTb8gtfzIpBbNZxfHI4BkEYS0yVHlkhzY6bMosCDcMxnnEwuuLbyH63EpwB0BzOv AENvCPAffCfF70USQpsENU7cyrZpwutu7SkNZgoAi1zz2Zk4TT3Q54Zp1ohfpXX0fmtq ejYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=y3KDEcah; 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 y8si10773295oih.141.2019.12.24.04.10.39; Tue, 24 Dec 2019 04:10:51 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=y3KDEcah; 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 S1726893AbfLXMJw (ORCPT + 99 others); Tue, 24 Dec 2019 07:09:52 -0500 Received: from mail-il1-f195.google.com ([209.85.166.195]:41668 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726206AbfLXMJw (ORCPT ); Tue, 24 Dec 2019 07:09:52 -0500 Received: by mail-il1-f195.google.com with SMTP id f10so16429523ils.8 for ; Tue, 24 Dec 2019 04:09:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=QhDBoTIiirz7+f0YK9tYWNUzE5UvM7uCBjdyK0UCnvg=; b=y3KDEcahXkPz00bBc2gzvixr4nz/dUNEvI1adQ3p6bsX05r3hhXcptXof4QPv/pnGR qq/H6WR1/g0BDANyfFXA4+dafm6vW4qq7o//udDWt5CZmZJjJXG6qzGnmWqEH2cAb/BU ni2hlBYACwJ25LtD/5XidIAZfLb1PZbh/NesV9AG8131kZyajBsvt8lT6R9+tNUGVcbC F2S+O+xSrkLN3/eANdD5b+RY1JKgEVmbwr/9h3Y9ytalfZR7r31oU3tb6UXHniLX+zS+ KA2tihHzMEN5RZwhyrTd9HFE4m1zF3fibrpRBA5ayqLy7l/+5T4TpcYn+KGEWRdZqYHO FnLQ== 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:content-transfer-encoding; bh=QhDBoTIiirz7+f0YK9tYWNUzE5UvM7uCBjdyK0UCnvg=; b=IHtV4Eqqkq7Zc9NKvU8BB+BWrsc+L5wZIDVX+RUl10v56708R/Z6MvtjdMqs10S2Qm E0mwA5Pqm8gp9NQVS8C2wJ9uSE+ovan16QWMBwJBerCcaFMAWz8ZbMLhXI3ZJWsffven We+J99FCtfHTaEmShNeBo99n2a8zqEjauS0VFkQE6FUVGiDoAB1xOFy/EvVIRMBd3Ki8 vSXcZx5pFyG55upE60SzpNamyi0YkGKpHWgstVWt+z8iOOa3hqcAXsZiD8Tg8/MNa4pR RU+UNTYJLQoFBqYsav9StmjjJniEDu++V6F1OefZku7bTgZV2i62bPqRezSj1qofoxSn +J7A== X-Gm-Message-State: APjAAAWqI+4+S8HC41MgroYyzuUmbDkVvG7nCe79IkzFGtIBfrfYWvoK aZKRWRlshzUm/SrqA23X71QQm0gGOq3sDmNvqKFhQA== X-Received: by 2002:a92:3b98:: with SMTP id n24mr28770466ilh.189.1577189391707; Tue, 24 Dec 2019 04:09:51 -0800 (PST) MIME-Version: 1.0 References: <20191219171528.6348-1-brgl@bgdev.pl> <20191219171528.6348-13-brgl@bgdev.pl> <20191220121543.GY32742@smile.fi.intel.com> In-Reply-To: From: Bartosz Golaszewski Date: Tue, 24 Dec 2019 13:09:41 +0100 Message-ID: Subject: Re: [PATCH v3 12/13] gpiolib: add new ioctl() for monitoring changes in line info To: Bartosz Golaszewski Cc: Andy Shevchenko , Kent Gibson , Linus Walleij , Greg Kroah-Hartman , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pt., 20 gru 2019 o 18:29 Bartosz Golaszewski napisa=C5=82(a): > > > > struct gpioline_info alone is 32-bit aligned but its size is 72 bytes > > > which works for 64-bit alignment. This new structure's biggest elemen= t > > > in 64-bit, so it's 64-bit aligned on 64-bit arch. We have 72 bytes of > > > gpioline_info, 8 bytes of timestamp, 32 bytes of event type and 5 * 3= 2 > > > bytes of padding. Should be fine, but I'll add comments to the header= . > > > > Yes, what I meant is to add comment at least to struct gpioline_info de= finition > > that if somebody would like to change it there (which also might be a > > problematic here, if there is no versioning scheme / length member). > > > > > > > + __u64 timestamp; > > > > > + __u32 event_type; > > > > > + __u32 padding[5]; /* for future use */ > > > > > +}; > > > > Offtopic a bit, had you had a chance to look at Buildroot and our scrip= ts > > I shared? > > > > Not yet, I'll do that over the weekend. Now tested using the buildroot image you posted. Thanks for that, I'll make sure to use it to test the v2 API for lineevents. Bart