24 Sep, 2010

1 commit

  • While sh previously had its own debugfs root, there now exists a
    common arch_debugfs_dir prototype, so we switch everything over to
    that. Presumably once more architectures start making use of this
    we'll be able to just kill off the stub kdebugfs wrapper.

    Signed-off-by: Paul Mundt

    Paul Mundt
     

23 Sep, 2010

1 commit


20 Sep, 2010

7 commits

  • This copies the pci_config_lock idea from x86 over, allowing us to kill
    off a couple of existing private locks. At the same time, these need to
    be converted to raw spinlocks for -rt kernels, so we make that change at
    the same time. This should make it easier for future parts to get the
    locking right instead of inevitable ending up with lock type mismatches.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • This gets each port handling its MSTP bit, as well as moving the PHY
    clock management in to the clock framework.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Some of the existing code is flipping between __raw_xxx() and
    pci_{read,write}_reg(). As the latter are just wrappers for the former,
    flip over to using them consistently.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Presently we error out if a link is disabled and simply drop the port
    registration outright. This follows the PPC changes and simply reports on
    the link state on boot, leaving the port registered, in order to more
    easily deal with hotplug on future parts.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • These settings are properly propagated by the hardware already, so
    there's no need to bother with them manually.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • The SH7786 PCIe is presently unable to enumerate itself in root complex
    mode, and has no visibility through either type 0 or type 1 accesses,
    despite having a mostly sensible extended config space for each port.
    Attempts to generate type 0 or type 1 config cycles result in completer
    aborts, so we're ultimately forced to use SuperHyway transactions
    instead.

    As each port has a single port device mapping that resolves for any
    PCI_SLOT definition, we simply hijack devfn 0 for the SuperHyway
    transaction and bump up the devfn limit.

    With enumeration of the root complex now possible, we also need to insert
    an early fixup to hide the BARs from the kernel. With all of that done,
    it's now possible to use the pcieport services with all of the PCIe
    ports, which is the first step to power management support.

    Signed-off-by: Paul Mundt

    Paul Mundt
     
  • Previously these IDs were only used by one driver, so there was not much
    need for having them generically defined. Now that this will no longer
    hold true, move them over.

    Signed-off-by: Paul Mundt

    Paul Mundt
     

19 Sep, 2010

3 commits


16 Sep, 2010

1 commit

  • The only BKL user in arch/sh protects a single bit,
    so we can trivially replace it with test_and_set_bit.

    Signed-off-by: Arnd Bergmann
    Cc: Paul Mundt
    Cc: linux-sh@vger.kernel.org
    Signed-off-by: Paul Mundt

    Arnd Bergmann
     

14 Sep, 2010

5 commits


07 Sep, 2010

7 commits


20 Aug, 2010

6 commits


19 Aug, 2010

4 commits


18 Aug, 2010

5 commits