summaryrefslogtreecommitdiffstats
path: root/drivers
Commit message (Collapse)AuthorAgeFilesLines
* gpio: get function returns masked register valueRenaud Barbier8 days1-1/+1
| | | | | | | | | | Unlike Linux the generic driver get function returns the masked register content and not the 0 or 1 value. The consequence is that gpio_get_value returns for instance 0x10 for bit 4 instead of 1. Use the Linux normalized form instead. Signed-off-by: Renaud Barbier <renaud.barbier@abaco.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c: stm32: support new st,stm32mp15-i2c compatibleAhmad Fatoum8 days1-0/+1
| | | | | | | | | | | | | | Linux v5.8-rc1 has gained support for the FastMode+ registers on the stm32mp15, but those are incompatible between the stm32mp15 and the stm32f7, so a new compatible was introduced. The old compatible was replaced for the MP15 SoC, breaking I2C in barebox. Add the new compatible to fix this. Unlike Linux, we just use the same setup parameters as for the stm32f7. This is ok as long we don't want to support FastMode+. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/watchdog'Sascha Hauer2020-07-271-0/+30
|\
| * startup: inhibit watchdogs on non-interactive autoboot abortAhmad Fatoum2020-06-231-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | nv.autoboot=abort has been added as development aid to have barebox stop at the shell prompt automatically. It makes sense to inhibit all watchdogs in this mode, so the user can later use the shell in peace. This also applies to fastboot aborting the shell prompt. If this happens, watchdog will be automatically inhibited as well. Behavior on user aborting the shell prompt via keypad or uart input remains unchanged for backwards-compatibility. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * watchdog: permit `wd 0` for non-stoppable, but inactive, watchdogsAhmad Fatoum2020-06-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | A watchdog that can't be stopped returns -ENOSYS on set_timeout(0). If the watchdog supports communicating whether it's running, we could still allow `wd 0`, if it hasn't been started yet. Setting device parameter .priority=0 disables a watchdog. One would expect this to always succeed for a not-running watchdog, but currently it doesn't, if the driver's set_timeout(0) returns -ENOSYS. With this fix, this is supported making the user API less surprising. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/ramfs'Sascha Hauer2020-07-272-3/+0
|\ \
| * | update list.h from Linux-5.7Sascha Hauer2020-06-172-3/+0
| |/ | | | | | | | | | | This updates include/linux/list.h from Linux-5.7. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/misc'Sascha Hauer2020-07-2723-128/+359
|\ \
| * | treewide: Convert files covered by ARM copyright to SPDXUwe Kleine-König2020-07-144-49/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to Marc Zyngier, former employee at ARM, the company owns the copyright for code created by its employees. Convert accordingly to SPDX with the usual rearrangements. Also dropped Marc's email address which doesn't work any more. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | i2c: designware: use proper type for writel argumentAhmad Fatoum2020-07-141-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | We need to write DW_IC_ENABLE_ENABLE (1 << 0) to the register to enable, but instead we were writing true. This happens to work, but is quite unusual. Make the code more readable. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mfd: superio: depend on X86 || COMPILE_TESTAhmad Fatoum2020-07-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Super I/O chips are usually found x86 PCs. Make them depend on it, so users of other arches aren't prompted for it, when they oldconfig. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mfd: superio: smsc: fix C99ism initial declaration in for loopAhmad Fatoum2020-07-141-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Codebase is meant to be gnu89, but was only enforced starting with bc4840e98b94 ("kbuild: add -Wmissing-prototypes and -std=gnu89 to KBUILD_HOSTCFLAGS"). Since then, this driver no longer compiles. Fix this. Fixes: eaf020f1bb52 ("mfd: superio: add base SMSC MFD driver") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: dw_mmc: remove unused local variableAhmad Fatoum2020-07-141-2/+1
| | | | | | | | | | | | | | | | | | | | | data_start is assigned once and never used. Drop it. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | ARM: stm32mp: depend on ARCH_STM32MP for SoC driversAhmad Fatoum2020-07-143-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The i2c, MCI and reset controller peripherals are STM32-specific. There is no reason to ask uses on oldconfig about it, thus make them depend on ARCH_STM32MP || COMPILE_TEST. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | drivers: net: phy: at803x: add phy clk setup via dtsMichael Grzeschik2020-07-051-7/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | There are dt-bindings for the setup of the clk configuration in the phy. This patch adds support for these bindings in the driver. Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: add uapi/linux/mdio.h from kernel for MDIO MMD accessMichael Grzeschik2020-07-052-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The headerfile is used in the kernel for access of MDIO Managed Devices (MMD) indirect access. Some drivers already use those device addresses. We add the headerfile from the kernel and change the current users to use the defines instead Reviewed-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | treewide: make use of PTR_ERR_OR_ZEROUwe Kleine-König2020-06-267-33/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PTR_ERR_OR_ZERO is designed to replace boiler plate like: if (IS_ERR(x)) return PTR_ERR(x); return 0; Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: micrel: backport ksz9031 phy-mode supportOleksij Rempel2020-06-171-0/+103
| | | | | | | | | | | | | | | | | | | | | | | | this patch will allow to use proper clock skew configuration from devicetree instead of using board specific fixups. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: port phy_interface_is_rgmii() from kernelOleksij Rempel2020-06-172-12/+0
| | | | | | | | | | | | | | | | | | | | | and remove duplicates from other drivers Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | watchdog: f71808e: maintain watchdog timeout occurred flagAhmad Fatoum2020-06-171-19/+40
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we experience a watchdog reset, the indicating flag should persist till the Linux driver had a chance to see it. The flag bit is special however in that writing 1 clears the bit and writing 0 keeps it intact, i.e. : Bit read written result 0 0 = 0 1 0 = 1 0 1 = 0 1 1 = 0 So in the bootloader, we should write a zero always. The OS on the other hand can either write 1 or the old value after reading to clear the flag. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/imx'Sascha Hauer2020-07-2710-17/+822
|\ \
| * | ARM: i.MX8MP: Add ocotp supportSascha Hauer2020-07-141-0/+11
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net: phy: realtek: handle RX delay settingSascha Hauer2020-07-141-8/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | RX delay and TX delay can be configured independently on the RTL8211F. Decode the phy mode setting and set both bits accordingly. This is based on Linux commit 1b3047b5208a ("net: phy: realtek: add support for configuring the RX delay on RTL8211F") Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | mci: imx-esdhc-pbl: Add imx8mp_esdhc_load_image() for i.MX8MPSascha Hauer2020-07-141-7/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The image format of the i.MX8MP is different from i.MX8M, so add its own image loading function for it. Older i.MX SoCs had a IVT Offset (the offset from the start of the image to the actual data) of 1KiB. This was done to leave space for the partition table at the beginning of the device. To support GPT SoCs starting with i.MX8M an additional gap of 32KiB was added, so that the actual image started at offset 33KiB. Now starting with i.MX8MP the now superfluous 1KiB offset was removed do that the actual image now starts at 32KiB. Unfortunately the 1KiB offset is woven into the offsets of the IVT whereas the 32KiB are not, which means that we really have to handle both offsets individually instead of just handling the sum of the offsets. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clk: imx: Add imx8mp clk driverOleksij Rempel2020-07-142-0/+722
| | | | | | | | | | | | | | | | | | This adds clock support for the i.MX8MP, taken from Linux-5.7. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
| * | arm: imx: add initial imx8mp supportOleksij Rempel2020-07-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds base support for the i.MX8MP SoC. Not much to do here as this SoC is quite similar to the i.MX8M. This adds: - Kconfig symbols - bootsource detection - register base address defines - iomux defines Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
| * | mci: imx-esdhc: Add i.MX8mp compatibleOleksij Rempel2020-07-141-0/+1
| | | | | | | | | | | | | | | | | | Only add the compatible string to let the driver match. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
| * | net: fec_imx: add fsl,imx8mp-fec compatibleOleksij Rempel2020-07-141-0/+3
| | | | | | | | | | | | Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
| * | pinctrl: imx-iomux-v3: Add i.MX8MP compatibleSascha Hauer2020-07-141-0/+2
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | serial: i.MX: Add i.MX8MP compatibleSascha Hauer2020-07-141-0/+3
| | | | | | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | net:fec: fixed unaligned access and stack corruptionEnrico Scholz2020-07-111-1/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on 64 bit architectures, the 'enum fec_type' might not be aligned and large enough to hold a pointer. When running barebox without MMU, this will crash like | i.MX8MM unique ID: dab4b7491a2c4209 | DABT (current EL) exception (ESR 0x96000061) at 0x00000000fffefeb4 | elr: 00000000ffe14c28 lr : 00000000ffe196e0 | x0 : 0000000000000002 x1 : 00000000fffefeb4 | x2 : 00000000ffe91370 x3 : 00000000bfe1b6e8 | x4 : 0000000000000000 x5 : 0000000011000000 | ... | Call trace: | [<ffe14c28>] (dev_get_drvdata+0xc/0x30) from [<ffe1446c>] (device_probe+0x54/0xd0) | [<ffe1446c>] (device_probe+0x54/0xd0) from [<ffe14530>] (match+0x48/0x58) | [<ffe14530>] (match+0x48/0x58) from [<ffe14a64>] (register_driver+0xc0/0xd0) | [<ffe14a64>] (register_driver+0xc0/0xd0) from [<ffe01738>] (start_barebox+0x64/0x90) Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | Merge branch 'for-next/dts'Sascha Hauer2020-07-2716-791/+1026
|\ \
| * | mci: omap: add new am335x and am437x SDHCI specific compatiblesAhmad Fatoum2020-07-111-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For a while now, Linux has had a sdhci-omap driver for TI's OMAP SoCs making use of the SDHCI core library. This was in addition to the older omap-hsmmc driver, which didn't. Linux commit 0b4edf11187 ("ARM: dts: Move am33xx and am43xx mmc nodes to sdhci-omap driver") changes the device tree compatible of the mmc nodes on the am33xx and am43xx SoCs away from the omap-hsmmc to the SDHCI driver. Add the new compatibles, so we aren't broken by the change. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clk: at91: remove now-duplicate crutch #definesAhmad Fatoum2020-07-051-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | As the code comment describes, these #defines were only needed temporarily till dts/ is synced vs Linux v5.8-rc1. This is now the case, so drop them again. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * | clk: at91: remove no-longer needed dt-compat codeAhmad Fatoum2020-07-052-732/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dt-compat.c implemented bindings for following compatibles: atmel,at91rm9200-clk-main-osc atmel,at91sam9x5-clk-main-rc-osc atmel,at91rm9200-clk-main atmel,at91sam9x5-clk-main atmel,at91rm9200-clk-master atmel,at91sam9x5-clk-master atmel,at91rm9200-clk-peripheral atmel,at91sam9x5-clk-peripheral atmel,at91rm9200-clk-pll atmel,sama5d3-clk-pll atmel,at91sam9x5-clk-plldiv atmel,at91rm9200-clk-programmable atmel,at91sam9g45-clk-programmable atmel,at91sam9x5-clk-programmable atmel,at91sam9x5-clk-smd atmel,at91rm9200-clk-system atmel,at91sam9x5-clk-usb atmel,at91sam9n12-clk-usb atmel,at91rm9200-clk-usb atmel,at91sam9x5-clk-utmi With the recent v5.8-rc1 sync, we no longer have any device trees in the barebox repository that use these. Unlike Linux, we don't need to support probing from old device trees, so drop the now unused code. 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>
* | mci: sdhci: atmel: extend driver for PBL usageAhmad Fatoum2020-07-114-0/+136
| | | | | | | | | | | | | | | | | | The BootROM resets both the SD/MMC host controller and the pin controller, but the card itself remains in transfer mode. If we redo host-side setup, we can directly read new blocks off the card. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | watchdog: add support for at91sam9/sama5 watchdogAhmad Fatoum2020-07-113-0/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The watchdog on these SoCs is enabled by default on system boot, so a driver is especially useful. According to data sheet the mode register containing the timeout can be configured only once, but I couldn't verify this on the sama5d2. Regardless, the driver takes care not to change the mode register unless necessary. Implementation that want to leave to the OS the decision which timeout to choose, can just keep pinging with the POR-default of 16 seconds and the OS will be able to set the final timeout. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mci: sdhci: atmel: avoid buggy SDHCI_RESET_ALLAhmad Fatoum2020-06-231-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On the sama5d27, currently only the MCI used for boot is operational. The other one errors out when failing to reset the card. Changing the RESET_ALL to RESET_CMD | RESET_DATA fixes this. This might be due to the SoC's "11.1 Software 'Reset For all' command may not execute properly" erratum[1]: > The software 'Reset For All' command may not execute properly, and, as > a result, some registers of the host controller may not reset properly. > The setting of the different registers must be checked beforere > initializing the SD card. [1]: DS80000827A Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mci: sdhci: atmel: use dev_printf instead of pr_print in common codeAhmad Fatoum2020-06-233-5/+15
| | | | | | | | | | | | | | | | | | | | On boards like the sama5d27 som1 ek, we have two SD card slots, so error messages are more useful if they refer to the SDHCI instance. We didn't do this at first, because the common code is compiled for PBL as well. With a sprinkle of preprocessor ifdeffery, we can have both. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mci: sdhci: atmel: don't print errors on command timeoutsAhmad Fatoum2020-06-231-18/+22
| | | | | | | | | | | | | | | | | | | | | | | | Time outs can be expected, e.g. when probing whether a card is a MMC one. The core handles it, so don't have the driver print an error. While at it, simplify the error handling. We don't need to read the status more than once and returning -EPERM on non-timeout is what the other drivers are doing. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | clk: sync of_clk_get_parent_name with upstreamAhmad Fatoum2020-06-231-5/+44
|/ | | | | | | | | | | | | Upstream of_clk_get_parent_name only resorts to node name as a fallback. Instead, it uses the name supplied for registered clocks whenever possible. On the sama5d2, this results in sckc@f8048050 and slowck, respectively. So far, sckc@f8048050 in the parents array couldn't be matched with any existing clock, leading to an inaccurate clock tree. Port over the v5.8-rc1 state of the function to fix this. 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-115-55/+13
|\
| * 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-116-13/+8
|\ \
| * | 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>
| * | 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>
| * | 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>