Skip to content

Commit

Permalink
Update FUCEK Drivers ....
Browse files Browse the repository at this point in the history
  • Loading branch information
kutemeikito committed Mar 1, 2020
1 parent 34f02c7 commit 026932c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 21 deletions.
14 changes: 0 additions & 14 deletions drivers/scsi/ufs/ufshcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -7944,26 +7944,12 @@ static int ufshcd_reset_and_restore(struct ufs_hba *hba)
err = ufshcd_detect_device(hba);
} while (err && --retries);

<<<<<<< HEAD
/*
* There is no point proceeding even after failing
* to recover after multiple retries.
*/
if (err && ufshcd_is_embedded_dev(hba))
BUG();

/*
* After reset the door-bell might be cleared, complete
* outstanding requests in s/w here.
*/
spin_lock_irqsave(hba->host->host_lock, flags);
ufshcd_transfer_req_compl(hba);
ufshcd_tmc_handler(hba);
spin_unlock_irqrestore(hba->host->host_lock, flags);

=======
>>>>>>> v4.14.172
return err;
}

/**
Expand Down
1 change: 0 additions & 1 deletion drivers/scsi/ufs/ufshcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,6 @@ struct ufs_hba {
bool force_host_reset;
bool auto_h8_err;
struct ufs_stats ufs_stats;
bool silence_err_logs;

/* Device management request data */
struct ufs_dev_cmd dev_cmd;
Expand Down
8 changes: 2 additions & 6 deletions drivers/usb/gadget/composite.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "u_os_desc.h"
#undef dev_dbg
#define dev_dbg dev_info
#undef pr_debug
#undef pr_debug
#define pr_debug pr_info
/**
* struct usb_os_string - represents OS String to be reported by a gadget
Expand Down Expand Up @@ -580,11 +580,7 @@ static u8 encode_bMaxPower(enum usb_device_speed speed,
default:
/* only SuperSpeed and faster support > 500mA */
return DIV_ROUND_UP(min(val, 500U), 2);
}

if (speed < USB_SPEED_SUPER)
return DIV_ROUND_UP(val, 8);
else
}
}

static int config_buf(struct usb_configuration *config,
Expand Down

0 comments on commit 026932c

Please sign in to comment.