From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796523634; b=J1BJkaZ2qgjhti7TssbZf0ytmCsHYTAZb3Mn2XCEvrVrV8M4eg8Rni48+S5eWZneGfVD INLD6Dy6nJeTo+Kiu+xC2rJLnAll557GfoX+28OYPFa/zTJwX49IgOrbpL3bUvexqg05p OCxbeEcoBaNMeOxLMHavmuO8kfvFa3rjxHT9akOt3I96mnrkGDAT4CVONK5qaNCkZMecq iCb8/3laDWHR2DJs4zT8LvCY41BtcMnparpQznTfe8OjDB+qRWDqa8SkyEgs2o35lv5Ib sqrPOXcVR1STb1MZ94N3rR4jZGY8e3fDr0Jz8ziZA6as4SjfrShLwiVxQOac65Eh5eQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796523634; h=Received:Received:From:To:Cc:In-Reply-To:References:Subject: Message-Id:Date:MIME-Version:Content-Type:Content-Transfer-Encoding: X-Mailer; bh=zUuZiUkcLSrQKr8Hr+BHoz19zwQDR1stF9aTtePFVSc=; b=beMU7Nm8wastJId5j2JfYTSWlDHiWViHx8zGk/LmOgTkiYvQvEKfSAhECe6kDvbCvmrO l+yC8wh2W78qcuw8r7JzDdMjfiJmaLhgM//28nTaC1z+zulgn5ezRUw/PX4nD2h1ydDz7 RnPI2iHGwMGWWWaL22QIsDGHB97pYLtuunhfOT/sFW2/vzgxsgY1CW+EDBZ1Y3PcnJX1c ExAx+DYlz3DH66upfO1CGcm9Bw+tqX/U8RPKp9jvOZPjcLNy5ShoFt9aXODkl9A4ei/BE +4M9bN0wFnX9qZGANnpQ2jx5ATp8V0jlCd3iUZgwz9J1ov5Fua6/WKWxQ+VhoMMmCrQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6F4D5606A31F for ; Sun, 6 Dec 2026 02:20:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7BBC1F0092B; Sun, 6 Dec 2026 02:20:33 +0000 (UTC) Received: by venus (Postfix, from userid 1000) id 6EDC318205E; Sun, 06 Dec 2026 03:20:32 +0100 (CET) From: Sebastian Reichel To: sre@kernel.org, Tian Xuechen <202300460064@mail.sdu.edu.cn> Cc: linux-pm@vger.kernel.org In-Reply-To: <20261206014632.3414204-1-202300460064@mail.sdu.edu.cn> References: <20261206014632.3414204-1-202300460064@mail.sdu.edu.cn> Subject: Re: [PATCH v2] power: reset: hisi: Manage restart handler and MMIO mapping Message-Id: <179652363243.329577.4433482460270146645.b4-ty@b4> Date: Sun, 06 Dec 2026 03:20:32 +0100 X-Mailing-List: linux-pm@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="utf-8" Content-Transfer-Encoding: 7bit X-Mailer: b4 0.16.0 On Sun, 06 Dec 2026 09:46:32 +0800, Tian Xuechen wrote: > The HiSilicon reboot driver leaves its restart handler registered and > its MMIO mapping in place when the device is unbound. > > Keep the reboot registers and offset in per-device data and pass that > data to a managed restart handler. Map the registers before registering > the handler so devres unregisters the handler before unmapping the > registers and freeing the callback data. Keep the existing restart > priority. > > [...] Applied, thanks! [1/1] power: reset: hisi: Manage restart handler and MMIO mapping commit: bc2de0ff51a59327fa2955e0605076279998b450 Best regards, -- Sebastian Reichel