Message ID | 20231021-sakuramist-mi11u-v2-1-fa82c91ecaf0@gmail.com (mailing list archive) |
---|---|
State | Handled Elsewhere |
Headers | show |
Series | Add initial support for Xiaomi Mi 11 Ultra | expand |
On Sat, 21 Oct 2023 at 13:20, Xilin Wu via B4 Relay <devnull+wuxilin123.gmail.com@kernel.org> wrote: > > From: Xilin Wu <wuxilin123@gmail.com> > > UCSI is supported on SM8350. Allow it to enable USB role switch and > altmode notifications on SM8350. We have had troubles with UCSI on sm8350. I have a workaround for this (and earlier) platforms. Once it is ready to be posted, I'll include your patch in the series, if you don't mind. > > Signed-off-by: Xilin Wu <wuxilin123@gmail.com> > --- > drivers/soc/qcom/pmic_glink.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/soc/qcom/pmic_glink.c b/drivers/soc/qcom/pmic_glink.c > index 914057331afd..1196e79e6fb3 100644 > --- a/drivers/soc/qcom/pmic_glink.c > +++ b/drivers/soc/qcom/pmic_glink.c > @@ -341,6 +341,7 @@ static const unsigned long pmic_glink_sm8450_client_mask = BIT(PMIC_GLINK_CLIENT > BIT(PMIC_GLINK_CLIENT_UCSI); > > static const struct of_device_id pmic_glink_of_match[] = { > + { .compatible = "qcom,sm8350-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > { .compatible = "qcom,sm8450-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > { .compatible = "qcom,sm8550-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > { .compatible = "qcom,pmic-glink" }, > > -- > 2.42.0 >
Dmitry Baryshkov <dmitry.baryshkov@linaro.org> 于2023年10月22日周日 18:51写道: > > On Sat, 21 Oct 2023 at 13:20, Xilin Wu via B4 Relay > <devnull+wuxilin123.gmail.com@kernel.org> wrote: > > > > From: Xilin Wu <wuxilin123@gmail.com> > > > > UCSI is supported on SM8350. Allow it to enable USB role switch and > > altmode notifications on SM8350. > > We have had troubles with UCSI on sm8350. I have a workaround for this > (and earlier) platforms. Once it is ready to be posted, I'll include > your patch in the series, if you don't mind. I don't mind of course. Do I possibly need to resend the series without the pmic_glink patch? > > > > > Signed-off-by: Xilin Wu <wuxilin123@gmail.com> > > --- > > drivers/soc/qcom/pmic_glink.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/soc/qcom/pmic_glink.c b/drivers/soc/qcom/pmic_glink.c > > index 914057331afd..1196e79e6fb3 100644 > > --- a/drivers/soc/qcom/pmic_glink.c > > +++ b/drivers/soc/qcom/pmic_glink.c > > @@ -341,6 +341,7 @@ static const unsigned long pmic_glink_sm8450_client_mask = BIT(PMIC_GLINK_CLIENT > > BIT(PMIC_GLINK_CLIENT_UCSI); > > > > static const struct of_device_id pmic_glink_of_match[] = { > > + { .compatible = "qcom,sm8350-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > > { .compatible = "qcom,sm8450-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > > { .compatible = "qcom,sm8550-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > > { .compatible = "qcom,pmic-glink" }, > > > > -- > > 2.42.0 > > > > > -- > With best wishes > Dmitry
On Mon, 23 Oct 2023 at 08:06, Sophon Wu <wuxilin123@gmail.com> wrote: > > Dmitry Baryshkov <dmitry.baryshkov@linaro.org> 于2023年10月22日周日 18:51写道: > > > > On Sat, 21 Oct 2023 at 13:20, Xilin Wu via B4 Relay > > <devnull+wuxilin123.gmail.com@kernel.org> wrote: > > > > > > From: Xilin Wu <wuxilin123@gmail.com> > > > > > > UCSI is supported on SM8350. Allow it to enable USB role switch and > > > altmode notifications on SM8350. > > > > We have had troubles with UCSI on sm8350. I have a workaround for this > > (and earlier) platforms. Once it is ready to be posted, I'll include > > your patch in the series, if you don't mind. > > I don't mind of course. Do I possibly need to resend the series without the > pmic_glink patch? That depends on the review of the patch 3/3. If there are any comments, you'll have to resend. If not, maintainers can pick it up separately. > > > > > > > > Signed-off-by: Xilin Wu <wuxilin123@gmail.com> > > > --- > > > drivers/soc/qcom/pmic_glink.c | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/drivers/soc/qcom/pmic_glink.c b/drivers/soc/qcom/pmic_glink.c > > > index 914057331afd..1196e79e6fb3 100644 > > > --- a/drivers/soc/qcom/pmic_glink.c > > > +++ b/drivers/soc/qcom/pmic_glink.c > > > @@ -341,6 +341,7 @@ static const unsigned long pmic_glink_sm8450_client_mask = BIT(PMIC_GLINK_CLIENT > > > BIT(PMIC_GLINK_CLIENT_UCSI); > > > > > > static const struct of_device_id pmic_glink_of_match[] = { > > > + { .compatible = "qcom,sm8350-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > > > { .compatible = "qcom,sm8450-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > > > { .compatible = "qcom,sm8550-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > > > { .compatible = "qcom,pmic-glink" }, > > > > > > -- > > > 2.42.0 > > > > > > > > > -- > > With best wishes > > Dmitry
On Sun, 22 Oct 2023 at 13:51, Dmitry Baryshkov <dmitry.baryshkov@linaro.org> wrote: > > On Sat, 21 Oct 2023 at 13:20, Xilin Wu via B4 Relay > <devnull+wuxilin123.gmail.com@kernel.org> wrote: > > > > From: Xilin Wu <wuxilin123@gmail.com> > > > > UCSI is supported on SM8350. Allow it to enable USB role switch and > > altmode notifications on SM8350. > > We have had troubles with UCSI on sm8350. I have a workaround for this > (and earlier) platforms. Once it is ready to be posted, I'll include > your patch in the series, if you don't mind. I ended up fixing the pmic_glink in a slightly different way, so I'll include a different patch in the posting. > > > > > Signed-off-by: Xilin Wu <wuxilin123@gmail.com> > > --- > > drivers/soc/qcom/pmic_glink.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/soc/qcom/pmic_glink.c b/drivers/soc/qcom/pmic_glink.c > > index 914057331afd..1196e79e6fb3 100644 > > --- a/drivers/soc/qcom/pmic_glink.c > > +++ b/drivers/soc/qcom/pmic_glink.c > > @@ -341,6 +341,7 @@ static const unsigned long pmic_glink_sm8450_client_mask = BIT(PMIC_GLINK_CLIENT > > BIT(PMIC_GLINK_CLIENT_UCSI); > > > > static const struct of_device_id pmic_glink_of_match[] = { > > + { .compatible = "qcom,sm8350-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > > { .compatible = "qcom,sm8450-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > > { .compatible = "qcom,sm8550-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, > > { .compatible = "qcom,pmic-glink" }, > > > > -- > > 2.42.0 > > > > > -- > With best wishes > Dmitry
diff --git a/drivers/soc/qcom/pmic_glink.c b/drivers/soc/qcom/pmic_glink.c index 914057331afd..1196e79e6fb3 100644 --- a/drivers/soc/qcom/pmic_glink.c +++ b/drivers/soc/qcom/pmic_glink.c @@ -341,6 +341,7 @@ static const unsigned long pmic_glink_sm8450_client_mask = BIT(PMIC_GLINK_CLIENT BIT(PMIC_GLINK_CLIENT_UCSI); static const struct of_device_id pmic_glink_of_match[] = { + { .compatible = "qcom,sm8350-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, { .compatible = "qcom,sm8450-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, { .compatible = "qcom,sm8550-pmic-glink", .data = &pmic_glink_sm8450_client_mask }, { .compatible = "qcom,pmic-glink" },