From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) (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 D65E32222AC; Tue, 7 Apr 2026 13:47:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775569661; cv=none; b=M+7N2Pwol1lFE2Ogdw6k1Jjp5hrL4ZlnIlh6u+Pc38OLiLAWWmfX2/TA68jJJr2R64XckQhMSbnFgllB9DJONSvsej0JTRBNW+Kv6cwLxEkHUbdDZ3y/JNnd0mH/+hc1BQ2hLgK2Hx0qYApMXtO9R3Zjo5kxlmBTbaHFDapzdeg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775569661; c=relaxed/simple; bh=NO2i62UYlO6ddKgbEZAUCawjWBgQw2MTuKaUmQ0/f78=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=a9NYg2wxel/E2SNQ8K91i3fKQYOXgkFgnzpFADIdAQDghnCa+8MPfwxG0EvMsmCTHTJz3ZtvQ8SmZWReBPkoX27tCl5wnOSQczSZCadhaDEMBMLpSgDgvPJ1ym0W8E2qE3sdXbs64gmCzfjTRAUR05XwTMJK9qP4cPlglxC5MtM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Dg7BNpWv; arc=none smtp.client-ip=198.175.65.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Dg7BNpWv" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1775569660; x=1807105660; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=NO2i62UYlO6ddKgbEZAUCawjWBgQw2MTuKaUmQ0/f78=; b=Dg7BNpWvWgvDPioZdb1tuHeoX2Chy9LMr6xf9JrYYqMcmF3MFxaHmHRI pAOA44G/2t8W/Dz0I1193Q91/B01h9azTGFGRr+Q/R1fPRBdfUZo8dtxM UWAWGAsbQ2uBOesfH9GlNvHQpHR0DLJneG/wkgdqhPAdPrGDcWL7Aksli lZzxm7awLfyD+P49jOnZvsaH6Wty3f1ZWPW/DMg1TAEsMnTNk187WkN2m 9nHE+uJKEIygRcA7Zt9DS+X+FO9+hYt9Pp7i/5YMlg2KF++3FUgUcjR0e M2bTR4/TNkbtwkLBl2MBbzdYb4rISHRSTDr4Gnta1zvPD+DEL4BiCCIKV A==; X-CSE-ConnectionGUID: bH1HvhYjS6CwYyu31qYcAg== X-CSE-MsgGUID: tZjdbdygTPOBM6Vpr1V6UA== X-IronPort-AV: E=McAfee;i="6800,10657,11752"; a="76544899" X-IronPort-AV: E=Sophos;i="6.23,165,1770624000"; d="scan'208";a="76544899" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2026 06:47:39 -0700 X-CSE-ConnectionGUID: aYc0XUMCS+SUjJs+wS+vWQ== X-CSE-MsgGUID: iUczbetsQq+uFftphdUKxw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,165,1770624000"; d="scan'208";a="223871549" Received: from pgcooper-mobl3.ger.corp.intel.com (HELO localhost) ([10.245.244.182]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2026 06:47:36 -0700 Date: Tue, 7 Apr 2026 16:47:33 +0300 From: Andy Shevchenko To: Francesco Lavra Cc: Linus Walleij , Maksim Kiselev , Sander Vanheule , Mike Looijmans , Dmitry Mastykin , Evgenii Shatokhin , Arturas Moskvinas , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Andreas Kaessens , Radim Pavlik , Thomas Preston , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pinctrl: mcp23s08: Disable all pin interrupts during probe Message-ID: References: <20260330161914.1071118-1-flavra@baylibre.com> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Tue, Apr 07, 2026 at 09:50:39AM +0200, Francesco Lavra wrote: > On Tue, 2026-04-07 at 08:58 +0200, Linus Walleij wrote: > > On Mon, Mar 30, 2026 at 6:19 PM Francesco Lavra > > wrote: ... > > > This issue has always been present, but has been latent until commit > > > "f9f4fda15e72" ("pinctrl: mcp23s08: init reg_defaults from HW at probe > > > and > > > switch cache type"), which correctly removed reg_defaults from the > > > regmap > > > and as a side effect changed the behavior of the interrupt handler so > > > that > > > the real value of the MCP_GPINTEN register is now being read from the > > > chip > > > instead of using a bogus 0 default value; a non-zero value for this > > > register can trigger the invocation of a nested handler which may not > > > exist > > > (yet). > > > Fix this issue by disabling all pin interrupts during initialization. > > > > > > Fixes: "f9f4fda15e72" ("pinctrl: mcp23s08: init reg_defaults from HW at > > > probe and switch cache type") > > I realized I put stray double quotes around the commit hash. Also you put way too many lines of backtrace. Submitting Patches recommends to leave ~3-5 lines only (the one that bring value). > > > Signed-off-by: Francesco Lavra -- With Best Regards, Andy Shevchenko