Skip to content

Commit

Permalink
Merge tag 'usb-ci-v4.5-rc5' of git://git.kernel.org/pub/scm/linux/ker…
Browse files Browse the repository at this point in the history
…nel/git/peter.chen/usb into usb-linus

Peter writes:

Some tiny bug fixes for chipidea driver
  • Loading branch information
Greg Kroah-Hartman committed Feb 20, 2016
2 parents 18558ca + 8c0614c commit 3c7dc6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/chipidea/ci_hdrc_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ static int ci_hdrc_pci_probe(struct pci_dev *pdev,

/* register a nop PHY */
ci->phy = usb_phy_generic_register();
if (!ci->phy)
return -ENOMEM;
if (IS_ERR(ci->phy))
return PTR_ERR(ci->phy);

memset(res, 0, sizeof(res));
res[0].start = pci_resource_start(pdev, 0);
Expand Down
3 changes: 3 additions & 0 deletions drivers/usb/chipidea/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ static ssize_t ci_port_test_write(struct file *file, const char __user *ubuf,
if (sscanf(buf, "%u", &mode) != 1)
return -EINVAL;

if (mode > 255)
return -EBADRQC;

pm_runtime_get_sync(ci->dev);
spin_lock_irqsave(&ci->lock, flags);
ret = hw_port_test_set(ci, mode);
Expand Down

0 comments on commit 3c7dc6a

Please sign in to comment.