> mt7915_coredump_get_mem_layout() selects the mt7916 regions for chip > 0x7916, but mt76_chip() returns 0x7906 on mt7916, like is_mt7916() > expects. 0x7916 is the PCI id of the second interface, which > mt7915_pci_probe() hands to mt7915_pci_hif2_probe() without a device > of its own. With the coredump_memdump parameter set, an mt7916 > firmware crash thus gives a dump without firmware memory. > > Match the chip id of mt7916. > > Fixes: 4dbcb9125cc3 ("wifi: mt76: mt7915: enable coredump support") > Signed-off-by: Felix Fietkau Reviewed-by: Lorenzo Bianconi > --- > drivers/net/wireless/mediatek/mt76/mt7915/coredump.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/coredump.c b/drivers/net/wireless/mediatek/mt76/mt7915/coredump.c > index db079b274a93..91f02735a882 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7915/coredump.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7915/coredump.c > @@ -96,7 +96,7 @@ mt7915_coredump_get_mem_layout(struct mt7915_dev *dev, u32 *num) > case 0x7986: > *num = ARRAY_SIZE(mt798x_mem_regions); > return &mt798x_mem_regions[0]; > - case 0x7916: > + case 0x7906: > *num = ARRAY_SIZE(mt7916_mem_regions); > return &mt7916_mem_regions[0]; > default: > -- > 2.47.3 > >