@@ -1898,7 +1898,9 @@ static int ad9361_txrx_synth_cp_calib(struct ad9361_rf_phy *phy,
18981898 dev_dbg (& phy -> spi -> dev , "%s : ref_clk_hz %lu : is_tx %d" ,
18991899 __func__ , ref_clk_hz , tx );
19001900
1901- ad9361_spi_write (phy -> spi , REG_RX_CP_LEVEL_DETECT + offs , 0x17 );
1901+ /* REVIST:
1902+ * ad9361_spi_write(phy->spi, REG_RX_CP_LEVEL_DETECT + offs, 0x17);
1903+ */
19021904 ad9361_spi_write (phy -> spi , REG_RX_DSM_SETUP_1 + offs , 0x0 );
19031905
19041906 ad9361_spi_write (phy -> spi , REG_RX_LO_GEN_POWER_MODE + offs , 0x00 );
@@ -3197,7 +3199,8 @@ static int ad9361_ensm_set_state(struct ad9361_rf_phy *phy, u8 ensm_state,
31973199 udelay (384000000UL / clk_get_rate (phy -> clks [ADC_CLK ]));
31983200 ad9361_spi_write (spi , REG_ENSM_CONFIG_1 , 0 ); /* Move to Wait*/
31993201 udelay (1 ); /* Wait for ENSM settle */
3200- ad9361_spi_write (spi , REG_CLOCK_ENABLE , 0 ); /* Turn off all clocks */
3202+ ad9361_spi_write (spi , REG_CLOCK_ENABLE ,
3203+ (phy -> pdata -> use_extclk ? XO_BYPASS : 0 )); /* Turn off all clocks */
32013204 phy -> curr_ensm_state = ensm_state ;
32023205 return 0 ;
32033206
@@ -3851,6 +3854,7 @@ static int ad9361_setup(struct ad9361_rf_phy *phy)
38513854 DIGITAL_POWER_UP | CLOCK_ENABLE_DFLT | BBPLL_ENABLE |
38523855 (pd -> use_extclk ? XO_BYPASS : 0 )); /* Enable Clocks */
38533856
3857+
38543858 ret = clk_set_rate (phy -> clks [BB_REFCLK ], ref_freq );
38553859 if (ret < 0 ) {
38563860 dev_err (dev , "Failed to set BB ref clock rate (%d)\n" ,
@@ -4130,6 +4134,9 @@ static int ad9361_verify_fir_filter_coef(struct ad9361_rf_phy *phy,
41304134 u32 val , offs = 0 , gain = 0 , conf , sel , cnt ;
41314135 int ret = 0 ;
41324136
4137+ #ifndef DEBUG
4138+ return 0 ;
4139+ #endif
41334140 dev_dbg (& phy -> spi -> dev , "%s: TAPS %d, dest %d" ,
41344141 __func__ , ntaps , dest );
41354142
0 commit comments