Message ID | 20170629101851.23972-3-marek.vasut@gmail.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
On 06/29, Marek Vasut wrote: > @@ -549,6 +552,7 @@ static unsigned char vc5_clk_out_get_parent(struct clk_hw *hw) > > dev_warn(&vc5->client->dev, > "Invalid clock output configuration (%02x)\n", src); > + > return 0; > } > Please drop this hunk as it isn't relevant to the patch.
On 06/30/2017 09:26 PM, Stephen Boyd wrote: > On 06/29, Marek Vasut wrote: >> @@ -549,6 +552,7 @@ static unsigned char vc5_clk_out_get_parent(struct clk_hw *hw) >> >> dev_warn(&vc5->client->dev, >> "Invalid clock output configuration (%02x)\n", src); >> + >> return 0; >> } >> > > Please drop this hunk as it isn't relevant to the patch. > Done in V2, thanks.
diff --git a/drivers/clk/clk-versaclock5.c b/drivers/clk/clk-versaclock5.c index d835d48cf14d..766fcc5cc0b3 100644 --- a/drivers/clk/clk-versaclock5.c +++ b/drivers/clk/clk-versaclock5.c @@ -541,6 +541,9 @@ static unsigned char vc5_clk_out_get_parent(struct clk_hw *hw) regmap_read(vc5->regmap, VC5_OUT_DIV_CONTROL(hwdata->num), &src); src &= mask; + if (src == 0) /* Input mux set to DISABLED */ + return 0; + if ((src & fodclkmask) == VC5_OUT_DIV_CONTROL_EN_FOD) return 0; @@ -549,6 +552,7 @@ static unsigned char vc5_clk_out_get_parent(struct clk_hw *hw) dev_warn(&vc5->client->dev, "Invalid clock output configuration (%02x)\n", src); + return 0; }