Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp674252ybb; Thu, 28 Mar 2019 09:57:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuudET0ke4if+YHR15YxQ2TJjFqvYvPdimPPHXnz5+i0TE9Om1zMVy8R6bi4Nv9zG9cfFe X-Received: by 2002:a17:902:968b:: with SMTP id n11mr36981952plp.118.1553792220739; Thu, 28 Mar 2019 09:57:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553792220; cv=none; d=google.com; s=arc-20160816; b=ThzxH4c0Q4QbhHpRXKCHmWGD9dEJ59XUPP1ta/wzTJE0gQ4+lMQxOHzoZxW5/pOuTT lQit1rTG2V6gOBFqRTHm6chCgaVXR+l2V7aa4TtAJMjynklZyGaonJ09/7YhhgQUswk8 EZcJdVzusQwMfRSm37SokncNHK2eSDfZdijTK8zmP2Cc5zRYCxRhQQFKCWyhdcZndtqF L5a9nq6k74zvh5+77K8J11rgvDKppSuijRUzlSQr67hLZtpRcHVTwkqwuKjRtgMBbt1a SCkrvVV4+GuvfoBcoXwp+uzA5mCoh3ZdJKBhYALJmrSW+qsMQm0oIlcR61oVec5655ay Z31g== 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=LbSW3iY9r4ftg/pxiRSvtPxIZC6uS1AYw5f6w8uqmFU=; b=eU0xaI9VGWFqlcNrmalOt7qPgxI9ooZ4f459MU9rlMyxDryZ73+nqvNDqLjW2THp4u CsgVZocgo6HxEIFXnGOxp6Pwkw/9MhsJiNc+z6Nk9oOieX8D45bCmFflxV9L3m0ZGrgn hf1IWUGCajeTeN6mul6uKSLWa3YuUISPmHu2t4glW4k/ZiO4O31QGuV5rMMrQkKVX+0N W5bODmS9xvOrnXIW7cOX47Jy8rXvbyE2mlhNnlRZRLzZxZdB3yEU+ngPfH9Vd6T+XMOJ HFYenu0sYRI+cMfwnA55K19g11+vWpYYZiAwCMe1oZG3pt4PfqY8RkPu4wjo0C7cGZVf 66EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wiYdwWIt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64si7945061pge.592.2019.03.28.09.56.44; Thu, 28 Mar 2019 09:57:00 -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=@linaro.org header.s=google header.b=wiYdwWIt; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726322AbfC1Q4I (ORCPT + 99 others); Thu, 28 Mar 2019 12:56:08 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:43175 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbfC1Q4I (ORCPT ); Thu, 28 Mar 2019 12:56:08 -0400 Received: by mail-lj1-f194.google.com with SMTP id f18so18284336lja.10 for ; Thu, 28 Mar 2019 09:56:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=LbSW3iY9r4ftg/pxiRSvtPxIZC6uS1AYw5f6w8uqmFU=; b=wiYdwWItKzd/DSrR/9fh3V6704kzi56n7CFqacFUuR0aHMU5JTtiTdsM7kYPlyJZTd k/kL+Cn09EeggCSkCN68d9UW14qnc7zsAlNWTpuU7i1wpnM4rIcb+dvBybbf5/FK0bsv Yj0LecOshqdBOg3mfo186cLWdpVSEGmFKa7fkjnYsoDxGD5OaBT0C2eJJFG7UjCpZ0hU ElnuTdnf0uM+aCuHyh1QMDWsMHuKPdBFbIOFNUqVbL34t6eYUvn5ljYtlzW38hiZiwUz TSRxWR4NMqUW0xQC67rWqtLde8jY5cYmKEG/SXlsMflaouMFFw4fyh+VBxKYhb3ky2Nj VSOA== 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=LbSW3iY9r4ftg/pxiRSvtPxIZC6uS1AYw5f6w8uqmFU=; b=f5wKmOPko4XRuTc0ncCUvS+lr7acysnqpmI2gnjVTmbRtZD8Yl5IS9TsZY4XbShV21 AeByzvFZg6Rt9BLlU2yifiVlDNzwptp2tRPRYquDn7W4N2rzT6TsrKIdCWYzPToFlKSG UXo9yAc+fUsc1vDUYi5eY3oIXbKsV8+jwXmbEYhvoO1Si0766xINSjytSX8k2E/D/yRa K2rfTQOAqvhG4QOhYGnpNwp4ngR348ZLcfZmsUN9FFv+80nkthWsVdRpOj/UAy0VuidI WeeZ4sfN1s/m5X7evUruwkSIGg5i201EcScy34+Fpmn4S9yPY3tHTl+ZWdI1rB3jPEw6 k9Ng== X-Gm-Message-State: APjAAAV9c/RvnOy/EHmu+voJjJqHro2Ryi5o7AG8SdcH7B4CKFOtVk4h kBwb/wqtNxi49b+9CQROM1cbCV3cAL0sGoNXBq4Lswx6 X-Received: by 2002:a2e:5056:: with SMTP id v22mr24128035ljd.153.1553792166738; Thu, 28 Mar 2019 09:56:06 -0700 (PDT) MIME-Version: 1.0 References: <20190322173052.23763-1-brgl@bgdev.pl> In-Reply-To: From: Linus Walleij Date: Thu, 28 Mar 2019 17:55:55 +0100 Message-ID: Subject: Re: [PATCH] gpio: mockup: fix debugfs read To: Bartosz Golaszewski 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 On Thu, Mar 28, 2019 at 5:47 PM Bartosz Golaszewski wrote: > czw., 28 mar 2019 o 17:38 Linus Walleij napisa= =C5=82(a): > > On Fri, Mar 22, 2019 at 6:30 PM Bartosz Golaszewski wro= te: > > > > > 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 befor= e > > > as I was using busybox cat for testing which uses sendfile() internal= ly > > > 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