]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
Merge tag 'phy-for-4.10' of git://git.kernel.org/pub/scm/linux/kernel/git/kishon...
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Nov 2016 07:44:54 +0000 (08:44 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Nov 2016 07:44:54 +0000 (08:44 +0100)
Kishon writes:

phy: for 4.10

Merge contains:
 *) Add new usb2 phy driver for Meson8b and GXBB
 *) Remove phy drivers added for miphy365 and STiH415/6 (as support for
    these SoCs are removed from the kernel)
 *) Add a sysfs entry to facilitate usb role swap in rcar SoC
 *) Add support for otg port in rk3399
 *) misc fixes in various phy drivers and cleanups

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
1  2 
drivers/phy/phy-twl4030-usb.c

index 547ca7b3f09850ce0f0928b4fe0a26cbcaab14d2,daf2aa1c5ce595c7053556fe7f6b316501f39fc6..2990b3965460e837c4218c9e3ca22ab6198cd6d1
@@@ -317,6 -317,9 +317,9 @@@ static enum musb_vbus_id_statu
                        linkstat = MUSB_VBUS_OFF;
        }
  
+       kobject_uevent(&twl->dev->kobj, linkstat == MUSB_VBUS_VALID
+                                       ? KOBJ_ONLINE : KOBJ_OFFLINE);
        dev_dbg(twl->dev, "HW_CONDITIONS 0x%02x/%d; link %d\n",
                        status, status, linkstat);
  
@@@ -459,6 -462,8 +462,6 @@@ static int twl4030_phy_power_off(struc
        struct twl4030_usb *twl = phy_get_drvdata(phy);
  
        dev_dbg(twl->dev, "%s\n", __func__);
 -      pm_runtime_mark_last_busy(twl->dev);
 -      pm_runtime_put_autosuspend(twl->dev);
  
        return 0;
  }
@@@ -470,8 -475,6 +473,8 @@@ static int twl4030_phy_power_on(struct 
        dev_dbg(twl->dev, "%s\n", __func__);
        pm_runtime_get_sync(twl->dev);
        schedule_delayed_work(&twl->id_workaround_work, HZ);
 +      pm_runtime_mark_last_busy(twl->dev);
 +      pm_runtime_put_autosuspend(twl->dev);
  
        return 0;
  }