08 May, 2017

3 commits

  • Invoke enable_usb_clocks during board_usb_init and disable_usb_clocks
    during board_usb_exit to enable and disable clocks respectively.

    Modifications:
    * Enable USB clocks in the OMAP version of the function
    board_usb_init.
    * Disable USB clocks in the OMAP version of the function
    board_usb_cleanup.

    Cc: Marek Vasut
    Signed-off-by: Uri Mashiach
    Reviewed-by: Marek Vasut
    Reviewed-by: Tom Rini

    Uri Mashiach
     
  • A weak version of the function board_usb_init is implemented in:
    common/usb.c
    drivers/usb/host/xhci-omap.c

    To fix the double implementations:
    * Convert the board_usb_init function in drivers/usb/host/xhci-omap.c
    normal (not weak).
    * The function board_usb_init in drivers/usb/host/xhci-omap.c calls to
    the weak function omap_xhci_board_usb_init.
    * Rename board version of the function board_usb_init to
    omap_xhci_board_usb_init.
    Done only for boards that defines CONFIG_USB_XHCI_OMAP.

    To achieve the same flexibility with the function board_usb_cleanup:
    * Add a normal (not weak) implementation of the function
    board_usb_cleanup in drivers/usb/host/xhci-omap.c
    * The function board_usb_cleanup in drivers/usb/host/xhci-omap.c calls
    to the weak function omap_xhci_board_usb_cleanup.
    * Rename board version of the function board_usb_cleanup to
    omap_xhci_board_usb_cleanup.
    Done only for boards that defines CONFIG_USB_XHCI_OMAP.

    Cc: Lokesh Vutla
    Signed-off-by: Uri Mashiach
    Acked-by: Marek Vasut
    Reviewed-by: Tom Rini
    Reviewed-by: Roger Quadros

    Uri Mashiach
     
  • Modify the determination of the base address of xHCI registers of DRA7XX
    targets.
    Before the commit: by the target.
    After the commit: by the USB port index.

    Cc: Lokesh Vutla
    Cc: Marek Vasut
    Cc: Roger Quadros
    Signed-off-by: Uri Mashiach
    Reviewed-by: Marek Vasut
    Reviewed-by: Tom Rini
    Reviewed-by: Roger Quadros
    Acked-by: Marek Vasut
    Acked-by: Marek Vasut

    Uri Mashiach
     

03 May, 2017

3 commits


01 May, 2017

2 commits


30 Apr, 2017

3 commits


28 Apr, 2017

2 commits

  • This originally started out as
    "pinctrl: Kconfig: reorder to keep Rockchip options together"
    and tried to keep the Rockchip-related config options together.

    However, we now rewrite all chip-specific driver selections to start
    with CONFIG_PINCTRL_ (with the inadvertent changes to related
    Makefiles) and sort those alphabetically. And as this already means
    touching most of the file, we also reformat the help text to not exceed
    80 characters (but make full use of those 80 characters).

    Signed-off-by: Philipp Tomsich
    Acked-by: Simon Glass

    Philipp Tomsich
     
  • Unfortunately a test for the PWM uclass was not included when it was
    submitted. This was noticed when trying to add more functionality:

    http://patchwork.ozlabs.org/patch/748172/

    Add a simple test to get us started.

    Signed-off-by: Simon Glass

    Simon Glass
     

26 Apr, 2017

1 commit


25 Apr, 2017

4 commits

  • We used to have opencoded ehci_readl()/writel() which required no
    external functions to be called.

    Now with attempt to switch to generic readl()/writel() accessors
    we see a missing declaration of those accessors in ehci-ppc4xx.
    Something like that happens if applied
    http://patchwork.ozlabs.org/patch/726714/:
    ---------------->8---------------
    CC drivers/usb/host/ehci-ppc4xx.o
    drivers/usb/host/ehci-ppc4xx.c: In function 'ehci_hcd_init':
    drivers/usb/host/ehci-ppc4xx.c:23:3: warning: implicit declaration of function 'readl' [-Wimplicit-function-declaration]
    HC_LENGTH(ehci_readl(&(*hccr)->cr_capbase)));
    ^
    ---------------->8---------------

    Signed-off-by: Alexey Brodkin
    Cc: Tom Rini
    Cc: Marek Vasut
    Cc: Stefan Roese
    Reviewed-by: Stefan Roese

    Alexey Brodkin
     
  • For id = 15 an out of bound access occurs in udc_setup_ep().
    Increase the size of epinfo[] from 30 to 32 to encompass
    ids 0..15.

    The problem was highlighted by cppcheck.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     
  • We want to check the result of musb_init_controller
    and not the address were the result is stored.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     
  • Only A23/A33 in SUN8I want a default value of CONS_INDEX of 5, for other
    chips the default value is 1 like other Allwinner SoCs.

    Fix this default value.

    The original wrong value has lead to wrong console on H3 Orange Pi
    boards.

    Fixes: 7095f8641863 ("sunxi: Convert CONS_INDEX to Kconfig")

    Signed-off-by: Icenowy Zheng
    Signed-off-by: Maxime Ripard

    Icenowy Zheng
     

20 Apr, 2017

9 commits


18 Apr, 2017

13 commits