Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp186325lqi; Wed, 6 Mar 2024 14:00:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUa8yapWIHQLkDu05esLGhNvqJxokq9OJ8s6Gfi1fgevUpc4O29g65zblbmFNmAmdLGVm16ytw8T1JZDQwbU/OfQUl5lOJIGQOAvUStGQ== X-Google-Smtp-Source: AGHT+IEhvJH7spKqeO1HqqiENLjXQ0TotHnzAQMfexypnMLPXzQQBxu5HwdaMf5zz/R/HoXeniUO X-Received: by 2002:a05:6808:1882:b0:3c1:aadd:e9ec with SMTP id bi2-20020a056808188200b003c1aadde9ecmr7796612oib.14.1709762430494; Wed, 06 Mar 2024 14:00:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709762430; cv=pass; d=google.com; s=arc-20160816; b=uqKdPQEDgRCUQZMUk3DivuNY6qY0p2rcmv76LCapc3Rd1yfVNgBMHyvmkhtSjYMVfG pad9ZxSAcEUmE9tt9pgcX/qKYDa/8y0lpCf1fD2SU1MXnCGTlxoxSEKBM38Zqww8RWEv aDANBuUMNEf8LeZQ8doupX3Z35RvYRjjNKmAr1bMp2jRGRMqd0IEBIU3SAHkYAbHg4RI 6G6bpRnLXxKf8Bnp63PD3pbSL/AXyQJOcI3QpAnoCn8aM62Kl4k4KCvVJn5hgAQaQ2h0 zevURuWeDKGCqizNZp1Q6nVF9x+airb/7lBVxOQL7fLikLXH+5fPrCZhiYfzfAoTPI8d JFcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FIbk5riXjKUHL+T0Jdf9WdIAGIqFTnButvAdjH56FkQ=; fh=RjhHswbU/QC3eSuzS2nyPSbUVupyyBeeoV0i31+Ee2I=; b=PIHfn5zqP5/RFFKsAaBxDHLkCwA3X2wjYBdz3iUPhCRFWFDtZGkgQsHTRL0AkbJpjx AegPiLapyq6GyxzsDfoCWNHJp0LhX4u6g4Blb9asxohJWkBMkifmYOetZ4mMZnraKCjC SR8UL74djVwBx657mw7wnHa4Cq3zNW3hbS391J8dQ+ql52JwvKJS3z5ibb7eJEP88XP0 lg4CegCE5CcOS+jR5FoGP++Z1Hd9WgfzVbGRtj891TSgKsl531vpZkJVo0gzif0K8tRf GRFLCZvAOLXl/BltlH0yopg0R35t9jXQuq62ylT8NVepyzUmPwiq4REEnZT0AWuwLx5i 7XOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JYKmPuYc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94622-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94622-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h26-20020a63575a000000b005df42c5313bsi12791966pgm.16.2024.03.06.14.00.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 14:00:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94622-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JYKmPuYc; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94622-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94622-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 252A02869DF for ; Wed, 6 Mar 2024 22:00:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0715D1B952; Wed, 6 Mar 2024 22:00:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JYKmPuYc" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22BFC18EAB; Wed, 6 Mar 2024 22:00:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709762420; cv=none; b=ExARuevngvxquzh8aigsapVI2uJvvVtRUGtvGIpYs1UzSOZm6LD4olbcabMb/yq+uF3a69YtD1CjEWzTve+Q3VDleEQSho3kYXo55faSXPChEksDqBzJyLmfjhr6wBLSb13Pv96q2KaGDwwYII5MooSmXz223y++0Bo9/f35ksc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709762420; c=relaxed/simple; bh=qmyA+76tawkU47ZsawPwDXn5EXrh6A6vzOTcfu0Eg9c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=U8JKfLju51K7PooJycToCJrYqOjhpq9APfZHmZmgE2LDHN728NPpLfZSN70SMVOgFQYLelR8Pr0COzqZIxbcl2NANBLejuLZQtom6mJz0XXBSwskTJkrMUpFK2akVSxGSbLiDu+8UQ4yxs3BFNq4GkDRyD1Z7JAsoplQWZJFzVQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JYKmPuYc; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4360AC433C7; Wed, 6 Mar 2024 22:00:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709762419; bh=qmyA+76tawkU47ZsawPwDXn5EXrh6A6vzOTcfu0Eg9c=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JYKmPuYcr+ebuJBz+G9bT+S54Ftpj89JkiD5vpe5U80aNPwioK5UnujX+LFqyfRHq jtj6xdyKgEeGTkZDj7JrLT2IXeIjbxlQ1jxfhg01aYW/tYWgvmbPzxIFeD304ZvBp2 FQEzm/SYDtogBAsgR1N606P6/casrzxaXvqmNfXEf/pSG2li+xszkPbmSt7yHIin0P aMKftKRoIqQkaqG+QZYgHi6DPpkcGP4HTebkd7IDaLpfek9gZ2zuVYrv32Ro4A7AWI QKfApfmlTZiLumb5Y+1ehAr8s5pBXxZjm9/MNez4Y1E0RB44nwZ6ZrAn4pFyuoPQXQ kOse9f+pW47jQ== Date: Wed, 6 Mar 2024 23:00:16 +0100 From: Andi Shyti To: Krzysztof Kozlowski Cc: Alim Akhtar , Jesper Nilsson , Naveen Krishna Ch , linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com Subject: Re: [PATCH v3] i2c: exynos5: Init data before registering interrupt handler Message-ID: References: <20240305-i2c_exynos5-v3-1-17a749688806@axis.com> <170972613133.1712532.6066452137196640811.b4-ty@kernel.org> <5a2d1071-5410-4c91-adfd-3d6384c74f94@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5a2d1071-5410-4c91-adfd-3d6384c74f94@linaro.org> Hi Krzysztof, On Wed, Mar 06, 2024 at 04:14:30PM +0100, Krzysztof Kozlowski wrote: > On 06/03/2024 12:55, Andi Shyti wrote: > > Hi > > > > On Tue, 05 Mar 2024 11:50:00 +0100, Jesper Nilsson wrote: > >> devm_request_irq() is called before we initialize the "variant" > >> member variable from of_device_get_match_data(), so if an interrupt > >> is triggered inbetween, we can end up following a NULL pointer > >> in the interrupt handler. > >> > >> This problem was exposed when the I2C controller in question was > >> (mis)configured to be used in both secure world and Linux. > >> > >> [...] > > > > Applied to i2c/i2c-host-fixes on > > > > git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux.git > > If for any reason this is going to fixes, which marks its importance as > fix, then it should go to stable as well. Please always cc-stable for > such cases. yes, thank you! I should have checked that, as well. Andi