Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1210513imu; Wed, 16 Jan 2019 14:53:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN7MP+k3k1ZLHrOue7S4LmO/qKwjlJxFto5i5HwAEzJ5Lz8NwUmXQYs9RE/XMXPlLA/vk6Nf X-Received: by 2002:a62:4156:: with SMTP id o83mr12299117pfa.72.1547679218231; Wed, 16 Jan 2019 14:53:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547679218; cv=none; d=google.com; s=arc-20160816; b=b400ui5h7glYGd0DiNjWYzf0R4Z2QI95n8xvuZxrtbxJ9C8HUz1Miviex36L4OxSqa eR6MwsdSFfzMRU+cW/2yxFt3Go8VhMbItMrkuI/aKFQ0FpGNHLZ6Cx3BP2A+/hyOvJtk gzckggJGysxKo6c2XmgS5S4DEExWPsrHZioBCBYrRWYu1Ca0ZO6zqVO6YDZD007D7Tuz UOIeLwC+/oPGQ93UNuZ+PRw3HtjQpvKVEBFP8PEZ7JpGg626MN1m4zgZlv3vUmYRtOWu wOL/U5bXlmS44URILX+Gmt6gJ3RAYeVi/E4v7lreYZA9HwoiJ7KMMvw5pCnEGRYdfGLH 9zAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature; bh=9CcDB8bPVn2L2be4Z1VTuiPsI/suiy08g3piKsDsbyU=; b=plsZPppHrotxuST/nTHsNlMQPUuxXynWiiM5dCC+OijS97er+05ozUc3+XAj6nm8+W k4QIPu6hl9Ftq5qBX6T88b7Uj7kaB62X62NiYZybYzvyfndaEToIA51x+EHJKw077Kod dK6wRCerJVbL3tL7fCMpkoUYRrbJ2t+aie0Czy6BFoF7ln7H7Dqmn3RxeYUhij6brGd9 xhHn3eYfoq0f4L+k3RDbxZW9rjb6Z4JIt5SnCitm7oaLi2RtI0RUd05I6eUs6UFgYDjv jO9+OHGzEm/4ZhtloqAPquQF4RDbCQlrxpknUEDtjUnVv5ue9wycOUHaQ7Qeprvz7srD 6fqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kroah.com header.s=fm2 header.b=R41kpar6; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=sU3lXaPH; 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 r18si6840034pgu.552.2019.01.16.14.53.20; Wed, 16 Jan 2019 14:53:38 -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=@kroah.com header.s=fm2 header.b=R41kpar6; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=sU3lXaPH; 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 S2404841AbfAPQCZ (ORCPT + 99 others); Wed, 16 Jan 2019 11:02:25 -0500 Received: from new3-smtp.messagingengine.com ([66.111.4.229]:36947 "EHLO new3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726965AbfAPQCY (ORCPT ); Wed, 16 Jan 2019 11:02:24 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.nyi.internal (Postfix) with ESMTP id 1BFF116126; Wed, 16 Jan 2019 11:02:20 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 16 Jan 2019 11:02:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=9CcDB8bPVn2L2be4Z1VTuiPsI/s uiy08g3piKsDsbyU=; b=R41kpar6SWCrGB0gXYCRo0KxjVCmDHwgu3F7JK7//fp BiruRqhW+s9f/z3iMnAbDOOmAL9p+LfY8mP1tPulpuSBiuSy49Wlq6TCvZPBtAd2 mpja6d/miC3GPOmrPsilW1TO5v9qv7dMjALspMdbUr5xypoA0+zYzKa+6jXi/rMf eBMKzMdGEss6u+1S5mj9V/udrpePlG4mBPEeFVGmhoGisaHaJFzhmKp3sZ8sCarS rlczd52fTbIFrrEDR8rvpjTYYDL21D/HehCMixekGrIp80zYcQ0KJWnwLyX/a3NZ NWZ5e03VX+OklHMFGH35xZc4DtNp/xfyhZdAQCwKz1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=9CcDB8 bPVn2L2be4Z1VTuiPsI/suiy08g3piKsDsbyU=; b=sU3lXaPHuPXZLwBVO/yVU8 2WjybTkDQzM80M+sFH83BoCImsUW3kWswO/M2fTWCf2ZnwrKQW7kFH2nkpaiKY2b uwBG4Wq+N2p7Xbe5g+lPCZ8OYCBtOJHWlGqRyoDC5CoBqSpBTItwIv5uu8myYqz8 KsSG3FRVyBUsGtOy4syGl5Z7mM7C6USbJN6jmXKkIrAdU7fmfxSyrao9Vij9GKk+ HqFpew+cgUianEQWgHlJk3Mkb1zvtSwkxoytS8wPcdiaS9DdRHc3KkGMjZjulmGy Iar0RXRe26242q7nI2mhu0CsavwQdsNbtYTywfTJCHFRqGVUyHL/JoUFecfRBdKg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrgeehgdekfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegoufhprghmkfhpucdlfedttd dmnecujfgurhepfffhvffukfhfgggtuggjfgesthdtredttdervdenucfhrhhomhepifhr vghgucfmjfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecukfhppeekfedrkeeirdekle druddtjeenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrdgtohhm necuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from localhost (5356596b.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) by mail.messagingengine.com (Postfix) with ESMTPA id BE2861027C; Wed, 16 Jan 2019 11:02:18 -0500 (EST) Date: Wed, 16 Jan 2019 17:02:16 +0100 From: Greg KH To: Bartosz Golaszewski Cc: Sasha Levin , Linus Walleij , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, Bartosz Golaszewski Subject: Re: [PATCH STABLE v4.19.15] gpiolib: fix line event timestamps for nested irqs Message-ID: <20190116160216.GA4594@kroah.com> References: <20190116153557.13720-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190116153557.13720-1-brgl@bgdev.pl> User-Agent: Mutt/1.11.2 (2019-01-07) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? thanks, greg k-h