From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k1GB3-0000ub-GQ for barebox@lists.infradead.org; Thu, 30 Jul 2020 21:33:26 +0000 Date: Thu, 30 Jul 2020 23:33:23 +0200 From: Marco Felsch Message-ID: <20200730213323.GB10482@pengutronix.de> References: <20200707160124.3188793-1-enrico.scholz@sigma-chemnitz.de> <9c7cf1e5-baf1-65b0-ddef-e651f6f21e2d@pengutronix.de> <20200711050719.GP15485@pengutronix.de> <6525ec7f-c391-4394-4eef-6777459b94da@pengutronix.de> <20200711052007.GR15485@pengutronix.de> <20200730211356.GA10482@pengutronix.de> <5895f2db-5702-c1f9-c4e2-81bd020da291@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <5895f2db-5702-c1f9-c4e2-81bd020da291@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] net:fec: fixed unaligned access and stack corruption To: Ahmad Fatoum Cc: Enrico Scholz , barebox@lists.infradead.org Hi Ahmad, On 20-07-30 23:23, Ahmad Fatoum wrote: > Hello Marco, > > On 7/30/20 11:13 PM, Marco Felsch wrote: > > Hi, > > > > sorry for jumping in. > > No worries, > > > On 20-07-11 07:28, Ahmad Fatoum wrote: > >> Ah, I thought the drvdata is pre-populated in Linux. I would rename > >> the new function to device_get_match_data then for alignment with > >> Linux, with the difference that it returns either platform data or > >> device tree driver_data as appropriate. > > > > Linux uses the of_device_get_match_data() [1] for of-based drivers. > > > > [1] https://elixir.bootlin.com/linux/v5.8-rc4/source/drivers/of/device.c#L189 > > Yes, future barebox device_get_match_data should work with both of > and platform data, that's why I'd drop the of_ prefix. I think there is already a device_ wrapper function too but those are only to differentiate between acpi and of functions. So +1 from my side :) Regards, Marco _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox