2021-11-18 16:41:31

by Ben Greear

[permalink] [raw]
Subject: [PATCH 02/11] mt76: mt7915: print out hw revision

From: Ben Greear <[email protected]>

Help determine what version of silicon is in use.

Signed-off-by: Ben Greear <[email protected]>
---
drivers/net/wireless/mediatek/mt76/mt7915/mmio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c b/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
index 1f6ba306c850..fcc4312555f7 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
@@ -146,7 +146,7 @@ int mt7915_mmio_init(struct mt76_dev *mdev, void __iomem *mem_base, int irq)

mdev->rev = (mt76_rr(dev, MT_HW_CHIPID) << 16) |
(mt76_rr(dev, MT_HW_REV) & 0xff);
- dev_dbg(mdev->dev, "ASIC revision: %04x\n", mdev->rev);
+ dev_info(mdev->dev, "ASIC revision: %04x\n", mdev->rev);

mt76_wr(dev, MT_INT_MASK_CSR, 0);

--
2.20.1



2021-11-18 17:00:02

by Ryder Lee

[permalink] [raw]
Subject: Re: [PATCH 02/11] mt76: mt7915: print out hw revision

On Thu, 2021-11-18 at 08:40 -0800, [email protected] wrote:
> From: Ben Greear <[email protected]>
>
> Help determine what version of silicon is in use.
>
> Signed-off-by: Ben Greear <[email protected]>
> ---
> drivers/net/wireless/mediatek/mt76/mt7915/mmio.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
> b/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
> index 1f6ba306c850..fcc4312555f7 100644
> --- a/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
> +++ b/drivers/net/wireless/mediatek/mt76/mt7915/mmio.c
> @@ -146,7 +146,7 @@ int mt7915_mmio_init(struct mt76_dev *mdev, void
> __iomem *mem_base, int irq)
>
> mdev->rev = (mt76_rr(dev, MT_HW_CHIPID) << 16) |
> (mt76_rr(dev, MT_HW_REV) & 0xff);
> - dev_dbg(mdev->dev, "ASIC revision: %04x\n", mdev->rev);
> + dev_info(mdev->dev, "ASIC revision: %04x\n", mdev->rev);
>
> mt76_wr(dev, MT_INT_MASK_CSR, 0);

I prefer leaving it as is now.

Ryder