24 Jun, 2020

1 commit


29 May, 2020

1 commit

  • For version 1 to 3 of the device tree, this is the node full
    path as a zero terminated string, starting with "/". The
    following equation will not hold, since the node name has
    been processed in the fdt_get_name().

    *pathp == '/'

    For version 16 and later, this is the node unit name only
    (or an empty string for the root node). So the above
    equation will still not hold.

    So the kbasename() is redundant, just remove it.

    Signed-off-by: Qi Zheng
    Signed-off-by: Rob Herring

    Qi Zheng
     

20 May, 2020

1 commit


21 Apr, 2020

1 commit


09 Dec, 2019

1 commit


03 Dec, 2019

1 commit

  • Pull Devicetree updates from Rob Herring:

    - DT schemas for PWM, syscon, power domains, SRAM, syscon-reboot,
    syscon-poweroff, renesas-irqc, simple-pm-bus, renesas-bsc, pwm-rcar,
    Renesas tpu, at24 eeprom, rtc-sh, Allwinner PS/2, sharp,ld-d5116z01b
    panel, Arm SMMU, max77650, Meson CEC, Amlogic canvas and DWC3 glue,
    Allwinner A10 mUSB and CAN, TI Davinci MDIO, QCom QCS404
    interconnect, Unisoc/Spreadtrum SoCs and UART

    - Convert a bunch of Samsung bindings to DT schema

    - Convert a bunch of ST stm32 bindings to DT schema

    - Realtek and Exynos additions to Arm Mali bindings

    - Fix schema errors in RiscV CPU schema

    - Various schema fixes from improved meta-schema checks

    - Improve the handling of 'dma-ranges' and in particular fix DMA mask
    setup on PCI bridges

    - Fix a memory leak in add_changeset_property() and DT unit tests.

    - Several documentation improvements for schema validation

    - Rework build rules to improve schema validation errors

    - Color output for dtx_diff

    * tag 'devicetree-for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (138 commits)
    libfdt: define INT32_MAX and UINT32_MAX in libfdt_env.h
    dt-bindings: arm: Remove leftover axentia.txt
    of: unittest: fix memory leak in attach_node_and_children
    of: overlay: add_changeset_property() memory leak
    dt-bindings: interrupt-controller: arm,gic-v3: Add missing type to interrupt-partition-* nodes
    dt-bindings: firmware: ixp4xx: Drop redundant minItems/maxItems
    dt-bindings: power: Rename back power_domain.txt bindings to fix references
    dt-bindings: i2c: stm32: Migrate i2c-stm32 documentation to yaml
    dt-bindings: mtd: Convert stm32 fmc2-nand bindings to json-schema
    dt-bindings: remoteproc: convert stm32-rproc to json-schema
    dt-bindings: mailbox: convert stm32-ipcc to json-schema
    dt-bindings: mfd: Convert stm32 low power timers bindings to json-schema
    dt-bindings: interrupt-controller: Convert stm32-exti to json-schema
    dt-bindings: crypto: Convert stm32 HASH bindings to json-schema
    dt-bindings: rng: Convert stm32 RNG bindings to json-schema
    dt-bindings: pwm: Convert Samsung PWM bindings to json-schema
    dt-bindings: pwm: Convert PWM bindings to json-schema
    dt-bindings: serial: Add a new compatible string for SC9863A
    dt-bindings: serial: Convert sprd-uart to json-schema
    dt-bindings: arm: Add bindings for Unisoc SC9863A
    ...

    Linus Torvalds
     

26 Nov, 2019

