Message ID | 20230907164410.36651-1-bryan.odonoghue@linaro.org |
---|---|
Headers | show |
Series | media: qcom: camss: Add parameter passing to remove several outstanding bugs | expand |
On 7.09.2023 18:44, Bryan O'Donoghue wrote: > It is possible to pass all of the CAMSS subdevice internal operations > pointers from the controlling resources structure with an additional > pointer added to the resources structure. > > This allows for the removal of most of the probe-time control structures. > > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> > --- [...] > diff --git a/drivers/media/platform/qcom/camss/camss.c b/drivers/media/platform/qcom/camss/camss.c > index 54886a2a449b0..12131d9ea7ca8 100644 > --- a/drivers/media/platform/qcom/camss/camss.c > +++ b/drivers/media/platform/qcom/camss/camss.c > @@ -42,7 +42,8 @@ static const struct camss_subdev_resources csiphy_res_8x16[] = { > { 0 }, > { 100000000, 200000000 } }, > .reg = { "csiphy0", "csiphy0_clk_mux" }, > - .interrupt = { "csiphy0" } > + .interrupt = { "csiphy0" }, > + .ops = &csiphy_ops_2ph_1_0 I'd really vouch for adding commas at the end, so that the next diffs will be smaller otherwise Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad
On 7.09.2023 18:44, Bryan O'Donoghue wrote: > The csiphyX_timer and csiX_phy values need not be hard-coded. We can > functionally decompose the string matching inside of a loop. > > Static string values are brittle, difficult to extend and not required > anyway since the camss->res->csiphy_num value informs us of the number > of CSIPHYs and hence the set of potential clocks for a given CSIPHY. > > In simple terms if we have five CSIPHYs we can have no more and no less > than five csiphy_timer clocks. Similarly csi_phy core clocks have a 1:1 > relationship with the PHY they clock. > > Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> > --- Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad
On 8.09.2023 11:20, Konrad Dybcio wrote: > On 7.09.2023 18:44, Bryan O'Donoghue wrote: >> The csiphyX_timer and csiX_phy values need not be hard-coded. We can >> functionally decompose the string matching inside of a loop. >> >> Static string values are brittle, difficult to extend and not required >> anyway since the camss->res->csiphy_num value informs us of the number >> of CSIPHYs and hence the set of potential clocks for a given CSIPHY. >> >> In simple terms if we have five CSIPHYs we can have no more and no less >> than five csiphy_timer clocks. Similarly csi_phy core clocks have a 1:1 >> relationship with the PHY they clock. >> >> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> >> --- > Acked-by: Konrad Dybcio <konrad.dybcio@linaro.org> > > Konrad Actually, well, I'm not sure about the breaks inside.. Konrad