1. 12 2月, 2018 1 次提交
    • F
      usb: phy: mxs: Fix NULL pointer dereference on i.MX23/28 · 49935086
      Fabio Estevam 提交于
      Commit e9365099 ("usb: phy: mxs: add usb charger type detection")
      causes the following kernel hang on i.MX28:
      
      [    2.207973] usbcore: registered new interface driver usb-storage
      [    2.235659] Unable to handle kernel NULL pointer dereference at virtual address 00000188
      [    2.244195] pgd = (ptrval)
      [    2.246994] [00000188] *pgd=00000000
      [    2.250676] Internal error: Oops: 5 [#1] ARM
      [    2.254979] Modules linked in:
      [    2.258089] CPU: 0 PID: 1 Comm: swapper Not tainted 4.15.0-rc8-next-20180117-00002-g75d5f21 #7
      [    2.266724] Hardware name: Freescale MXS (Device Tree)
      [    2.271921] PC is at regmap_read+0x0/0x5c
      [    2.275977] LR is at mxs_phy_charger_detect+0x34/0x1dc
      
      mxs_phy_charger_detect() makes accesses to the anatop registers via regmap,
      however i.MX23/28 do not have such registers, which causes a NULL pointer
      dereference.
      
      Fix the issue by doing a NULL check on the 'regmap' pointer.
      
      Fixes: e9365099 ("usb: phy: mxs: add usb charger type detection")
      Cc: <stable@vger.kernel.org> # v4.15
      Reviewed-by: NLi Jun <jun.li@nxp.com>
      Acked-by: NPeter Chen <peter.chen@nxp.com>
      Signed-off-by: NFabio Estevam <fabio.estevam@nxp.com>
      Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      49935086
  2. 07 11月, 2017 1 次提交
    • G
      USB: phy: Remove redundant license text · fb3967b9
      Greg Kroah-Hartman 提交于
      Now that the SPDX tag is in all USB files, that identifies the license
      in a specific and legally-defined manner.  So the extra GPL text wording
      can be removed as it is no longer needed at all.
      
      This is done on a quest to remove the 700+ different ways that files in
      the kernel describe the GPL license text.  And there's unneeded stuff
      like the address (sometimes incorrect) for the FSF which is never
      needed.
      
      No copyright headers or other non-license-description text was removed.
      
      Cc: Thierry Reding <thierry.reding@gmail.com>
      Cc: Jonathan Hunter <jonathanh@nvidia.com>
      Acked-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      fb3967b9
  3. 04 11月, 2017 1 次提交
  4. 19 10月, 2017 1 次提交
  5. 25 8月, 2016 1 次提交
  6. 04 2月, 2016 1 次提交
  7. 20 11月, 2015 1 次提交
  8. 18 11月, 2015 1 次提交
  9. 06 8月, 2015 1 次提交
  10. 05 8月, 2015 1 次提交
  11. 07 7月, 2015 1 次提交
  12. 27 1月, 2015 4 次提交
  13. 13 1月, 2015 2 次提交
  14. 04 11月, 2014 1 次提交
  15. 20 10月, 2014 1 次提交
  16. 03 9月, 2014 1 次提交
  17. 28 8月, 2014 1 次提交
    • S
      usb: phy: mxs: Add VF610 USB PHY support · d0ee68b5
      Stefan Agner 提交于
      This adds support for the USB PHY in Vybrid VF610. We assume that
      the disconnection without VBUS is also needed for Vybrid.
      
      Tests showed, without MXS_PHY_NEED_IP_FIX, enumeration of devices
      behind a USB Hub fails with errors:
      
      [  215.163507] usb usb1-port1: cannot reset (err = -32)
      [  215.170498] usb usb1-port1: cannot reset (err = -32)
      [  215.185120] usb usb1-port1: cannot reset (err = -32)
      [  215.191345] usb usb1-port1: cannot reset (err = -32)
      [  215.202487] usb usb1-port1: cannot reset (err = -32)
      [  215.207718] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
      [  215.219317] usb usb1-port1: unable to enumerate USB device
      
      Hence we also enable the MXS_PHY_NEED_IP_FIX flag.
      Acked-by: NPeter Chen <peter.chen@freescale.com>
      Signed-off-by: NStefan Agner <stefan@agner.ch>
      Signed-off-by: NFelipe Balbi <balbi@ti.com>
      d0ee68b5
  18. 06 3月, 2014 9 次提交
  19. 13 12月, 2013 1 次提交
  20. 07 12月, 2013 1 次提交
  21. 26 11月, 2013 1 次提交
  22. 29 7月, 2013 1 次提交
  23. 18 5月, 2013 1 次提交
  24. 15 5月, 2013 3 次提交
  25. 18 3月, 2013 2 次提交