1 commit

  • Pull printk updates from Petr Mladek:

    - Allow to print symbolic error names via new %pe modifier.

    - Use pr_warn() instead of the remaining pr_warning() calls. Fix
    formatting of the related lines.

    - Add VSPRINTF entry to MAINTAINERS.

    * tag 'printk-for-5.5' of git://git.kernel.org/pub/scm/linux/kernel/git/pmladek/printk: (32 commits)
    checkpatch: don't warn about new vsprintf pointer extension '%pe'
    MAINTAINERS: Add VSPRINTF
    tools lib api: Renaming pr_warning to pr_warn
    ASoC: samsung: Use pr_warn instead of pr_warning
    lib: cpu_rmap: Use pr_warn instead of pr_warning
    trace: Use pr_warn instead of pr_warning
    dma-debug: Use pr_warn instead of pr_warning
    vgacon: Use pr_warn instead of pr_warning
    fs: afs: Use pr_warn instead of pr_warning
    sh/intc: Use pr_warn instead of pr_warning
    scsi: Use pr_warn instead of pr_warning
    platform/x86: intel_oaktrail: Use pr_warn instead of pr_warning
    platform/x86: asus-laptop: Use pr_warn instead of pr_warning
    platform/x86: eeepc-laptop: Use pr_warn instead of pr_warning
    oprofile: Use pr_warn instead of pr_warning
    of: Use pr_warn instead of pr_warning
    macintosh: Use pr_warn instead of pr_warning
    idsn: Use pr_warn instead of pr_warning
    ide: Use pr_warn instead of pr_warning
    crypto: n2: Use pr_warn instead of pr_warning
    ...

    Linus Torvalds
     

18 Oct, 2019

1 commit

  • As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of
    pr_warning"), removing pr_warning so all logging messages use a
    consistent _warn style. Let's do it.

    Link: http://lkml.kernel.org/r/20191018031850.48498-16-wangkefeng.wang@huawei.com
    To: linux-kernel@vger.kernel.org
    Cc: Rob Herring
    Cc: Frank Rowand
    Signed-off-by: Kefeng Wang
    Reviewed-by: Sergey Senozhatsky
    Signed-off-by: Petr Mladek

    Kefeng Wang
     

01 Oct, 2019

1 commit


21 Sep, 2019

1 commit

  • This merges Linus's tree as of commit b41dae061bbd ("Merge tag
    'xfs-5.4-merge-7' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux")
    into android-mainline.

    This "early" merge makes it easier to test and handle merge conflicts
    instead of having to wait until the "end" of the merge window and handle
    all 10000+ commits at once.

    Signed-off-by: Greg Kroah-Hartman
    Change-Id: I6bebf55e5e2353f814e3c87f5033607b1ae5d812

    Greg Kroah-Hartman
     

27 Aug, 2019

1 commit

  • Commit 428826f5358c ("fdt: add support for rng-seed") moves of_fdt_crc32
    from early_init_dt_verify() to early_init_dt_scan() since
    early_init_dt_scan_chosen() may modify fdt to erase rng-seed.

    However, arm and some other arch won't call early_init_dt_scan(), they
    call early_init_dt_verify() then early_init_dt_scan_nodes().

    Restore of_fdt_crc32 to early_init_dt_verify() then update it in
    early_init_dt_scan_chosen() if fdt if updated.

    Fixes: 428826f5358c ("fdt: add support for rng-seed")
    Reported-by: Geert Uytterhoeven
    Signed-off-by: Hsin-Yi Wang
    Tested-by: Geert Uytterhoeven
    Signed-off-by: Will Deacon

    Hsin-Yi Wang
     

23 Aug, 2019

1 commit

  • Introducing a chosen node, rng-seed, which is an entropy that can be
    passed to kernel called very early to increase initial device
    randomness. Bootloader should provide this entropy and the value is
    read from /chosen/rng-seed in DT.

    Obtain of_fdt_crc32 for CRC check after early_init_dt_scan_nodes(),
    since early_init_dt_scan_chosen() would modify fdt to erase rng-seed.

    Add a new interface add_bootloader_randomness() for rng-seed use case.
    Depends on whether the seed is trustworthy, rng seed would be passed to
    add_hwgenerator_randomness(). Otherwise it would be passed to
    add_device_randomness(). Decision is controlled by kernel config
    RANDOM_TRUST_BOOTLOADER.

    Signed-off-by: Hsin-Yi Wang
    Reviewed-by: Stephen Boyd
    Reviewed-by: Rob Herring
    Reviewed-by: Theodore Ts'o # drivers/char/random.c
    Signed-off-by: Will Deacon

    Hsin-Yi Wang
     

24 Jul, 2019

1 commit


09 Jul, 2019

1 commit


18 Jun, 2019

