1. 20 2月, 2019 1 次提交
  2. 01 8月, 2018 2 次提交
    • A
      mmc: sunxi: remove output of virtual base address · 1389690b
      Andre Przywara 提交于
      Recent Linux versions refuse to print actual virtual kernel addresses,
      to not give a hint about the location of the kernel in a randomized virtual
      address space. This affects the output of the sunxi MMC controller
      driver, which now produces the rather uninformative line:
      
      [    1.482660] sunxi-mmc 1c0f000.mmc: base:0x(____ptrval____) irq:8
      
      Since the virtual base address is not really interesting in the first
      place, let's just drop this value. The same applies to Linux' notion of
      the interrupt number, which is independent from the GIC SPI number.
      We have the physical address as part of the DT node name, which is way
      more useful for debugging purposes.
      To keep a success message in the driver, we make this purpose explicit
      with the word "initialized", plus print some information that is not too
      obvious and that we learned while probing the device:
      the maximum request size and whether it uses the new timing mode.
      So the output turns into:
      [    1.750626] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
      [    1.786699] sunxi-mmc 1c11000.mmc: initialized, max. request size: 2048 KB
      Signed-off-by: NAndre Przywara <andre.przywara@arm.com>
      Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      1389690b
    • I
      mmc: sunxi: allow 3.3V DDR when DDR is available · 88023d43
      Icenowy Zheng 提交于
      Some Allwinner boards feature an on-board eMMC with fixed 3.3V voltage
      (e.g. Banana Pi M2+), and in this case both the eMMC and the SoC are
      capable of doing 3.3V DDR transmission.
      
      Add capability of 3.3V DDR when DDR is available (extra clock or new
      timing).
      Signed-off-by: NIcenowy Zheng <icenowy@aosc.io>
      Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      88023d43
  3. 05 7月, 2018 1 次提交
    • S
      mmc: sunxi: Disable irq during pm_suspend · b8ba3578
      Stefan Mavrodiev 提交于
      When mmc host controller enters suspend state, the clocks are
      disabled, but irqs are not. For some reason the irqchip emits
      false interrupts, which causes system lock loop.
      
      Debug log is:
        ...
        sunxi-mmc 1c11000.mmc: setting clk to 52000000, rounded 51200000
        sunxi-mmc 1c11000.mmc: enabling the clock
        sunxi-mmc 1c11000.mmc: cmd 13(8000014d) arg 10000 ie 0x0000bbc6 len 0
        sunxi-mmc 1c11000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
        sunxi-mmc 1c11000.mmc: cmd 6(80000146) arg 3210101 ie 0x0000bbc6 len 0
        sunxi-mmc 1c11000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
        sunxi-mmc 1c11000.mmc: cmd 13(8000014d) arg 10000 ie 0x0000bbc6 len 0
        sunxi-mmc 1c11000.mmc: irq: rq (ptrval) mi 00000004 idi 00000000
        mmc1: new DDR MMC card at address 0001
        mmcblk1: mmc1:0001 AGND3R 14.6 GiB
        mmcblk1boot0: mmc1:0001 AGND3R partition 1 4.00 MiB
        mmcblk1boot1: mmc1:0001 AGND3R partition 2 4.00 MiB
        sunxi-mmc 1c11000.mmc: cmd 18(80003352) arg 0 ie 0x0000fbc2 len 409
        sunxi-mmc 1c11000.mmc: irq: rq (ptrval) mi 00004000 idi 00000002
         mmcblk1: p1
        sunxi-mmc 1c11000.mmc: irq: rq   (null) mi 00000000 idi 00000000
        sunxi-mmc 1c11000.mmc: irq: rq   (null) mi 00000000 idi 00000000
        sunxi-mmc 1c11000.mmc: irq: rq   (null) mi 00000000 idi 00000000
        sunxi-mmc 1c11000.mmc: irq: rq   (null) mi 00000000 idi 00000000
      and so on...
      
      This issue apears on eMMC cards, routed on MMC2 slot. The patch is
      tested with A20-OLinuXino-MICRO/LIME/LIME2 boards.
      
      Fixes: 9a8e1e8c ("mmc: sunxi: Add runtime_pm support")
      Signed-off-by: NStefan Mavrodiev <stefan@olimex.com>
      Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      b8ba3578
  4. 30 5月, 2018 1 次提交
  5. 29 5月, 2018 1 次提交
    • A
      mmc: sunxi: mark PM functions as __maybe_unused · 45ee5046
      Arnd Bergmann 提交于
      The newly added runtime-pm functions cause a harmless warning
      when CONFIG_PM is disabled:
      
      drivers/mmc/host/sunxi-mmc.c:1452:12: error: 'sunxi_mmc_runtime_suspend' defined but not used [-Werror=unused-function]
       static int sunxi_mmc_runtime_suspend(struct device *dev)
                  ^~~~~~~~~~~~~~~~~~~~~~~~~
      drivers/mmc/host/sunxi-mmc.c:1435:12: error: 'sunxi_mmc_runtime_resume' defined but not used [-Werror=unused-function]
       static int sunxi_mmc_runtime_resume(struct device *dev)
      
      This marks them as __maybe_unused to shut up the warning.
      
      Fixes: 9a8e1e8c ("mmc: sunxi: Add runtime_pm support")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
      Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
      45ee5046
  6. 02 5月, 2018 7 次提交
  7. 15 3月, 2018 3 次提交
  8. 15 12月, 2017 1 次提交
  9. 11 12月, 2017 1 次提交
  10. 30 10月, 2017 1 次提交
  11. 30 8月, 2017 9 次提交
  12. 17 7月, 2017 1 次提交
  13. 25 4月, 2017 2 次提交
  14. 13 2月, 2017 7 次提交
  15. 29 11月, 2016 1 次提交
  16. 27 9月, 2016 1 次提交