File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
drivers/usb/typec/tcpm/qcom Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,10 @@ qcom_pmic_typec_pdphy_pd_transmit_payload(struct pmic_typec_pdphy *pmic_typec_pd
227
227
228
228
spin_lock_irqsave (& pmic_typec_pdphy -> lock , flags );
229
229
230
+ hdr_len = sizeof (msg -> header );
231
+ txbuf_len = pd_header_cnt_le (msg -> header ) * 4 ;
232
+ txsize_len = hdr_len + txbuf_len - 1 ;
233
+
230
234
ret = regmap_read (pmic_typec_pdphy -> regmap ,
231
235
pmic_typec_pdphy -> base + USB_PDPHY_RX_ACKNOWLEDGE_REG ,
232
236
& val );
@@ -244,10 +248,6 @@ qcom_pmic_typec_pdphy_pd_transmit_payload(struct pmic_typec_pdphy *pmic_typec_pd
244
248
if (ret )
245
249
goto done ;
246
250
247
- hdr_len = sizeof (msg -> header );
248
- txbuf_len = pd_header_cnt_le (msg -> header ) * 4 ;
249
- txsize_len = hdr_len + txbuf_len - 1 ;
250
-
251
251
/* Write message header sizeof(u16) to USB_PDPHY_TX_BUFFER_HDR_REG */
252
252
ret = regmap_bulk_write (pmic_typec_pdphy -> regmap ,
253
253
pmic_typec_pdphy -> base + USB_PDPHY_TX_BUFFER_HDR_REG ,
You can’t perform that action at this time.
0 commit comments