.. | .. |
---|
1 | | -/****************************************************************************** |
---|
2 | | - * |
---|
3 | | - * Copyright(c) 2009-2012 Realtek Corporation. |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify it |
---|
6 | | - * under the terms of version 2 of the GNU General Public License as |
---|
7 | | - * published by the Free Software Foundation. |
---|
8 | | - * |
---|
9 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
---|
10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
12 | | - * more details. |
---|
13 | | - * |
---|
14 | | - * The full GNU General Public License is included in this distribution in the |
---|
15 | | - * file called LICENSE. |
---|
16 | | - * |
---|
17 | | - * Contact Information: |
---|
18 | | - * wlanfae <wlanfae@realtek.com> |
---|
19 | | - * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, |
---|
20 | | - * Hsinchu 300, Taiwan. |
---|
21 | | - * |
---|
22 | | - * Larry Finger <Larry.Finger@lwfinger.net> |
---|
23 | | - * |
---|
24 | | - *****************************************************************************/ |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
| 2 | +/* Copyright(c) 2009-2012 Realtek Corporation.*/ |
---|
25 | 3 | |
---|
26 | 4 | #include "../wifi.h" |
---|
27 | 5 | #include "reg.h" |
---|
.. | .. |
---|
45 | 23 | rtl_set_rfreg(hw, rfpath, RF_CHNLBW, BIT(10) | |
---|
46 | 24 | BIT(11), 0x01); |
---|
47 | 25 | |
---|
48 | | - RT_TRACE(rtlpriv, COMP_RF, DBG_LOUD, |
---|
49 | | - "20M RF 0x18 = 0x%x\n", |
---|
50 | | - rtlphy->rfreg_chnlval[rfpath]); |
---|
| 26 | + rtl_dbg(rtlpriv, COMP_RF, DBG_LOUD, |
---|
| 27 | + "20M RF 0x18 = 0x%x\n", |
---|
| 28 | + rtlphy->rfreg_chnlval[rfpath]); |
---|
51 | 29 | } |
---|
52 | 30 | |
---|
53 | 31 | break; |
---|
.. | .. |
---|
57 | 35 | ((rtlphy->rfreg_chnlval[rfpath] & 0xfffff3ff)); |
---|
58 | 36 | rtl_set_rfreg(hw, rfpath, RF_CHNLBW, BIT(10) | BIT(11), |
---|
59 | 37 | 0x00); |
---|
60 | | - RT_TRACE(rtlpriv, COMP_RF, DBG_LOUD, |
---|
61 | | - "40M RF 0x18 = 0x%x\n", |
---|
62 | | - rtlphy->rfreg_chnlval[rfpath]); |
---|
| 38 | + rtl_dbg(rtlpriv, COMP_RF, DBG_LOUD, |
---|
| 39 | + "40M RF 0x18 = 0x%x\n", |
---|
| 40 | + rtlphy->rfreg_chnlval[rfpath]); |
---|
63 | 41 | } |
---|
64 | 42 | break; |
---|
65 | 43 | default: |
---|
.. | .. |
---|
413 | 391 | |
---|
414 | 392 | rtlhal->during_mac0init_radiob = false; |
---|
415 | 393 | rtlhal->during_mac1init_radioa = false; |
---|
416 | | - RT_TRACE(rtlpriv, COMP_RF, DBG_LOUD, "===>\n"); |
---|
| 394 | + rtl_dbg(rtlpriv, COMP_RF, DBG_LOUD, "===>\n"); |
---|
417 | 395 | /* MAC0 Need PHY1 load radio_b.txt . Driver use DBI to write. */ |
---|
418 | 396 | u1btmp = rtl_read_byte(rtlpriv, mac_reg); |
---|
419 | 397 | if (!(u1btmp & mac_on_bit)) { |
---|
420 | | - RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "enable BB & RF\n"); |
---|
| 398 | + rtl_dbg(rtlpriv, COMP_INIT, DBG_LOUD, "enable BB & RF\n"); |
---|
421 | 399 | /* Enable BB and RF power */ |
---|
422 | 400 | rtl92de_write_dword_dbi(hw, REG_SYS_ISO_CTRL, |
---|
423 | 401 | rtl92de_read_dword_dbi(hw, REG_SYS_ISO_CTRL, direct) | |
---|
.. | .. |
---|
427 | 405 | * and radio_b.txt has been load. */ |
---|
428 | 406 | bresult = false; |
---|
429 | 407 | } |
---|
430 | | - RT_TRACE(rtlpriv, COMP_RF, DBG_LOUD, "<===\n"); |
---|
| 408 | + rtl_dbg(rtlpriv, COMP_RF, DBG_LOUD, "<===\n"); |
---|
431 | 409 | return bresult; |
---|
432 | 410 | |
---|
433 | 411 | } |
---|
.. | .. |
---|
443 | 421 | |
---|
444 | 422 | rtlhal->during_mac0init_radiob = false; |
---|
445 | 423 | rtlhal->during_mac1init_radioa = false; |
---|
446 | | - RT_TRACE(rtlpriv, COMP_RF, DBG_LOUD, "====>\n"); |
---|
| 424 | + rtl_dbg(rtlpriv, COMP_RF, DBG_LOUD, "====>\n"); |
---|
447 | 425 | /* check MAC0 enable or not again now, if |
---|
448 | 426 | * enabled, not power down radio A. */ |
---|
449 | 427 | u1btmp = rtl_read_byte(rtlpriv, mac_reg); |
---|
450 | 428 | if (!(u1btmp & mac_on_bit)) { |
---|
451 | | - RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, "power down\n"); |
---|
| 429 | + rtl_dbg(rtlpriv, COMP_INIT, DBG_LOUD, "power down\n"); |
---|
452 | 430 | /* power down RF radio A according to YuNan's advice. */ |
---|
453 | 431 | rtl92de_write_dword_dbi(hw, RFPGA0_XA_LSSIPARAMETER, |
---|
454 | 432 | 0x00000000, direct); |
---|
455 | 433 | } |
---|
456 | | - RT_TRACE(rtlpriv, COMP_RF, DBG_LOUD, "<====\n"); |
---|
| 434 | + rtl_dbg(rtlpriv, COMP_RF, DBG_LOUD, "<====\n"); |
---|
457 | 435 | } |
---|
458 | 436 | |
---|
459 | 437 | bool rtl92d_phy_rf6052_config(struct ieee80211_hw *hw) |
---|
.. | .. |
---|
595 | 573 | break; |
---|
596 | 574 | } |
---|
597 | 575 | if (!rtstatus) { |
---|
598 | | - RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, |
---|
599 | | - "Radio[%d] Fail!!\n", rfpath); |
---|
| 576 | + rtl_dbg(rtlpriv, COMP_INIT, DBG_TRACE, |
---|
| 577 | + "Radio[%d] Fail!!\n", rfpath); |
---|
600 | 578 | goto phy_rf_cfg_fail; |
---|
601 | 579 | } |
---|
602 | 580 | |
---|
.. | .. |
---|
610 | 588 | rtl92d_phy_powerdown_anotherphy(hw, false); |
---|
611 | 589 | else if (need_pwrdown_radiob) |
---|
612 | 590 | rtl92d_phy_powerdown_anotherphy(hw, true); |
---|
613 | | - RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, "<---\n"); |
---|
| 591 | + rtl_dbg(rtlpriv, COMP_INIT, DBG_TRACE, "<---\n"); |
---|
614 | 592 | return rtstatus; |
---|
615 | 593 | |
---|
616 | 594 | phy_rf_cfg_fail: |
---|