[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180326221840.GA32458@electric-eye.fr.zoreil.com>
Date: Tue, 27 Mar 2018 00:18:40 +0200
From: Francois Romieu <romieu@...zoreil.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: Heiner Kallweit <hkallweit1@...il.com>,
Realtek linux nic maintainers <nic_swsd@...ltek.com>,
David Miller <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH net] r8169: fix setting driver_data after register_netdev
Andrew Lunn <andrew@...n.ch> :
[...]
> How about rtl8169_get_wol() and rtl8169_set_wol(). And
> rtl8169_get_ethtool_stats().
rtl8169_get_wol does not depend on dev->driver_data. Neither does
rtl8169_set_wol() nor rtl8169_get_ethtool_stats().
> Basically anything which makes use of run time power management
> could be invoked as soon as parts of register_netdev() have been
> called.
Ok, it can crash through rtl_open and check_link_status.
If rtl_open can be called that early, rtl_init_one::rtl8168_driver_start()
may also be executed a bit late.
--
Ueimor
Powered by blists - more mailing lists