Lines Matching defs:error

63 		dev_err(dev, "Main firmware checksum error\n");
70 dev_err(dev, "DSP firmware checksum error\n");
88 int tries, error;
93 error = goodix_i2c_write_u8(client,
95 if (error)
96 return error;
98 error = goodix_i2c_read(client,
100 if (error)
101 return error;
113 error = goodix_i2c_write_u8(client, GOODIX_REG_MISCTL_DSP_CTL, 0x00);
114 if (error)
115 return error;
118 error = goodix_i2c_write_u8(client, GOODIX_REG_MISCTL_TMR0_EN, 0x00);
119 if (error)
120 return error;
123 error = goodix_i2c_write_u8(client, GOODIX_REG_MISCTL_CACHE_EN, 0x00);
124 if (error)
125 return error;
128 error = goodix_i2c_write_u8(client, GOODIX_REG_MISCTL_BOOTCTL, 0x02);
129 if (error)
130 return error;
133 error = goodix_i2c_write_u8(client,
135 if (error)
136 return error;
139 error = goodix_i2c_write_u8(client, GOODIX_REG_MISCTL_BOOTCTL, 0x00);
140 if (error)
141 return error;
144 error = goodix_i2c_write_u8(client, GOODIX_REG_MISCTL_BOOT_OPT, 0x00);
145 if (error)
146 return error;
149 error = goodix_i2c_write_u8(client, GOODIX_REG_MISCTL_MEM_CD_EN, 0x01);
150 if (error)
151 return error;
158 int error;
162 error = goodix_i2c_write_u8(client, GOODIX_REG_SW_WDT, 0xaa);
163 if (error)
164 return error;
167 error = goodix_i2c_write_u8(client, GOODIX_REG_MISCTL_SWRST, 0x00);
168 if (error)
169 return error;
171 error = goodix_i2c_read(client, GOODIX_REG_SW_WDT, &val, 1);
172 if (error)
173 return error;
182 error = goodix_i2c_write_u8(client, GOODIX_REG_SW_WDT, 0xaa);
183 if (error)
184 return error;
194 int error;
198 error = request_firmware(&fw, fw_name, &ts->client->dev);
199 if (error) {
200 dev_err(&ts->client->dev, "Firmware request error %d\n", error);
201 return error;
204 error = goodix_firmware_verify(&ts->client->dev, fw);
205 if (error)
208 error = goodix_reset_no_int_sync(ts);
209 if (error)
212 error = goodix_enter_upload_mode(ts->client);
213 if (error)
217 error = goodix_i2c_write_u8(ts->client,
219 if (error)
223 error = goodix_i2c_write(ts->client, GOODIX_FW_UPLOAD_ADDRESS,
225 if (error)
229 error = goodix_i2c_write_u8(ts->client,
231 if (error)
235 error = goodix_i2c_write(ts->client, GOODIX_FW_UPLOAD_ADDRESS,
237 if (error)
241 error = goodix_i2c_write_u8(ts->client,
243 if (error)
247 error = goodix_i2c_write(ts->client, GOODIX_FW_UPLOAD_ADDRESS,
249 if (error)
252 error = goodix_start_firmware(ts->client);
253 if (error)
256 error = goodix_int_sync(ts);
259 return error;
350 int error;
353 error = goodix_i2c_read(ts->client, GOODIX_REG_REQUEST, &val, 1);
354 if (error)
365 error = goodix_send_cfg(ts, ts->config, ts->chip->config_len);
366 if (error)
371 error = goodix_prepare_bak_ref(ts);
372 if (error)
375 error = goodix_i2c_write(ts->client, GOODIX_REG_BAK_REF,
377 if (error)
382 error = goodix_firmware_upload(ts);
383 if (error)
388 error = goodix_send_main_clock(ts);
389 if (error)
408 int error;
414 error = goodix_i2c_read(ts->client, GOODIX_REG_STATUS, &val, 1);
415 if (error)
421 error = goodix_i2c_read(ts->client, GOODIX_REG_BAK_REF,
423 if (error) {