mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 20:37:27 +00:00
Some tiny bug fixes for chipidea driver
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAABAgAGBQJWxrMzAAoJEEhZKYFQ1nG7Pk8H/0sPau37ADx069HlbmaPxz/X cz9TomQ8AXc9p8LSfvo2nwOPkJLmvJiIofnT6CZqoYxte8SpeuCOZRl/ZFBY2Yuh XiGEHigF8KjuSyZhIcgwcRUczjucOPHnLi4QARnrTQD4mLWXteD9rOVo9dZxeRKW JArPb8CNdEg2Yxq6uVTro4pdBVtprq2Xqf3Iw0XuyeNFjKhCf2jhbwThuiNqwZYz pENPehacmsddXZ6KtXwRWiKlSo/LDdsTD+/0IAEu+JSAOvpJEBWHrV/spK77VzNI kKBRyYZYq5TAA4NreM14EbgvsFrMrh9mgNyZBlJWzvtIOwh3DjfVr7WNFCjgabE= =pyM+ -----END PGP SIGNATURE----- Merge tag 'usb-ci-v4.5-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/peter.chen/usb into usb-linus Peter writes: Some tiny bug fixes for chipidea driver
This commit is contained in:
commit
3c7dc6a079
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user