Skip to content

Commit

Permalink
PR #185 from dmipx: d4xx: fix dfu release warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Nir-Az authored Mar 5, 2024
2 parents b854d3a + 6906814 commit 2f918be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/realsense/d4xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -5049,10 +5049,11 @@ static int ds5_dfu_device_release(struct inode *inode, struct file *file)
#endif
/* Verify communication */
do {
msleep_range(100);
ret = ds5_read(state, DS5_FW_VERSION, &state->fw_version);
if (ret)
msleep_range(10);
} while (retry-- && ret != 0 );
if (!ret) {
if (ret) {
dev_warn(&state->client->dev,
"%s(): no communication with d4xx\n", __func__);
return ret;
Expand Down

0 comments on commit 2f918be

Please sign in to comment.