@@ -160,15 +160,15 @@ static void pmic_glink_altmode_enable_dp(struct pmic_glink_altmode *altmode,
160
160
161
161
ret = typec_mux_set (port -> typec_mux , & port -> state );
162
162
if (ret )
163
- dev_err (altmode -> dev , "failed to switch mux to DP\n" );
163
+ dev_err (altmode -> dev , "failed to switch mux to DP: %d \n" , ret );
164
164
165
165
port -> retimer_state .alt = & port -> dp_alt ;
166
166
port -> retimer_state .data = & dp_data ;
167
167
port -> retimer_state .mode = TYPEC_MODAL_STATE (mode );
168
168
169
169
ret = typec_retimer_set (port -> typec_retimer , & port -> retimer_state );
170
170
if (ret )
171
- dev_err (altmode -> dev , "failed to setup retimer to DP\n" );
171
+ dev_err (altmode -> dev , "failed to setup retimer to DP: %d \n" , ret );
172
172
}
173
173
174
174
static void pmic_glink_altmode_enable_usb (struct pmic_glink_altmode * altmode ,
@@ -182,15 +182,15 @@ static void pmic_glink_altmode_enable_usb(struct pmic_glink_altmode *altmode,
182
182
183
183
ret = typec_mux_set (port -> typec_mux , & port -> state );
184
184
if (ret )
185
- dev_err (altmode -> dev , "failed to switch mux to USB\n" );
185
+ dev_err (altmode -> dev , "failed to switch mux to USB: %d \n" , ret );
186
186
187
187
port -> retimer_state .alt = NULL ;
188
188
port -> retimer_state .data = NULL ;
189
189
port -> retimer_state .mode = TYPEC_STATE_USB ;
190
190
191
191
ret = typec_retimer_set (port -> typec_retimer , & port -> retimer_state );
192
192
if (ret )
193
- dev_err (altmode -> dev , "failed to setup retimer to USB\n" );
193
+ dev_err (altmode -> dev , "failed to setup retimer to USB: %d \n" , ret );
194
194
}
195
195
196
196
static void pmic_glink_altmode_safe (struct pmic_glink_altmode * altmode ,
@@ -204,15 +204,15 @@ static void pmic_glink_altmode_safe(struct pmic_glink_altmode *altmode,
204
204
205
205
ret = typec_mux_set (port -> typec_mux , & port -> state );
206
206
if (ret )
207
- dev_err (altmode -> dev , "failed to switch mux to safe mode\n" );
207
+ dev_err (altmode -> dev , "failed to switch mux to safe mode: %d \n" , ret );
208
208
209
209
port -> retimer_state .alt = NULL ;
210
210
port -> retimer_state .data = NULL ;
211
211
port -> retimer_state .mode = TYPEC_STATE_SAFE ;
212
212
213
213
ret = typec_retimer_set (port -> typec_retimer , & port -> retimer_state );
214
214
if (ret )
215
- dev_err (altmode -> dev , "failed to setup retimer to USB\n" );
215
+ dev_err (altmode -> dev , "failed to setup retimer to USB: %d \n" , ret );
216
216
}
217
217
218
218
static void pmic_glink_altmode_worker (struct work_struct * work )
@@ -397,7 +397,7 @@ static void pmic_glink_altmode_enable_worker(struct work_struct *work)
397
397
398
398
ret = pmic_glink_altmode_request (altmode , ALTMODE_PAN_EN , 0 );
399
399
if (ret )
400
- dev_err (altmode -> dev , "failed to request altmode notifications\n" );
400
+ dev_err (altmode -> dev , "failed to request altmode notifications: %d \n" , ret );
401
401
}
402
402
403
403
static void pmic_glink_altmode_pdr_notify (void * priv , int state )
0 commit comments