All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: macb: Add default usrio config to default gem config
@ 2021-01-11 19:55 Atish Patra
  2021-01-11 23:13 ` Jakub Kicinski
  0 siblings, 1 reply; 3+ messages in thread
From: Atish Patra @ 2021-01-11 19:55 UTC (permalink / raw)
  To: linux-kernel
  Cc: Atish Patra, Claudiu Beznea, David S. Miller, Jakub Kicinski,
	netdev, Nicolas Ferre

There is no usrio config defined for default gem config leading to
a kernel panic devices that don't define a data. This issue can be
reprdouced with microchip polar fire soc where compatible string
is defined as "cdns,macb".

Fixes: edac63861db7 ("add userio bits as platform configuration")

Signed-off-by: Atish Patra <atish.patra@wdc.com>
---
 drivers/net/ethernet/cadence/macb_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
index 814a5b10141d..47ee72ab7002 100644
--- a/drivers/net/ethernet/cadence/macb_main.c
+++ b/drivers/net/ethernet/cadence/macb_main.c
@@ -4590,6 +4590,7 @@ static const struct macb_config default_gem_config = {
 	.dma_burst_length = 16,
 	.clk_init = macb_clk_init,
 	.init = macb_init,
+	.usrio = &macb_default_usrio,
 	.jumbo_max_len = 10240,
 };
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] net: macb: Add default usrio config to default gem config
  2021-01-11 19:55 [PATCH] net: macb: Add default usrio config to default gem config Atish Patra
@ 2021-01-11 23:13 ` Jakub Kicinski
  2021-01-12  1:48   ` Atish Patra
  0 siblings, 1 reply; 3+ messages in thread
From: Jakub Kicinski @ 2021-01-11 23:13 UTC (permalink / raw)
  To: Atish Patra
  Cc: linux-kernel, Claudiu Beznea, David S. Miller, netdev, Nicolas Ferre

On Mon, 11 Jan 2021 11:55:53 -0800 Atish Patra wrote:
> There is no usrio config defined for default gem config leading to
> a kernel panic devices that don't define a data. This issue can be
> reprdouced with microchip polar fire soc where compatible string
> is defined as "cdns,macb".
> 
> Fixes: edac63861db7 ("add userio bits as platform configuration")
> 
> Signed-off-by: Atish Patra <atish.patra@wdc.com>

Fixes tag needs work:

Fixes tag: Fixes: edac63861db7 ("add userio bits as platform configuration")
Has these problem(s):
	- empty line after the tag
	- Subject does not match target commit subject
	  Just use
		git log -1 --format='Fixes: %h ("%s")'

Please put [PATCH net] as subject prefix, to indicate this 
is a networking fix.

You can also CC Andrew Lunn like get_maintainer.pl suggests,
but drop linux-kernel from the CC/To.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] net: macb: Add default usrio config to default gem config
  2021-01-11 23:13 ` Jakub Kicinski
@ 2021-01-12  1:48   ` Atish Patra
  0 siblings, 0 replies; 3+ messages in thread
From: Atish Patra @ 2021-01-12  1:48 UTC (permalink / raw)
  To: kuba; +Cc: nicolas.ferre, claudiu.beznea, linux-kernel, davem, netdev

On Mon, 2021-01-11 at 15:13 -0800, Jakub Kicinski wrote:
> On Mon, 11 Jan 2021 11:55:53 -0800 Atish Patra wrote:
> > There is no usrio config defined for default gem config leading to
> > a kernel panic devices that don't define a data. This issue can be
> > reprdouced with microchip polar fire soc where compatible string
> > is defined as "cdns,macb".
> > 
> > Fixes: edac63861db7 ("add userio bits as platform configuration")
> > 
> > Signed-off-by: Atish Patra <atish.patra@wdc.com>
> 
> Fixes tag needs work:
> 
> Fixes tag: Fixes: edac63861db7 ("add userio bits as platform
> configuration")
> Has these problem(s):
>         - empty line after the tag
>         - Subject does not match target commit subject
>           Just use
>                 git log -1 --format='Fixes: %h ("%s")'
> 
> Please put [PATCH net] as subject prefix, to indicate this 
> is a networking fix.
> 
> You can also CC Andrew Lunn like get_maintainer.pl suggests,
> but drop linux-kernel from the CC/To.

Done. Thanks for the feedback.

-- 
Regards,
Atish

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-01-12  1:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-11 19:55 [PATCH] net: macb: Add default usrio config to default gem config Atish Patra
2021-01-11 23:13 ` Jakub Kicinski
2021-01-12  1:48   ` Atish Patra

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.