1 commit

  • When CONFIG_OF_EARLY_FLATTREE is disabled, there is a compiler
    warning,

    drivers/of/fdt.c:129:19: warning: ‘of_fdt_match’ defined but not used [-Wunused-function]
    static int __init of_fdt_match(const void *blob, unsigned long node,

    Since the only caller of of_fdt_match() is of_flat_dt_match(),
    let's move the body of of_fdt_match() into of_flat_dt_match()
    and eliminate of_fdt_match().

    Meanwhile, move of_fdt_is_compatible() under CONFIG_OF_EARLY_FLATTREE,
    as all callers are over there.

    Fixes: 9b4d2b635bd0 ("of/fdt: Remove dead code and mark functions with __init")
    Cc: Frank Rowand
    Signed-off-by: Kefeng Wang
    Reviewed-by: Stephen Boyd
    Signed-off-by: Rob Herring

    Kefeng Wang
     

25 May, 2019

2 commits

  • The FDT pointer, i.e. initial_boot_params, shouldn't be changed after
    init. It's only set by boot code and then the only user of the FDT is
    the raw sysfs reading API. Mark this pointer with __ro_after_init so
    that the pointer can't be changed after init.

    Cc: Hsin-Yi Wang
    Signed-off-by: Stephen Boyd
    Signed-off-by: Rob Herring

    Stephen Boyd
     
  • Some functions in here are never called, and others are only called
    during __init. Remove the dead code and some dead exports for functions
    that don't exist (I'm looking at you of_fdt_get_string!). Mark some
    functions with __init so we can throw them away after we boot up and
    poke at the FDT blob too.

    Cc: Hsin-Yi Wang
    Signed-off-by: Stephen Boyd
    Signed-off-by: Rob Herring

    Stephen Boyd
     

21 May, 2019

1 commit


04 May, 2019

