Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp679907ybb; Thu, 28 Mar 2019 10:03:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzaDu+vO4dMDkyGql9LODlywiUbskNgwCWuSPU8lkpVUbY3tjkpWsXfdI6ztqCNd6eg2gl+ X-Received: by 2002:a65:63d7:: with SMTP id n23mr12464571pgv.26.1553792588627; Thu, 28 Mar 2019 10:03:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553792588; cv=none; d=google.com; s=arc-20160816; b=AItVLLGsFyRdizePOk1D0ufwd/YiUEsXpPp7bDtQ27mhBrmOZTltPlv4IxF+3KhNF/ gCZO6ANbJ4QmVx8qIKSzmd6FAm251ppAS5y0BDOuVr/JZMIDR57NHa5wKuMlrX6aOoOR FakNSQwyyDYSDgJ3Hn4IfFUpN+rMGcREiFoHG4xty8h6ltnCeAog6jVgijvwnkFHQBGi g9cdlxkDPFgfuOJnL3mEGnu9ieZNUjAO0vfBRKiLq1q6Pcv7Xbd186kVLZRtDzU0BEG/ ssI9xC4m2e9x6FNBOxRWr1okIZ0k0YZXMJp3/MxHHtv2jMcQUEKbCwkHVICNVwN0VAyM Pn0g== 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=2/msr4RbWJfoZvhNBGATtM7u9No1FKJsLc/sMNbvprQ=; b=C4ACdgW8hMQ5obs9PUZr/vlEYT/tn8O1PUwh5kNNYcv9kkig9+kVa0IfEtiHkkg5LF oTpUTM6/BDoOxS2njYgXcUWcfpW4LBlHJ1Dqzqr2bQSFGF7JdhXdlRCw7SbhcMmV5Pw4 F1EkYvfPRY0xzVUWo0c6ByVLwXXvbFZ17yKKdV6s3SH9DyjKBxk1mgE50QU9ry7Hf4OX i6ZuHKhhMTb1lR1GWShmDZZMzi9FmV/P3ZQdFzM5SvbGrJu/hKcIHGT8Wa5l36OV+X0t E2bbFiDM6GUrEvGlZ5P9KA7f6rS5goJWKQSMvZx3RWkRx4jHQAlMHXHRam/tWMbluTKt 8dmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=vIektQj8; 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 o86si18005615pfa.270.2019.03.28.10.02.52; Thu, 28 Mar 2019 10:03:08 -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=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=vIektQj8; 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 S1727134AbfC1RCH (ORCPT + 99 others); Thu, 28 Mar 2019 13:02:07 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:38726 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726210AbfC1RCH (ORCPT ); Thu, 28 Mar 2019 13:02:07 -0400 Received: by mail-ot1-f68.google.com with SMTP id e80so19031983ote.5 for ; Thu, 28 Mar 2019 10:02:06 -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:content-transfer-encoding; bh=2/msr4RbWJfoZvhNBGATtM7u9No1FKJsLc/sMNbvprQ=; b=vIektQj8frXiik6na6SK08j7owEio3SuST/YX7MOnAf7Q+JInvwBu0QZCWTG81COgj hXRC410i9NjLIQwTyBCvqc6wIsIBqe52s76Eti2c6X19yQPEGsDcT64m38Wnj4yzVwjN KTN8x01qZVQntXEPppIvQDhVVcznTnBVBDt7MxD5kt3ut9yN2DT2WR8D4xBHc2YZw/By Hgl30Eg3n0KVWPd2pEkdYfC5cgvP2/1PQ6raPRLUtsCa6DAvzAUo9pneSk67O1vcy4l7 JLbMY1kIXMcAdDpkkFirapxXFusbw1BoF5+QFEnZhRpJpc+9Z36+A90NgwtMyComtvFd mJFw== 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=2/msr4RbWJfoZvhNBGATtM7u9No1FKJsLc/sMNbvprQ=; b=ApcyHosHOTtXaBusIcawRleWku2S7QNFoESa6u4eoauOEk2s/wYkmTmp0UlvoVt/Ij 0y6EJef45duGwShc9Q5VWa9AkI67jDi2sCHNGiz9Tv5C04oyUSTzpBAtdoK7DzZx/JEL FQPgo99EQSsIcB8WlbJfLuXcZ/6Y9L3iRYnyDJsE04svimi3GJ0F2eruKVqczo1h5vki HfpE86Hp/J6TNHHhR8kQ5PtqDdqJ4Kev0DxDPLePvRVxYylm8wqcUDSk9Uu8qceBVgml qQy7yp+UXfRlVbIVJeb5RqS1ZkoRUkieFbSacJvSdd7fB/Ljqf37I2tK8qC3Zco7ma8O 0gMg== X-Gm-Message-State: APjAAAXMJQrTEH7b5hGiIZEnAs4G2NDB1qcD6E4jnTaZrXYYEns8HyB0 OPnYWjqK9L9YdOBfws/kNBrXKE50Z1KIckR3nzwxug== X-Received: by 2002:a9d:6ad1:: with SMTP id m17mr30288212otq.108.1553792526036; Thu, 28 Mar 2019 10:02:06 -0700 (PDT) MIME-Version: 1.0 References: <20190322173052.23763-1-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Thu, 28 Mar 2019 18:01:55 +0100 Message-ID: Subject: Re: [PATCH] gpio: mockup: fix debugfs read To: Linus Walleij Cc: Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" 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 czw., 28 mar 2019 o 17:56 Linus Walleij napisa= =C5=82(a): > > On Thu, Mar 28, 2019 at 5:47 PM Bartosz Golaszewski wrote= : > > czw., 28 mar 2019 o 17:38 Linus Walleij napi= sa=C5=82(a): > > > On Fri, Mar 22, 2019 at 6:30 PM Bartosz Golaszewski w= rote: > > > > > > > From: Bartosz Golaszewski > > > > > > > > The debugfs read callback must advance ppos or users using read() o= n > > > > the file descriptor will never get the EOL. This wasn't spotted bef= ore > > > > as I was using busybox cat for testing which uses sendfile() intern= ally > > > > and only noticed it now when switched to cat from coreutils. > > > > > > > > Fixes: 2a9e27408e12 ("gpio: mockup: rework debugfs interface") > > > > Signed-off-by: Bartosz Golaszewski > > > > > > Patch applied for fixes. > > > Sorry for slow application, I was in no-wifi-land for some days. > > > > > > Yours, > > > Linus Walleij > > > > Ugh, I was thinking about sending you a pull-request with this and a > > subsequent fix this evening. Plus other fixes I have in my tree. > > Oh if it is easier for you do that, and I will drop this patch and just > merge your PR as it arrives. > > Yours, > Linus Walleij Yes, let's do it. Bart