From: <yhchuang@realtek.com>
To: <kvalo@codeaurora.org>
Cc: <linux-wireless@vger.kernel.org>, <sgruszka@redhat.com>,
<briannorris@chromium.org>
Subject: [PATCH 1/5] rtw88: switch specified efuse bank
Date: Wed, 24 Jul 2019 14:04:29 +0800 [thread overview]
Message-ID: <1563948273-17910-2-git-send-email-yhchuang@realtek.com> (raw)
In-Reply-To: <1563948273-17910-1-git-send-email-yhchuang@realtek.com>
From: Yan-Hsuan Chuang <yhchuang@realtek.com>
Allows to switch different type of efuse bank by passing
the bank type to swtich to.
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
---
drivers/net/wireless/realtek/rtw88/efuse.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/realtek/rtw88/efuse.c b/drivers/net/wireless/realtek/rtw88/efuse.c
index 212c837..66e56f3 100644
--- a/drivers/net/wireless/realtek/rtw88/efuse.c
+++ b/drivers/net/wireless/realtek/rtw88/efuse.c
@@ -9,10 +9,10 @@
#define RTW_EFUSE_BANK_WIFI 0x0
-static void switch_efuse_bank(struct rtw_dev *rtwdev)
+static void switch_efuse_bank(struct rtw_dev *rtwdev, u8 efuse_bank)
{
rtw_write32_mask(rtwdev, REG_LDO_EFUSE_CTRL, BIT_MASK_EFUSE_BANK_SEL,
- RTW_EFUSE_BANK_WIFI);
+ efuse_bank);
}
#define invalid_efuse_header(hdr1, hdr2) \
@@ -90,7 +90,7 @@ static int rtw_dump_physical_efuse_map(struct rtw_dev *rtwdev, u8 *map)
u32 addr;
u32 cnt;
- switch_efuse_bank(rtwdev);
+ switch_efuse_bank(rtwdev, RTW_EFUSE_BANK_WIFI);
/* disable 2.5V LDO */
chip->ops->cfg_ldo25(rtwdev, false);
--
2.7.4
next prev parent reply other threads:[~2019-07-24 6:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-24 6:04 [PATCH 0/5] rtw88: add support for BT co-existence mechanism yhchuang
2019-07-24 6:04 ` yhchuang [this message]
2019-07-24 6:04 ` [PATCH 2/5] rtw88: check efuse for BT FT S1 yhchuang
2019-07-24 6:04 ` [PATCH 3/5] rtw88: allow c2h operation in irq context yhchuang
2019-07-24 6:04 ` [PATCH 4/5] rtw88: enclose c2h cmd handle with mutex yhchuang
2019-07-24 6:04 ` [PATCH 5/5] rtw88: add BT co-existence support yhchuang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1563948273-17910-2-git-send-email-yhchuang@realtek.com \
--to=yhchuang@realtek.com \
--cc=briannorris@chromium.org \
--cc=kvalo@codeaurora.org \
--cc=linux-wireless@vger.kernel.org \
--cc=sgruszka@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).