Skip to contentSkip to conversation

is the commit 571dcfde2371 (net-next) a proper fix?

DISCUSSION Andy Shevchenko 2 participants 3 messages Dec 8, 2014 – Dec 9, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi!

It seems for me that commit 571dcfde2371 (stmmac: platform: fix default values of the filter bins setting) is redundant (moreover, it could be a cause of crash in some cases when there is no platform data defined in case of CONFIG_OF).

In case of no OF the platform data should be provided by platform code where the defaults are set. What did I miss?

Signature · 2 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy
maintainer
#1 lore raw

From: Andy Shevchenko <[email protected]>
Date: Mon, 08 Dec 2014 12:23:20 +0200

Quoted 7 lines

It seems for me that commit 571dcfde2371 (stmmac: platform: fix default values of the filter bins setting) is redundant (moreover, it could be a cause of crash in some cases when there is no platform data defined in case of CONFIG_OF).

In case of no OF the platform data should be provided by platform code where the defaults are set. What did I miss?

You missed follow-up fix:

commit 28603d13997e2ef47f18589cc9a44553aad49c86

Author: Huacai Chen <[email protected]>
Date:   Thu Nov 27 21:05:34 2014 +0800

stmmac: platform: Move plat_dat checking earlier

#2 lore raw
Quoted 8 lines · David Miller
Quoted 7 lines

It seems for me that commit 571dcfde2371 (stmmac: platform: fix default values of the filter bins setting) is redundant (moreover, it could be a cause of crash in some cases when there is no platform data defined in case of CONFIG_OF).

In case of no OF the platform data should be provided by platform code where the defaults are set. What did I miss?

Quoted 7 lines

You missed follow-up fix:

commit 28603d13997e2ef47f18589cc9a44553aad49c86

Author: Huacai Chen <[email protected]>
Date:   Thu Nov 27 21:05:34 2014 +0800

stmmac: platform: Move plat_dat checking earlier

Thanks, now it makes sense, indeed.

Signature · 2 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy