From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796384627; b=M4qChCc46uQDswq35QPVyAX/icLaQikiy/wBc42ZSuN4M1BxeO550m6ggFLvyLn08jIi 4LR1u8Cxnmk6yqpqctp7EnDt0ULmkE72GR8JSR5HiJuoVAZLNJe2RbIYKzhAIUallCZ6a vwrmY40Mk9vPPbVk9TRsFFcgw0cVFC2resgRFdsv3/Dk7BTIArhOY3cHlAXbQ3HG1OqU+ d2DxVRCDUo1LB+R9RGis1W7kBV7j20dqT1TrWfsP/OGnHsey9RL28Ncc/4mObRMDdbYQV S5QiLxWaaQy0Kh+yRorzPM/FApFbPVv8Te//vy9/Rwva4v2p5Vc5mq0XimnHTR2gDVg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384627; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To:Organization; bh=iK8rDZA5vKlmES5UjIfvOV2eVnQhNC1uy3uNDFYdyaU=; b=Qa6h6ATmCVGX+rdY7q1Y4O0DYZ6M40HVfxYR8+Y4EX5mx6aefZjpO53O8o+JxZLRCl5M bEQORIOEf+GcwHuTMFmmMQAY5pQvXHZ47xiVQ4IAi/9tPM3fHlQCrlpuIKmZbe5gSi+HI vFunthEghKMlcRaFhESJP6xTUctq8X1W4qD0v5wK4JUGPDXUDIu/j7PO8i5q8wl7UzXId NT2G0UnkD2UW/QkkArAn85z54LmH56BC4jOfOXWHzNr6SZu6fPEX8gBac5LMAXfASYbvj YiuDtP+vavtZQNzx7fvHqH7vQ3/BiTOeP1qMRmCkK3mbk86rG0jY4fVPW5VBfE9Bl9g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=lJKjOOPO; arc=none smtp.remote-ip=198.175.65.10 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 81DCA606A687; Fri, 4 Dec 2026 11:43:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 81DCA606A687 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.a=rsa-sha256 header.s=Intel header.b=lJKjOOPO DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796384628; x=1827920628; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=iK8rDZA5vKlmES5UjIfvOV2eVnQhNC1uy3uNDFYdyaU=; b=lJKjOOPOyJP2R5zIX1AcR1gNtkNkByBeNCXIT+CMVDX6JZ4uuOciKeVf 8jgvOtsNlac70ThqpaevQH8LB22HsK5YvTazBMYKgD1iQz76dkvfD7CJg CEttrZf3g+ymjjXJE4iyOLsLB/ZHCgCPUtP8xP1FhGpmUj5ZB1cLzwPqk JlYTQ2+T6yazeRs10Laj1xd5novSylPPH17c00E+TJTA76s9NfzTD0KYL lginLBJD6pQC353qQyZZmLTcrcuGSDpAy9vnB7wbE+jylOScPynQYsqXk LnZKhegvD5dC1Ahiwt+g3yhX889R1A1jF+7hwESEq1PmvKIourHp96ntP w==; X-CSE-ConnectionGUID: 2z1l+aNGSk+PU39AqIdNLA== X-CSE-MsgGUID: h0h/o8kaRpyqf5fmW8ItlQ== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5301891" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="5301891" Received: from fmviesa012.fm.intel.com ([10.60.135.152]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 03:43:47 -0800 X-CSE-ConnectionGUID: 8SSgmiIBT8+tGxThK9V7EA== X-CSE-MsgGUID: U9WH2LRwR+2aKekXOgFg2A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="15709422" Received: from alekseim-mobl.ger.corp.intel.com (HELO localhost) ([10.245.245.10]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 03:43:43 -0800 Date: Fri, 4 Dec 2026 13:43:41 +0200 From: Andy Shevchenko To: Michael Walle Cc: zl020895 , longzhao@ambarella.com, Bartosz Golaszewski , linux-gpio@vger.kernel.org, Linus Walleij , Rob Herring , Krzysztof Kozlowski , Krzysztof Kozlowski , Krzysztof Kozlowski , Conor Dooley , Mika Westerberg , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v15 03/14] gpio: regmap: remove gpiochip before tearing down irqchip Message-ID: References: <20261118-cv75-gpio-v15-0-e3c563673fe1@ambarella.com> <20261118-cv75-gpio-v15-3-e3c563673fe1@ambarella.com> <58bc2391.8c7d.1a2178371d0.Coremail.zl020895@163.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo On Thu, Nov 26, 2026 at 01:09:34PM +0100, Michael Walle wrote: > On Thu Nov 26, 2026 at 12:00 PM CET, zl020895 wrote: > > At 2026-11-19 15:40:14, "Andy Shevchenko" wrote: > >>So, AFAIR Michael rose the question that this patch makes the unregister flow > >>not reverse symmetrical to the register one. I took a look at this and I can > >>say that this is a bit twisted. The pure creation part is independent, but > >>to function it requires GPIO chip to be instantiated. So, yeah, this patch > >>is a bit controversial. Let me see what we can do here. > > Hi Andy, > > > > Any conclusion on the unregister ordering in 03/14? I have a v16 ready > > (Sashiko IRQ-defer fix). OK to send v16 as-is, or should I wait for your proposal > > on the teardown order? > > FWIW, I'm working on a cleanup and a fix for > https://lore.kernel.org/r/20261123040142.48880-1-joseph@telaak.dev > > This might also help with your case. > > I hope I'll have something ready later today. Thanks! Indeed, that looks awesome. I suggest Ambarella people to incorporate what Michael does into your tree and give a good test. And if works as expected, rebase patches based on Michael's series. -- With Best Regards, Andy Shevchenko