[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240816.052147.1483659918879744727.fujita.tomonori@gmail.com>
Date: Fri, 16 Aug 2024 05:21:47 +0000 (UTC)
From: FUJITA Tomonori <fujita.tomonori@...il.com>
To: andrew@...n.ch
Cc: fujita.tomonori@...il.com, netdev@...r.kernel.org,
rust-for-linux@...r.kernel.org, tmgross@...ch.edu,
miguel.ojeda.sandonis@...il.com, benno.lossin@...ton.me,
aliceryhl@...gle.com
Subject: Re: [PATCH net-next v3 2/6] rust: net::phy support probe callback
On Fri, 16 Aug 2024 02:40:12 +0200
Andrew Lunn <andrew@...n.ch> wrote:
>> + /// # Safety
>> + ///
>> + /// `phydev` must be passed by the corresponding callback in `phy_driver`.
>> + unsafe extern "C" fn probe_callback(phydev: *mut bindings::phy_device) -> core::ffi::c_int {
>> + from_result(|| {
>> + // SAFETY: This callback is called only in contexts
>> + // where we can exclusively access to `phy_device` because
>> + // it's not published yet, so the accessors on `Device` are okay
>> + // to call.
>
> Minor English nitpick. Its is normally 'have access to'. Or you can
> drop the 'to'.
>
> Otherwise
>
> Reviewed-by: Andrew Lunn <andrew@...n.ch>
Dropped the 'to' and added your Reviewed-by.
Thanks!
Powered by blists - more mailing lists