2 commits

  • Change-Id: I4380c68c3474026a42ffa9f95c525f9a563ba7a3

    Todd Kjos
     
  • The old logic assumes CMDLINE_FROM_BOOTLOADER vs. CMDLINE_FORCE and
    ignores CMDLINE_EXTEND. Here's the old logic:

    - CONFIG_CMDLINE_FORCE=true
    CONFIG_CMDLINE
    - dt bootargs=non-empty:
    dt bootargs
    - dt bootargs=empty, @data is non-empty string
    @data is left unchanged
    - dt bootargs=empty, @data is empty string
    CONFIG_CMDLINE (or "" if that's not defined)

    The new logic is now documented in of_fdt.h and is copied here for
    reference:

    - CONFIG_CMDLINE_FORCE=true
    CONFIG_CMDLINE
    - CONFIG_CMDLINE_EXTEND=true, @data is non-empty string
    @data + dt bootargs (even if dt bootargs are empty)
    - CONFIG_CMDLINE_EXTEND=true, @data is empty string
    CONFIG_CMDLINE + dt bootargs (even if dt bootargs are empty)
    - CMDLINE_FROM_BOOTLOADER=true, dt bootargs=non-empty:
    dt bootargs
    - CMDLINE_FROM_BOOTLOADER=true, dt bootargs=empty, @data is non-empty string
    @data is left unchanged
    - CMDLINE_FROM_BOOTLOADER=true, dt bootargs=empty, @data is empty string
    CONFIG_CMDLINE (or "" if that's not defined)

    Signed-off-by: Doug Anderson
    CC: devicetree-discuss@lists.ozlabs.org
    CC: Grant Likely
    CC: Benjamin Herrenschmidt
    CC: Rob Herring
    Bug: 120440972
    Change-Id: I40ace250847f813358125dfcaa8998fd32cf7ea3
    Signed-off-by: Colin Cross
    [AmitP: Folded following android-4.9 commit changes into this patch
    e820270abb5d ("ANDROID: of: fix CONFIG_CMDLINE_EXTEND")
    9a4a74055444 ("ANDROID: of: Fix build warnings")]
    Signed-off-by: Amit Pundir

    Doug Anderson
     

30 Apr, 2019

1 commit


13 Mar, 2019

1 commit

  • Add check for the return value of memblock_alloc*() functions and call
    panic() in case of error. The panic message repeats the one used by
    panicing memblock allocators with adjustment of parameters to include
    only relevant ones.

    The replacement was mostly automated with semantic patches like the one
    below with manual massaging of format strings.

    @@
    expression ptr, size, align;
    @@
    ptr = memblock_alloc(size, align);
    + if (!ptr)
    + panic("%s: Failed to allocate %lu bytes align=0x%lx\n", __func__, size, align);

    [anders.roxell@linaro.org: use '%pa' with 'phys_addr_t' type]
    Link: http://lkml.kernel.org/r/20190131161046.21886-1-anders.roxell@linaro.org
    [rppt@linux.ibm.com: fix format strings for panics after memblock_alloc]
    Link: http://lkml.kernel.org/r/1548950940-15145-1-git-send-email-rppt@linux.ibm.com
    [rppt@linux.ibm.com: don't panic if the allocation in sparse_buffer_init fails]
    Link: http://lkml.kernel.org/r/20190131074018.GD28876@rapoport-lnx
    [akpm@linux-foundation.org: fix xtensa printk warning]
    Link: http://lkml.kernel.org/r/1548057848-15136-20-git-send-email-rppt@linux.ibm.com
    Signed-off-by: Mike Rapoport
    Signed-off-by: Anders Roxell
    Reviewed-by: Guo Ren [c-sky]
    Acked-by: Paul Burton [MIPS]
    Acked-by: Heiko Carstens [s390]
    Reviewed-by: Juergen Gross [Xen]
    Reviewed-by: Geert Uytterhoeven [m68k]
    Acked-by: Max Filippov [xtensa]
    Cc: Catalin Marinas
    Cc: Christophe Leroy
    Cc: Christoph Hellwig
    Cc: "David S. Miller"
    Cc: Dennis Zhou
    Cc: Greentime Hu
    Cc: Greg Kroah-Hartman
    Cc: Guan Xuetao
    Cc: Guo Ren
    Cc: Mark Salter
    Cc: Matt Turner
    Cc: Michael Ellerman
    Cc: Michal Simek
    Cc: Petr Mladek
    Cc: Richard Weinberger
    Cc: Rich Felker
    Cc: Rob Herring
    Cc: Rob Herring
    Cc: Russell King
    Cc: Stafford Horne
    Cc: Tony Luck
    Cc: Vineet Gupta
    Cc: Yoshinori Sato
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Rapoport
     

11 Jan, 2019

1 commit


04 Dec, 2018

1 commit

  • On architectures that only get their bootargs through devicetree's
    chosen node (such as RISC-V), that node is mandatory. After a
    discussion with Rob [1] I'm adding a warning in case chosen node
    is not present, to let users know about it.

    [1]: https://patchwork.ozlabs.org/patch/984224/#2016136

    Signed-off-by: Nick Kossifidis
    Reviewed-by: Palmer Dabbelt
    Signed-off-by: Rob Herring

    Nick Kossifidis
     

27 Nov, 2018

2 commits

  • Now that ARM64 uses phys_initrd_start/phys_initrd_size, we can get rid
    of its custom __early_init_dt_declare_initrd() which causes a fair
    amount of objects rebuild when changing CONFIG_BLK_DEV_INITRD. In order
    to make sure ARM64 does not produce a BUG() when VM debugging is turned
    on though, we must avoid early calls to __va() which is what
    __early_init_dt_declare_initrd() does and wrap this around to avoid
    running that code on ARM64.

    Signed-off-by: Florian Fainelli
    Reviewed-by: Mike Rapoport
    Signed-off-by: Rob Herring

    Florian Fainelli
     
  • Now that we have central and global variables holding the physical
    address and size of the initrd, we can have
    early_init_dt_check_for_initrd() populate
    phys_initrd_start/phys_initrd_size for us.

    This allows us to remove a chunk of code from arch/arm/mm/init.c
    introduced with commit 65939301acdb ("arm: set initrd_start/initrd_end
    for fdt scan").

    Signed-off-by: Florian Fainelli
    Reviewed-by: Mike Rapoport
    Signed-off-by: Rob Herring

    Florian Fainelli
     

31 Oct, 2018

3 commits

  • Move remaining definitions and declarations from include/linux/bootmem.h
    into include/linux/memblock.h and remove the redundant header.

    The includes were replaced with the semantic patch below and then
    semi-automated removal of duplicated '#include

    @@
    @@
    - #include
    + #include

    [sfr@canb.auug.org.au: dma-direct: fix up for the removal of linux/bootmem.h]
    Link: http://lkml.kernel.org/r/20181002185342.133d1680@canb.auug.org.au
    [sfr@canb.auug.org.au: powerpc: fix up for removal of linux/bootmem.h]
    Link: http://lkml.kernel.org/r/20181005161406.73ef8727@canb.auug.org.au
    [sfr@canb.auug.org.au: x86/kaslr, ACPI/NUMA: fix for linux/bootmem.h removal]
    Link: http://lkml.kernel.org/r/20181008190341.5e396491@canb.auug.org.au
    Link: http://lkml.kernel.org/r/1536927045-23536-30-git-send-email-rppt@linux.vnet.ibm.com
    Signed-off-by: Mike Rapoport
    Signed-off-by: Stephen Rothwell
    Acked-by: Michal Hocko
    Cc: Catalin Marinas
    Cc: Chris Zankel
    Cc: "David S. Miller"
    Cc: Geert Uytterhoeven
    Cc: Greentime Hu
    Cc: Greg Kroah-Hartman
    Cc: Guan Xuetao
    Cc: Ingo Molnar
    Cc: "James E.J. Bottomley"
    Cc: Jonas Bonn
    Cc: Jonathan Corbet
    Cc: Ley Foon Tan
    Cc: Mark Salter
    Cc: Martin Schwidefsky
    Cc: Matt Turner
    Cc: Michael Ellerman
    Cc: Michal Simek
    Cc: Palmer Dabbelt
    Cc: Paul Burton
    Cc: Richard Kuo
    Cc: Richard Weinberger
    Cc: Rich Felker
    Cc: Russell King
    Cc: Serge Semin
    Cc: Thomas Gleixner
    Cc: Tony Luck
    Cc: Vineet Gupta
    Cc: Yoshinori Sato
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Rapoport
     
  • The conversion is done using

    sed -i 's@memblock_virt_alloc@memblock_alloc@g' \
    $(git grep -l memblock_virt_alloc)

    Link: http://lkml.kernel.org/r/1536927045-23536-8-git-send-email-rppt@linux.vnet.ibm.com
    Signed-off-by: Mike Rapoport
    Cc: Catalin Marinas
    Cc: Chris Zankel
    Cc: "David S. Miller"
    Cc: Geert Uytterhoeven
    Cc: Greentime Hu
    Cc: Greg Kroah-Hartman
    Cc: Guan Xuetao
    Cc: Ingo Molnar
    Cc: "James E.J. Bottomley"
    Cc: Jonas Bonn
    Cc: Jonathan Corbet
    Cc: Ley Foon Tan
    Cc: Mark Salter
    Cc: Martin Schwidefsky
    Cc: Matt Turner
    Cc: Michael Ellerman
    Cc: Michal Hocko
    Cc: Michal Simek
    Cc: Palmer Dabbelt
    Cc: Paul Burton
    Cc: Richard Kuo
    Cc: Richard Weinberger
    Cc: Rich Felker
    Cc: Russell King
    Cc: Serge Semin
    Cc: Thomas Gleixner
    Cc: Tony Luck
    Cc: Vineet Gupta
    Cc: Yoshinori Sato
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Rapoport
     
  • All architecures use memblock for early memory management. There is no need
    for the CONFIG_HAVE_MEMBLOCK configuration option.

    [rppt@linux.vnet.ibm.com: of/fdt: fixup #ifdefs]
    Link: http://lkml.kernel.org/r/20180919103457.GA20545@rapoport-lnx
    [rppt@linux.vnet.ibm.com: csky: fixups after bootmem removal]
    Link: http://lkml.kernel.org/r/20180926112744.GC4628@rapoport-lnx
    [rppt@linux.vnet.ibm.com: remove stale #else and the code it protects]
    Link: http://lkml.kernel.org/r/1538067825-24835-1-git-send-email-rppt@linux.vnet.ibm.com
    Link: http://lkml.kernel.org/r/1536927045-23536-4-git-send-email-rppt@linux.vnet.ibm.com
    Signed-off-by: Mike Rapoport
    Acked-by: Michal Hocko
    Tested-by: Jonathan Cameron
    Cc: Catalin Marinas
    Cc: Chris Zankel
    Cc: "David S. Miller"
    Cc: Geert Uytterhoeven
    Cc: Greentime Hu
    Cc: Greg Kroah-Hartman
    Cc: Guan Xuetao
    Cc: Ingo Molnar
    Cc: "James E.J. Bottomley"
    Cc: Jonas Bonn
    Cc: Jonathan Corbet
    Cc: Ley Foon Tan
    Cc: Mark Salter
    Cc: Martin Schwidefsky
    Cc: Matt Turner
    Cc: Michael Ellerman
    Cc: Michal Simek
    Cc: Palmer Dabbelt
    Cc: Paul Burton
    Cc: Richard Kuo
    Cc: Richard Weinberger
    Cc: Rich Felker
    Cc: Russell King
    Cc: Serge Semin
    Cc: Thomas Gleixner
    Cc: Tony Luck
    Cc: Vineet Gupta
    Cc: Yoshinori Sato
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Rapoport
     

27 Oct, 2018

1 commit

  • Memory region size is rounded down to page boundary and with sub-page
    region it becomes 0 and there is no point to add an empty region.
    Moreover, when the base is less than PAGE_SIZE we get a bogus size as
    (base + size - 1) evaluates to -1.

    8cccffc52694 ("of: check for size < 0 after rounding in
    early_init_dt_add_memory_arch") introduced a test for wrap around for the
    case when base is not page aligned, the same test can be used to ignore
    sub-page region sizes.

    Link: http://lkml.kernel.org/r/1533326330-31677-3-git-send-email-rppt@linux.vnet.ibm.com
    Signed-off-by: Mike Rapoport
    Reviewed-by: Rob Herring
    Cc: Guan Xuetao
    Cc: Ley Foon Tan
    Cc: Richard Kuo
    Cc: Richard Weinberger
    Cc: Michal Hocko
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Mike Rapoport
     

08 Aug, 2018

1 commit

  • When the OF code was originally made common by Grant in commit
    51975db0b733 ("of/flattree: merge early_init_dt_scan_memory() common
    code") (Feb 2010), the common code inherited a hack to handle
    PPC "longtrail" machines, which had a "memory@0" node with no
    device_type.

    That check was then made to only apply to PPC32 in b44aa25d20e2 ("of:
    Handle memory@0 node on PPC32 only") (May 2014).

    But according to Paul Mackerras the "longtrail" machines are long
    dead, if they were ever seen in the wild at all. If someone does still
    have one, we can handle this firmware wart in powerpc platform code.

    So remove the hack once and for all.

    Signed-off-by: Michael Ellerman
    Signed-off-by: Rob Herring

    Michael Ellerman
     

23 Apr, 2018

1 commit

  • Commit 99492c39f39f ("earlycon: Fix __earlycon_table stride") tried to fix
    __earlycon_table stride by forcing the earlycon_id struct alignment to 32
    and asking the linker to 32-byte align the __earlycon_table symbol. This
    fix was based on commit 07fca0e57fca92 ("tracing: Properly align linker
    defined symbols") which tried a similar fix for the tracing subsystem.

    However, this fix doesn't quite work because there is no guarantee that
    gcc will place structures packed into an array format. In fact, gcc 4.9
    chooses to 64-byte align these structs by inserting additional padding
    between the entries because it has no clue that they are supposed to be in
    an array. If we are unlucky, the linker will assign symbol
    "__earlycon_table" to a 32-byte aligned address which does not correspond
    to the 64-byte aligned contents of section "__earlycon_table".

    To address this same problem, the fix to the tracing system was
    subsequently re-implemented using a more robust table of pointers approach
    by commits:
    3d56e331b653 ("tracing: Replace syscall_meta_data struct array with pointer array")
    654986462939 ("tracepoints: Fix section alignment using pointer array")
    e4a9ea5ee7c8 ("tracing: Replace trace_event struct array with pointer array")

    Let's use this same "array of pointers to structs" approach for
    EARLYCON_TABLE.

    Fixes: 99492c39f39f ("earlycon: Fix __earlycon_table stride")
    Signed-off-by: Daniel Kurtz
    Suggested-by: Aaron Durbin
    Reviewed-by: Rob Herring
    Tested-by: Guenter Roeck
    Reviewed-by: Guenter Roeck
    Cc: stable
    Signed-off-by: Greg Kroah-Hartman

    Daniel Kurtz
     

08 Jan, 2018

2 commits

  • memblock_virt_alloc() works for both memblock and bootmem, so use it and
    make early_init_dt_alloc_memory_arch a static function. The arches using
    bootmem define early_init_dt_alloc_memory_arch as either:

    __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS))

    or:

    alloc_bootmem_align(size, align)

    Both of these evaluate to the same thing as does memblock_virt_alloc for
    bootmem. So we can disable the arch specific functions by making
    early_init_dt_alloc_memory_arch static and they can be removed in
    subsequent commits.

    Cc: Frank Rowand
    Signed-off-by: Rob Herring

    Rob Herring
     
  • Convert remaining DT files to use SPDX-License-Identifier tags.

    Cc: Benjamin Herrenschmidt
    Cc: Guennadi Liakhovetski
    Cc: Paul Mackerras
    Cc: Pantelis Antoniou
    Reviewed-by: Frank Rowand
    Reviewed-by: Philippe Ombredanne
    Signed-off-by: Rob Herring

    Rob Herring
     

17 Oct, 2017

3 commits


04 Oct, 2017

1 commit

  • With dependencies on a statically allocated full path name converted to
    use %pOF format specifier, we can store just the basename of node, and
    the unflattening of the FDT can be simplified.

    This commit will affect the remaining users of full_name. After
    analyzing these users, the remaining cases should only change some print
    messages. The main users of full_name are providing a name for struct
    resource. The resource names shouldn't be important other than providing
    /proc/iomem names.

    We no longer distinguish between pre and post 0x10 dtb formats as either
    a full path or basename will work. However, less than 0x10 formats have
    been broken since the conversion to use libfdt (and no one has cared).
    The conversion of the unflattening code to be non-recursive also broke
    pre 0x10 formats as the populate_node function would return 0 in that
    case.

    Signed-off-by: Rob Herring

    Rob Herring
     

08 Jul, 2017

1 commit

  • Pull DeviceTree updates from Rob Herring:

    - vsprintf format specifier %pOF for device_node's. This will enable us
    to stop storing the full node names. Conversion of users will happen
    next cycle.

    - Update documentation to point to DT specification instead of ePAPR.

    - Split out graph and property functions to a separate file.

    - New of-graph functions for ALSA

    - Add vendor prefixes for RISC-V, Linksys, iWave Systems, Roofull,
    Itead, and BananaPi.

    - Improve dtx_diff utility filename printing.

    * tag 'devicetree-for-4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (32 commits)
    of: document /sys/firmware/fdt
    dt-bindings: Add RISC-V vendor prefix
    vsprintf: Add %p extension "%pOF" for device tree
    of: find_node_by_full_name rewrite to compare each level
    of: use kbasename instead of open coding
    dt-bindings: thermal: add file extension to brcm,ns-thermal
    of: update ePAPR references to point to Devicetree Specification
    scripts/dtc: dtx_diff - Show real file names in diff header
    of: detect invalid phandle in overlay
    of: be consistent in form of file mode
    of: make __of_attach_node() static
    of: address.c header comment typo
    of: fdt.c header comment typo
    of: make of_fdt_is_compatible() static
    dt-bindings: display-timing.txt convert non-ascii characters to ascii
    Documentation: remove overlay-notes reference to non-existent file
    dt-bindings: usb: exynos-usb: Add missing required VDD properties
    dt-bindings: Add vendor prefix for Linksys
    MAINTAINERS: add device tree ABI documentation file
    of: Add vendor prefix for iWave Systems Technologies Pvt. Ltd
    ...

    Linus Torvalds
     

23 Jun, 2017

1 commit