From mboxrd@z Thu Jan 1 00:00:00 1970 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 4A364314A6C; Tue, 6 Jan 2026 14:44:44 +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=1767710685; cv=none; b=Y4K8qg6zA41sKFuqfZjfgkRSekBOJVL8sDwbkNgf7DrdigbE8m1KxtkE7+jBKjgo5UHl/4qdcKcMt38IYOQkMD/GhRvAOazAjzy3eNgH4k9TlCyvDUEjPqDfiD+dbKyLVEeRw+ZCVmnevRnGoazI/v2s+yC1V81/FCr2g+u4BeI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767710685; c=relaxed/simple; bh=yvhMKOt2Eiw/v4wYqhtOzyHT/Ud468bQitPGH/3eqvI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZAZ2sBx1l7MCkXhxoJJ0+YIj0PTWSNezSNcn/1rH08BiTnMPzfhdJZAXkAA/hov4Fs02e7iIKsYHyAqEQTTLgg8Jco/nkPS53vFwzKyIxzc8saH/K3GI2izbKE/JVtidJEMMalEsdST2dOpsTwgLCBeD4MFWo3fy5opNFKnPnYU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oziM8SXl; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="oziM8SXl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54073C116C6; Tue, 6 Jan 2026 14:44:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767710684; bh=yvhMKOt2Eiw/v4wYqhtOzyHT/Ud468bQitPGH/3eqvI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oziM8SXlVncr1yfjcx7kQfipzGEnqXjlOxbaVXU8OsegIUgfjr3K2VFPyJNWDcDIY tQb3eZoWiBXNIplzCOfkBpQhKtuEKpKELqvbb74Y+3Ew1YTUfs0MoCG3WFwqJfUCoV aPnHGS2zOa34zv+iD+1IzRcpxgO1QvLGGHNssvHk= Date: Tue, 6 Jan 2026 15:44:41 +0100 From: Greg Kroah-Hartman To: Danilo Krummrich Cc: Ke Sun , Ke Sun , "Rafael J. Wysocki" , Alexandre Belloni , Miguel Ojeda , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , linux-rtc@vger.kernel.org, rust-for-linux@vger.kernel.org Subject: Re: [RFC PATCH v1 4/4] rust: add PL031 RTC driver Message-ID: <2026010631-verbally-probably-3ec2@gregkh> References: <20260104060621.3757812-1-sunke@kylinos.cn> <20260104060621.3757812-5-sunke@kylinos.cn> <88b1a3dd-e646-4583-bc41-07ff7e9422a7@gmail.com> Precedence: bulk X-Mailing-List: linux-rtc@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: On Tue, Jan 06, 2026 at 02:32:56PM +0100, Danilo Krummrich wrote: > (Cc: Greg, Rafael) > > On Tue Jan 6, 2026 at 3:51 AM CET, Ke Sun wrote: > > Following the platform driver implementation, the AMBA driver stores its > > drvdata in amba_device->dev. However, > > the RTC driver also stores its drvdata in the parent device (which is > > also amba_device->dev), causing a conflict. Wait, what? That's broken in the C implementation, please, let's fix that up now first. drvdata is ONLY for the specific device that driver is attached to, it can not be used by anyone else. thanks, greg k-h