summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* dts: update to v5.8-rc1Sascha Hauer2020-07-051336-18614/+55593
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: dts: vexpress-v2p-ca15: adapt fixed NOR flash partition setupAhmad Fatoum2020-07-051-10/+13
| | | | | | | | | | | | | | | | | | | | | | Roland already fixed the vexpress-v2p-ca9: > Upstream DTS commit 62a5017bf825c9e4d317 ("ARM: dts: vexpress: specify > AFS partition") [1] introduced an empty node at /smb@4000000 > /motherboard/flash@0,00000000/partitions, which is preferred by the OF > partitions parser over the single partition nodes. In the same commit, > upstream set the compatible to "arm,arm-firmware-suite", which barebox > does not know about. Adapt our fixed partition setup accordingly by > wrapping all partitions in an extra "partitions" node with the correct > compatible. > [1]: https://git.kernel.org/linus/62a5017bf825c9e4d3176eb975a01c329a9f36 Do the same for the vexpress-v2p-ca15. While at it use the new label: added along with 6940ba22c66a ("dts: update to v5.3-rc1"). This way we aren't (build-)broken, when the upstream path changes in v5.8-rc1. Fixes: 6940ba22c66ac1c71350 ("dts: update to v5.3-rc1") Cc: Roland Hieber <r.hieber@pengutronix.de> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* clk: at91: sync with Linux v5.8-rc1Ahmad Fatoum2020-07-0514-63/+1025
| | | | | | | | | | | | | | | | | | | | | | | | | | This ports over a couple of changes that accrued upstream between v5.6, when we last synchronized, and v5.8-rc1: 5bf7f4a24938 clk: at91: sam9x60: Don't use audio PLL b0ecf1c6c6e8 clk: at91: usb: continue if clk_hw_round_rate() return zero 43b203d32b77 clk: at91: sam9x60: fix usb clock parents d7a83d67a169 clk: at91: usb: use proper usbs_mask 9962fb0d1995 clk: at91: usb: introduce num_parents in driver's structure 12dc8d3be9d8 clk: at91: add at91sam9g45 pmc driver 0969b242f7b8 clk: at91: add sama5d3 pmc driver 143e04dab6b4 clk: at91: add at91sam9n12 pmc driver 02ff48e4d7f7 clk: at91: add at91rm9200 pmc driver 99e107439eea clk: at91: Add peripheral clock for PTC f6363c437dc6 clk: at91: pmc: do not continue if compatible not located 7425f246f725 clk: at91: optimize pmc data allocation 99767cd4406f clk: at91: allow setting PCKx parent via DT 03a1ee1dad0e clk: at91: allow setting all PMC clock parents via DT Besides fixes, mostly around sam9x60, this adds support for the new a91 device tree clock bindings that were extended to the sama5d3 in v5.8-rc1. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* include: import upstream header <linux/overflow.h>Ahmad Fatoum2020-06-231-0/+319
| | | | | | | | Incoming code makes use of struct_size, which is defined upstream in <linux/overflow.h>. Import the Linux v5.8-rc1 header as is. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: vexpress: dts: fix barebox partitioning breakageAhmad Fatoum2020-06-232-43/+34
| | | | | | | | | | | | | | There is no /smb@4000000 node upstream any longer as it was renamed with the 8d158e1a4091 ("dts: update to v5.7-rc1") sync. Adjust the barebox device tree accordingly. It's likely that this resulted in barebox v2020.06.0 state, environment and update breakage on the vexpress boards. Cc: Roland Hieber <rhi@pengutronix.de> Fixes: 8d158e1a4091 ("dts: update to v5.7-rc1") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: dts: align all applicable memory nodes with spec and conventionAhmad Fatoum2020-06-2315-17/+27
| | | | | | | | | | | | | | | | | | | | The spec[1] says that top level memory nodes `shall have device_type = "memory"'. Since 8226f7f9 ("of: base: parse all available memory nodes"), we parse only nodes with device_type = "memory", so we should add the device_type property where ever it's missing. When the nodes were first added, this wasn't an issue because the skeleton.dtsi defined a memory skeleton with correct device_type, but this was removed upstream and imported into barebox along with 1dc748b3 ("dts: update to v5.1-rc1"). Upstream device trees with a memory node were adapted to have device_type = "memory" in-line. This wasn't the case for nodes defined only within barebox. Rectify this now and rename the nodes to feature a unit name as well to be aligned with the upstream trend. [1]: https://github.com/devicetree-org/devicetree-specification/releases/download/v0.3/devicetree-specification-v0.3.pdf Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: dts: fix now duplicate memory nodesAhmad Fatoum2020-06-236-21/+19
| | | | | | | | | | With the upstream migration to memory@BASE_ADDRESS naming scheme in the device tree of some SoC families, we now have multiple overlapping memory nodes in some of the barebox device trees. Rename the defunct overrides, so they once again override the upstream nodes. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX50: fix renamed node referenceAhmad Fatoum2020-06-231-16/+12
| | | | | | | | | | | | | There is no /soc/aips@50000000 node upstream any longer as it was renamed with the 8d158e1a4091 ("dts: update to v5.7-rc1") sync. Adjust the barebox device tree accordingly. It's likely that this resulted in barebox v2020.06.0 USB connectivity breakage for the i.MX50's second USB PHY. Fixes: 8d158e1a4091 ("dts: update to v5.7-rc1") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: rpi: dts: fix MMIO resources clash breaking bootAhmad Fatoum2020-06-184-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rpi3b device tree specifies 1G of RAM in the memory node, but maps the highest 16M of RAM's physical address range for peripheral use. When support for device tree probing was first added for the rpi3b in e8fab18835a1 ("ARM: rpi: switch to DT probe and multi-image build"), it had a memory { } node overriding the kernel node size with 0, so the size is computed later correctly. 1dc748b3b202 ("dts: update to v5.1-rc1") came and renamed the upstream memory { } node to memory@0. So instead of overriding the old, we now created a second dummy along with the broken node. barebox did only parse the dummy, so it continued to limp along. 8226f7f90973 ("of: base: parse all available memory nodes") started considering both nodes and rendered barebox v2020.05.0 unable to start up on the rpi3b because of the conflict between RAM range and peripherals like the bcm2835_mbox caused by parsing the broken memory node. At least one board also was broken for the same reason[1], so a more robust approach is in order. For nodes that lack a phandle, the &{/path} syntax can be used instead. This has the benefit that should the path disappear in future, a compile failure would result. [1] 0d26ce1c11a1 ("ARM: Phytec phyFLEX i.MX6: delete wrong memory node") Fixes: 1dc748b3b202 ("dts: update to v5.1-rc1") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/spdx'Sascha Hauer2020-06-11233-3313/+600
|\
| * arch/arm/boards: Replace license and copyright boilerplate by SPDX identfiersUwe Kleine-König2020-05-25228-3258/+587
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adapts all files that were identifed by licensecheck (https://salsa.debian.org/build-common-team/licensecheck.git) as licensed under the GPL. The advantage is that these specifiers are machine-parseable which helps license conformance, e.g. for packaging barebox in Debian. While touching these files also do some minor comment reformatting to get some uniform layout. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Roland Hieber <rhi@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * aiodev: Replace license and copyright boilerplate by SPDX identfiersUwe Kleine-König2020-05-252-29/+6
| | | | | | | | | | | | | | | | | | | | | | | | This adapts all files that were identifed by licensecheck (https://salsa.debian.org/build-common-team/licensecheck.git) as licensed under the GPL and that have a (IMHO) clear copyright statement. The advantage is that these specifiers are machine-parseable which helps license conformance, e.g. for packaging barebox in Debian. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * pwm: Replace license and copyright boilerplate by SPDX identfiersUwe Kleine-König2020-05-253-26/+7
| | | | | | | | | | | | | | | | | | | | | | | | This adapts all files that were identifed by licensecheck (https://salsa.debian.org/build-common-team/licensecheck.git) as licensed under the GPL and that have a (IMHO) clear copyright statement. The advantage is that these specifiers are machine-parseable which helps license conformance, e.g. for packaging barebox in Debian. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/sandbox-compile-test'Sascha Hauer2020-06-1125-202/+412
|\ \
| * | mtd: nand: base: fix use of uninitialized struct memberAhmad Fatoum2020-06-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ooblen is read in nand_do_read_ops, despite never having been assigned a value. Because ooblen is used to indicate how many bytes of oobbuf are usable and oobbuf is NULL, use 0 as initial value. Found on ARCH=sandbox using clang-analyzer. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | sandbox: os: add_image: fix memory leakAhmad Fatoum2020-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | devname is strdup'd few lines later, so remove the earlier strdup. The pointer isn't stored anywhere persistent in between. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | commands: test: drop dead assignmentAhmad Fatoum2020-06-031-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | last_expr is set to a different value few lines later. Drop the dead assignment. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | commands: tftp: drop unused variableAhmad Fatoum2020-06-031-6/+2
| | | | | | | | | | | | | | | | | | | | | The flags variables is not used. Drop it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | include: bitops: fix dead increment in fls() and ffs()Ahmad Fatoum2020-06-032-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | Static analyzers trip over this dead increment. It arguably doesn't improve readability, so just drop the dead code. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | usb: xhci-hcd: replace opencoded non-atomic 64-bit MMIO with lo_hi helperAhmad Fatoum2020-06-031-10/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 3c5317e9046 ("usb: xhci-hcd: Make use of lo_hi_readq/writeq()") had made use of lo_hi_readq/writeq() to implement xhci_read/write_64(), like Linux does, but this was removed in commit fddd1c7c51a8 ("usb: host: remove xhci driver"). Reinstate it to make code clearer. No functional change. [Note: Linux doesn't use any readq/writeq, but does two 32-bit access always, even on 64-bit systems] Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | usb: xhci-hcd: remove unused #include <asm/cache.h>Ahmad Fatoum2020-06-031-1/+0
| | | | | | | | | | | | | | | | | | | | | We don't use anything defined within, so drop it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | sandbox: asm: implement <asm/atomic.h>Ahmad Fatoum2020-06-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | For easier code-sharing, the UBIFS code still uses the Kernel's atomic accessors. Provide a sandbox <asm/atomic.h> header, so we can compile-test UBI under sandbox. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | include: <asm-generic/atomic.h>: remove stub IRQ save/restoreAhmad Fatoum2020-06-031-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For an architecture to use <asm-generic/atomic.h>, it must define local_irq_save() and local_irq_restore(). Instead of having every platform define duplicate their stub definition, just drop them altogether, so <asm-generic/atomic.h> can be used freestanding. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: atomic.h: move generic implementation to asm-genericAhmad Fatoum2020-06-032-105/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | For easier code-sharing, the UBIFS code still uses the Linux atomic accessors. Make porting it to sandbox easier, by providing these functions for all platforms. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | sandbox: select HAS_DMAAhmad Fatoum2020-06-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | With the DMA stubs in place, we can indicate HAS_DMA in good conscience. Do so. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | sandbox: asm: implement stub DMA functionsAhmad Fatoum2020-06-031-1/+52
| | | | | | | | | | | | | | | | | | | | | | | | For compile-testing drivers that use DMA operations under sandbox, we want stub implementations of these. Provide them. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | sandbox: implement stub physical virtual translationAhmad Fatoum2020-06-031-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | For compile-testing drivers that use DMA operations under sandbox, we want stub implementations of these. Provide them. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: macb: depend on HAS_DMAAhmad Fatoum2020-06-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | The driver makes use of dma_alloc_coherent and brethren. Depend on HAS_DMA to be sure, we don't run into link errors when compile-testing. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: fec_imx: depend on HAS_DMAAhmad Fatoum2020-06-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | The driver makes use of dma_alloc_coherent and brethren. Depend on HAS_DMA to be sure, we don't run into link errors when compile-testing. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ddr: fsl: depend on ARMAhmad Fatoum2020-06-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | We have inline assembly in the driver, so we can't compile-test it unmodified on non-ARM. Indicate so in the Kconfig. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mtd: nand: orion: depend on ARMAhmad Fatoum2020-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | We have inline assembly in the driver, so we can't compile-test it unmodified on non-ARM. Indicate so in the Kconfig. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clocksource: arm_global_timer.c: remove unused asm/ headerAhmad Fatoum2020-06-031-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | We don't use the header and dropping it allows us to compile-test the driver under non-ARM architectures. Do so. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | sandbox: <asm/io.h>: include bitio accessorsAhmad Fatoum2020-06-031-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | ARM <asm/io.h> defines the U-Boot style setbits/clrbits helpers. Have sandbox follow suit to allow more drivers to be compile tested there. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: asm/io.h: fall back to <asm-generic/bitio.h> out_be32 and friendsAhmad Fatoum2020-06-031-57/+1
| | | | | | | | | | | | | | | | | | | | | | | | With the generic implementations in place in <asm-generic/bitio.h>, we can drop the now-duplicate ARM definitions. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | include: asm-generic: provide (in|out)_(le|be)(16|32) helpers for all archsAhmad Fatoum2020-06-031-0/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | These U-Boot style bitwise operations macros will be needed for COMPILE_TEST-compiled drivers on platforms except for ARM. Add fallback definitions there, based on the ARM ones. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | sandbox: support forcing 32-bit x86Ahmad Fatoum2020-06-033-2/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If gcc supports multiple architectures, barebox uses only the default when compiling for ARCH=sandbox, this is e.g. the case with compilers that generate both 32- and 64-bit x86 executables. There can be good reasons to force 32-bit though, e.g. to reduce memory consumption while fuzzing or to temporarily avoid 32-to-64-bit warnings, while running the static analyzer. Add an option for this. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | sandbox: asm: bitsperlong.h: detect bitness according to 64BIT symbolAhmad Fatoum2020-06-031-10/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we have an accurate CONFIG_64BIT describing sandbox bitness, we don't need to assume everything except __x86_64__ as 32-bit. This assumes that sizeof(long) == sizeof(void *), which is assumed anyway throughout the code base. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | sandbox: define CONFIG_64BIT as appropriateAhmad Fatoum2020-06-032-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All 64-bit architectures are supposed to define CONFIG_64BIT to support the relevant 64-bit MMIO accessors. The sandbox architecture is a bit of a special case, because barebox uses the toolchain default and doesn't force a bitness. Add 64BIT as promptless symbol, which reflects the pointer size of the target platform. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | scripts: import Linux Kconfig.includeAhmad Fatoum2020-06-032-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this include, we can have goodies like $(cc-option ...) and $(success ...) inside our Kconfig files. gcc-version also now becomes available. While unused for now, it can allow us to selectively turn on warnings on new GCC versions, which were previously disabled because of their too high false positive rate. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/ratp'Sascha Hauer2020-06-112-1/+18
|\ \ \
| * | | ratp: Remove unnecessary poller_call()Sascha Hauer2020-05-201-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | poller_call() is called by is_timeout(), no need to do this again in a timeout loop. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ratp: Test if console exists before using itSascha Hauer2020-05-201-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Consoles can be unregistered, this happens for example when barebox implements the barebox serial USB gadget. Before using the console we have to explicitly test if the pointer is still valid each time. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | ratp: Free buffersSascha Hauer2020-05-201-0/+2
| | |/ | |/| | | | | | | | | | | | | recvbuf and sendbuf are never freed, free them to avoid memory holes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/mmc'Sascha Hauer2020-06-1110-87/+24
|\ \ \
| * | | mci: reword MCI_STARTUP textAhmad Fatoum2020-06-031-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the recent addition of a generic device_detect for MCI devices, the MCI_STARTUP help text is no longer accurate. Reword it, but leave the option as-is as some boards may be broken if we drop the option (e.g. because they still depend on a probe order or call default_environment_path_set, but don't explicitly detect the device). Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mci: remove now-duplicate dev->detect implementations in host driversAhmad Fatoum2020-06-038-79/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previous commit introduced a fall-back MCI hw_dev->detect implementation. All drivers touched in this commit populate hw_dev, so lets drop their now-superfluous detect implementations. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | mci: define fall-back hw_dev->detect for all MCIsAhmad Fatoum2020-06-031-3/+19
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A barebox environment oftree node may reference its storage by a phandle to a partition node under a MCI node. barebox will then call the device's detect method to detect the card if this hasn't happened before. Out of 17 MCI drivers, 8 host drivers already implement a detect method, which just calls mci_detect_card. Provide a generic implementation that does the same. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | | Merge branch 'for-next/misc'Sascha Hauer2020-06-1128-363/+94
|\ \ \
| * | | MIPS: correctly work with disabled CONFIG_MMUAntony Pavlov2020-06-082-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are some issues with CONFIG_MMU=n in MIPS configuration (e.g. qemu-malta_defconfig): * "Cannot request SDRAM region for stack" error message on start; * empty kseg1_ram0 region in the iomem command output. The patch fixes the problems by forcing KSEG1 memory region usage for CONFIG_MMU=n MIPS configurations. Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | | nfs: Fix out of bounds readSascha Hauer2020-06-031-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nfs_read_reply() interprets the fields of an incoming packet directly as a field length without checking the boundaries. Clamp the maximum length to the packet length to avoid reading out of bounds. Reported-by: Jai Verma <jai2.verma@outlook.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>