Skip to content

RFC mips: ralink: mt7621: fix too-early kzalloc

John Thomson linux-mips lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mips: ralink: mt7621: define MT7621_SYSC_BASE with __iomemarch/mips/include/asm/mach-ralink/mt7621.h arch/mips/ralink/mt7621.c+6 -50 replies
2/3mips: ralink: mt7621: soc queries and tests as functionsarch/mips/ralink/mt7621.c+61 -250 replies
3/3mips: ralink: mt7621: do not use kzalloc too earlyarch/mips/ralink/mt7621.c+9 -55 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchSergio Paracuellos
1/3
2/3
3/3T-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC PATCH 0/3] mips: ralink: mt7621: fix too-early kzalloc

ralink mt7621 attempts to use kzalloc before normal memory management is available.
Before v6.1-rc1, mt7621.c soc_dev_init silently failed to kzalloc and returned in soc_dev_init, but continued to boot without the soc device registered.
After, kernel crashes before it outputs any console messages

This was bisected to an mm/slub change (detailed in patch 3)

RFC due to
- probably a (much) better way to do this
- do not have mt7621 device with PCIe to test
drivers/phy/ralink/phy-mt7621-pci.c
- should this reference a commit as Fixes?