Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1520405imu; Wed, 16 Jan 2019 21:58:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN5w1xqjH+heetYL0jPRKEEmhINYjeyH8zveQlvqPHRvEPQtgcOtcBQFXSK78t/CMGMAdCt1 X-Received: by 2002:a62:dbc2:: with SMTP id f185mr13468607pfg.235.1547704717221; Wed, 16 Jan 2019 21:58:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547704717; cv=none; d=google.com; s=arc-20160816; b=bx+Tic5JYgc0MWlbSXgRGMJoIsa5LZxxA0HllNiY5MhFx3wkd7VEShMhav8Yft73vp VMoXRqDWRrxGYZgGRZO54EhDd7tTUj9UoImXKZ2hc30dYY6Z6H1NyGvONWrDKduHtdCV Uz0PyP8gH/ED17QUToBBFvRXDPPpREsoiiaEyg7rFK9YrO2g1o/IQleTSCH9fWjWNonq e70BAyAHbvNpYC2GeCa4XU9SXbM/upJKqz5lvBpX0GnEDYMlqF84vCXuEvRoYRSQgGfh yICJ40MPNChyiItz1pQ3+Bi2fvvncKIq9OvrhFmbe2yqxn8cQ9LbZaV7r2Z63+pxrLPc gYJQ== 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=ZH1kjbCFBnhNgMc1b6ksnUKlBzkEZ8vpRmL7Cqg2hEk=; b=VjZ8DvdpDDvsmWyBqv1EtuM45DS15opiscDcXqCyjrO4dDx79VZCz9kvul4wHwWyUg 5TVygQsD4ikVk/NzG8740V65bDBorU8EkLdErWxD/bMOOnnG001wzG0bvO1jqOUdmY4p mrk0Lbo9p/PE5LncUx6ZgtMv7/NFwpaqqAlKtpsWhndcdSUeQDO4qP5L30I5MuzFzCgh zo/UCULHhY5JVSjW8/v1qJnkotMZc0SgvbVtVRvOTsrsCJBjoLr3n9w7wSYec64IpuxC QKGJbpKNQ5h82E/JAuPLolwiLUz7Ec+fmE6MZxglyeyzbbMmKRdmXWW7KGPYsHZhaqJE jT+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=FPG0FDDJ; 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 10si641766pgk.101.2019.01.16.21.58.20; Wed, 16 Jan 2019 21:58:37 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=FPG0FDDJ; 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 S1730555AbfAPQS0 (ORCPT + 99 others); Wed, 16 Jan 2019 11:18:26 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:34550 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727883AbfAPQS0 (ORCPT ); Wed, 16 Jan 2019 11:18:26 -0500 Received: by mail-ot1-f67.google.com with SMTP id t5so3149477otk.1 for ; Wed, 16 Jan 2019 08:18:25 -0800 (PST) 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=ZH1kjbCFBnhNgMc1b6ksnUKlBzkEZ8vpRmL7Cqg2hEk=; b=FPG0FDDJg7gq48lLP/uJB6mtqE+I8whBdW4cqBuQQjhhr+zpxXf9YOsHUQCj1p1y9/ LS+1ih3Azh9tPzMHInNhhsAb2NTm0Db8L9BzI3LMYX0JqutIY+3XfNUAy1g9u+IC1SDc m0ki+vxgk4mpqR70KFHzcNZIQt7ljfDbHDgdzbCxSUU5OAiR61yafMGwJXbmN781NIB3 SIeasj6L4NOvbG/qjwoMbfsXFWvrcgPhpYMcaQ0ycno1tM16vGIYZnEf1RB2rc2IwGFU qyrs/fQTX77ifd1XEEBoA5I/8wZkqX32mVaLKo31XFEhQ6qdCQ4/7ep8WHA3jYGS8CRC 9j6Q== 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=ZH1kjbCFBnhNgMc1b6ksnUKlBzkEZ8vpRmL7Cqg2hEk=; b=MmRYjoRlAy6W30fvBof8FpqHM1BqsQAWY85tINy5X2p3rpyg+EW2V0kMjXWu3CXzk4 LE+KsjKQm1qL5bUWBJ8cIkrltkCrZy0Us2rSTwbiZcOybo8DDWQde6ZSA7Nn7vUpdkzg rt9lWJYA6NYSeO/Dkqi3mp8CIgfcKKoLQ3bKjaFGPcBlU/YnhghXzVe4evxgCkhV7/Xh Hf7IEXmv0rXDSzMNL5ICIyd7tyLfU5QBqfbZOnKncyE5+9mRq8OVtXYDlnmpFhl3cKdw DCW2aacOBRgtGXvz/1LglOct1nxFVg5eQdCI6rZnT9s22X4rjIJu0VyDJcfQyPZV4ugl Guuw== X-Gm-Message-State: AJcUukf4JGEmQNwy0j+AccUFXw3LJz3qmNN7mXuzjHfrkMUJlz+o/r++ NRwmKt25vPrDxPu9Pf9YYA+upCelV7qRINPUmV9TJQ== X-Received: by 2002:aca:57d7:: with SMTP id l206mr5344565oib.277.1547655505206; Wed, 16 Jan 2019 08:18:25 -0800 (PST) MIME-Version: 1.0 References: <20190116153557.13720-1-brgl@bgdev.pl> <20190116160216.GA4594@kroah.com> In-Reply-To: <20190116160216.GA4594@kroah.com> From: Bartosz Golaszewski Date: Wed, 16 Jan 2019 17:18:14 +0100 Message-ID: Subject: Re: [PATCH STABLE v4.19.15] gpiolib: fix line event timestamps for nested irqs To: Greg KH Cc: Bartosz Golaszewski , Sasha Levin , Linus Walleij , linux-gpio , LKML , "Stable # 4 . 20+" 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 =C5=9Br., 16 sty 2019 o 17:02 Greg KH napisa=C5=82(a): > > On Wed, Jan 16, 2019 at 04:35:57PM +0100, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Nested interrupts run inside the calling thread's context and the top > > half handler is never called which means that we never read the > > timestamp. > > > > This issue came up when trying to read line events from a gpiochip > > using regmap_irq_chip for interrupts. > > > > Fix it by reading the timestamp from the irq thread function if it's > > still 0 by the time the second handler is called. > > > > Fixes: d58f2bf261fd ("gpio: Timestamp events in hardirq handler") > > Cc: stable@vger.kernel.org > > Signed-off-by: Bartosz Golaszewski > > --- > > Hi Sasha, > > > > this is a backport for v4.19.y series. The original patch didn't apply > > due to a conflict. > > What is the git commit id for this patch in Linus's tree? > I'm not sure if you mean Linus Torvalds or Linus Walleij (through whom my GPIO patches go) but neither has picked this one up yet. I'm not sure why it got processed for stable already, I thought it must go into Linus Torvalds' master branch first. Anyway, in my GPIO branch its commit id is 8d694dcdbbdcfe4f27a52bcc6f2ce733ba5ec53c and it should get merged into Linus Walleij's tree soon. I have already sent a PR. Best regards, Bartosz Golaszewski