1. 23 5月, 2014 7 次提交
    • G
      lib: add glibc style strchrnul() variant · 11d200e9
      Grant Likely 提交于
      The strchrnul() variant helpfully returns a the end of the string
      instead of a NULL if the requested character is not found. This can
      simplify string parsing code since it doesn't need to expicitly check
      for a NULL return. If a valid string pointer is passed in, then a valid
      null terminated string will always come back out.
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      11d200e9
    • L
      of: Handle memory@0 node on PPC32 only · b44aa25d
      Leif Lindholm 提交于
      In order to deal with an firmware bug on a specific ppc32 platform
      (longtrail), early_init_dt_scan_memory() looks for a node called
      memory@0 on all platforms. Restrict this quirk to ppc32 kernels only.
      Signed-off-by: NLeif Lindholm <leif.lindholm@linaro.org>
      Cc: linuxppc-dev@lists.ozlabs.org
      Cc: Grant Likely <grant.likely@linaro.org>
      Cc: Mark Rutland <mark.rutland@arm.com>
      Cc: devicetree@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      b44aa25d
    • I
      pci/of: Remove dead code · ff5f762b
      Ian Molton 提交于
      	Commit 98d9f30c
      "pci/of: Match PCI devices to OF nodes dynamically" introduced a lot of code
      derived from the PPC PCI code, including some likes which were redundant.
      
      Remove these lines.
      Reviewed-by: NWilliam Towle <william.towle@codethink.co.uk>
      Signed-off-by: NIan Molton <ian.molton@codethink.co.uk>
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      ff5f762b
    • X
      of: fix race between search and remove in of_update_property() · 947fdaad
      Xiubo Li 提交于
      The of_update_property() is intented to update a property in a node
      and if the property does not exist, will add it.
      
      The second search of the property is possibly won't be found, that
      maybe removed by other thread just before the second search begain.
      
      Using the __of_find_property() and __of_add_property() instead and
      move them into lock operations.
      Signed-off-by: NXiubo Li <Li.Xiubo@freescale.com>
      [grant.likely: conflict with another change in same function]
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      947fdaad
    • T
      of: Use NULL for pointers · d2d3d7cd
      Thierry Reding 提交于
      Commit 44856819 (of/fdt: Clean up casting in unflattening path)
      modified unflatten_dt_node() to take a void * for the mem parameter
      instead of an unsigned long. One of the call sites wasn't updated.
      Signed-off-by: NThierry Reding <treding@nvidia.com>
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      
      Conflicts:
      	drivers/of/fdt.c
      d2d3d7cd
    • G
      of: Stop naming platform_device using dcr address · ba52464a
      Grant Likely 提交于
      There is now a way to ensure all platform devices get a unique name when
      populated from the device tree, and the DCR_NATIVE code path is broken
      anyway. PowerPC Cell (PS3) is the only platform that actually uses this
      path.  Most likely nobody will notice if it is killed. Remove the code
      and associated ugly #ifdef.
      
      The user-visible impact of this patch is that any DCR device on Cell
      will get a new name in the /sys/devices hierarchy.
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      Cc: Rob Herring <robh@kernel.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      ba52464a
    • G
      of: Ensure unique names without sacrificing determinism · 07e461cd
      Grant Likely 提交于
      The way the driver core is implemented, every device using the same bus
      type is required to have a unique name because a symlink to each device
      is created in the appropriate /sys/bus/*/devices directory, and two
      identical names causes a collision.
      
      The current code handles the requirement by using an globally
      incremented counter that is appended to the device name. It works, but
      it means any change to device registration will change the assigned
      numbers. Instead, if we build up the name by using information from the
      parent nodes, then it can be guaranteed to be unique without adding a
      random number to the end of it.
      Signed-off-by: NGrant Likely <grant.likely@linaro.org>
      Cc: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
      Cc: Rob Herring <robh@kernel.org>
      07e461cd
  2. 14 5月, 2014 5 次提交
  3. 10 5月, 2014 2 次提交
    • L
      Linux 3.15-rc5 · d6d211db
      Linus Torvalds 提交于
      d6d211db
    • L
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 181da3c3
      Linus Torvalds 提交于
      Pull x86 fixes from Peter Anvin:
       "A somewhat unpleasantly large collection of small fixes.  The big ones
        are the __visible tree sweep and a fix for 'earlyprintk=efi,keep'.  It
        was using __init functions with predictably suboptimal results.
      
        Another key fix is a build fix which would produce output that simply
        would not decompress correctly in some configuration, due to the
        existing Makefiles picking up an unfortunate local label and mistaking
        it for the global symbol _end.
      
        Additional fixes include the handling of 64-bit numbers when setting
        the vdso data page (a latent bug which became manifest when i386
        started exporting a vdso with time functions), a fix to the new MSR
        manipulation accessors which would cause features to not get properly
        unblocked, a build fix for 32-bit userland, and a few new platform
        quirks"
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        x86, vdso, time: Cast tv_nsec to u64 for proper shifting in update_vsyscall()
        x86: Fix typo in MSR_IA32_MISC_ENABLE_LIMIT_CPUID macro
        x86: Fix typo preventing msr_set/clear_bit from having an effect
        x86/intel: Add quirk to disable HPET for the Baytrail platform
        x86/hpet: Make boot_hpet_disable extern
        x86-64, build: Fix stack protector Makefile breakage with 32-bit userland
        x86/reboot: Add reboot quirk for Certec BPC600
        asmlinkage: Add explicit __visible to drivers/*, lib/*, kernel/*
        asmlinkage, x86: Add explicit __visible to arch/x86/*
        asmlinkage: Revert "lto: Make asmlinkage __visible"
        x86, build: Don't get confused by local symbols
        x86/efi: earlyprintk=efi,keep fix
      181da3c3
  4. 09 5月, 2014 8 次提交
  5. 08 5月, 2014 10 次提交
  6. 07 5月, 2014 8 次提交