Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp668135ybb; Thu, 28 Mar 2019 09:48:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuvUJnuSwENqvlbphlKo4HSb5kuG7iCaAho+vtMMZz694kZTVFq+HpE0IstsVxsIag7n2T X-Received: by 2002:a17:902:900a:: with SMTP id a10mr44916959plp.183.1553791713135; Thu, 28 Mar 2019 09:48:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553791713; cv=none; d=google.com; s=arc-20160816; b=uUQn3SLomuxHiHoDaiuhhb2G2rsusu6Vhsc3f6/o8HRMi5PSdaffxVYOVGaKzeh0Am 6YNfBm+hsc2Kg1O8GvVL9AeMUWskJj+3WrlTCYtpeYgTczotT+R7DZNUxemIPMkwLpx0 AXlow201XEYhWvOVGA4TLdQEQUs3NveheJZMhBs6sgtw3wjp0eT5tExNKL6CGPAUas90 EHZG0k2UWzcgCuIFtR41mZhLwH+gNu11RvtJdmjP6aiNpoItmQr9YBUhU4FUf267mbka d2bKuBELaHa0IdVZcj78zKuPlUu5hsQ0Z1QYciVmmlfl5vrvg82tzqST2m1jeahva+A1 kVyw== 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=o/nFTW+oTLyFRU57wgAC3ho3qjiW4SjfPZsPXc6ZXXc=; b=kRdzZ9Ax9/TMjsg14+zQw/btpXUZsr4JdvgdRQQneyg5Ro+lxb11G2rycaDvTOoYm3 +42E9lOSXPkEXAhFOI4/PLQUo6Th73wgBaT2SC7Whyz6OL/6WUlcGbvrN1Mh4nvSqbW7 PNy9OmC4TorjfWWyrUGNG8sg1fkyfASfp8vi7EH+Fls7FxdfMMNQV7aStMB/rL3PtFD5 zgyF1fhIcSWapIcXZXXZobtdZVvA4onZ9I4FceDV489dF8vBVuRcYpJMBcEkmG9G4CEB e5//Z3llaNqn2+e+cjuFR0v+BtIabEIhEoC3f9bIZpxFdbSzWRjGswN/GDFoW7P+IRWI VhvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="VCx5m/fK"; 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 f1si22503259pld.32.2019.03.28.09.48.17; Thu, 28 Mar 2019 09:48:33 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b="VCx5m/fK"; 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 S1727217AbfC1QrL (ORCPT + 99 others); Thu, 28 Mar 2019 12:47:11 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:53999 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725948AbfC1QrK (ORCPT ); Thu, 28 Mar 2019 12:47:10 -0400 Received: by mail-it1-f195.google.com with SMTP id y204so7129716itf.3 for ; Thu, 28 Mar 2019 09:47:10 -0700 (PDT) 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=o/nFTW+oTLyFRU57wgAC3ho3qjiW4SjfPZsPXc6ZXXc=; b=VCx5m/fKi0LoSSKExENrfjMUYAduUqfMQf5RagDrTGNF6PPg2NsuQa+4BiENfYrZiZ YRpHlnl0fnoZ1XOTc9vf0UsaZhLKzgPdAbrc24sffrkHKCBJR8TvkZxfwmrzyPxTwgs/ Mjopi1rWaSvVP+OQlmw+G0IUpl7RWAl7+s5kX6Eba33JWk6Hq2aW5ouF3LjSkYq4nJiA zv814mZXbomk5wTk/deVeDq6xZWQClie5ns26CKM3VoUqx8KOGFwyIvYIURzRjerZTKF yDiHHrUn8s7EG1iZ+wibixbqPAArOcLOadzTeExii7iWXX/nLWOnAkQxfvoqP+jZ8BHh YJjg== 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=o/nFTW+oTLyFRU57wgAC3ho3qjiW4SjfPZsPXc6ZXXc=; b=nF2Sn3MafVsEaRk0hGMj01jYLhHlREmE/dMHdXyELq9HwgrPON3CoVNEV1AvryJhB+ s1OthxSESGPFe2qRaR6suTCXxWKWBAp3MYYDXHF2ZMFckd2wUEBkb+VEQnfQGty2EOuY 60bM2ZZOPzTNcDipwQkPvIS7r0/+Sy4urQnU41DfRUQ9q2GEJXM84696eZU9JmyMfLzn h9OK56oQ2LwiGWh2yxnzR5I8PVo1mW01VojT+xh8BYw42MC4BQKfoVnLyFbLw3jYvhD7 yl4Qbn2PTqjINx9oWvpidX5s/ggWma/N7/OXErObM0Sd6ZwUtE757KU5Q8KXq5SiJdFs ViSg== X-Gm-Message-State: APjAAAUM3zXAuTCbQlhnPGtbkB5Q6fqXjAajIA9R46d9zKbUL20A7SsH XCVZ71BY4w/xG1WlFDAW3x7BZAsLd2Tg2bVjBcX98A== X-Received: by 2002:a02:924d:: with SMTP id y13mr22947060jag.24.1553791629914; Thu, 28 Mar 2019 09:47:09 -0700 (PDT) MIME-Version: 1.0 References: <20190322173052.23763-1-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Thu, 28 Mar 2019 17:46:59 +0100 Message-ID: Subject: Re: [PATCH] gpio: mockup: fix debugfs read To: Linus Walleij Cc: "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Bartosz Golaszewski 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:38 Linus Walleij napisa= =C5=82(a): > > On Fri, Mar 22, 2019 at 6:30 PM Bartosz Golaszewski wrote= : > > > From: Bartosz Golaszewski > > > > The debugfs read callback must advance ppos or users using read() on > > the file descriptor will never get the EOL. This wasn't spotted before > > as I was using busybox cat for testing which uses sendfile() internally > > 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. Bart