Author: manu
Date: Sun May 12 15:27:01 2019
New Revision: 347512
URL: https://svnweb.freebsd.org/changeset/base/347512

Log:
  arm: allwinner: aw_clk_nm: Don't reparent the clock if we didn't ask
  
  When looking for the best frequency don't change the clock parent if the
  clock wasn't configured to do that.

Modified:
  head/sys/arm/allwinner/clkng/aw_clk_nm.c

Modified: head/sys/arm/allwinner/clkng/aw_clk_nm.c
==============================================================================
--- head/sys/arm/allwinner/clkng/aw_clk_nm.c    Sun May 12 12:30:45 2019        
(r347511)
+++ head/sys/arm/allwinner/clkng/aw_clk_nm.c    Sun May 12 15:27:01 2019        
(r347512)
@@ -236,7 +236,7 @@ aw_clk_nm_set_freq(struct clknode *clk, uint64_t fpare
                return (ERANGE);
        }
 
-       if (p_idx != best_parent)
+       if ((sc->flags & AW_CLK_REPARENT) != 0 && p_idx != best_parent)
                clknode_set_parent_by_idx(clk, best_parent);
 
        DEVICE_LOCK(clk);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to