Skip to content

Commit a23867f

Browse files
committed
Merge branch 'for-4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata
Pull libata updates from Tejun Heo: "Nothing too interesting. The biggest change is refcnting fix for ata_host - the bug is recent and can only be triggered on controller hotplug, so very few are hitting it. There also are a number of trivial license / error message changes and some hardware specific changes" * 'for-4.17' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata: (23 commits) ahci: imx: add the imx8qm ahci sata support libata: ensure host is free'd on error exit paths ata: ahci-platform: add reset control support ahci: imx: fix the build warning ata: add Amiga Gayle PATA controller driver ahci: imx: add the imx6qp ahci sata support ata: change Tegra124 to Tegra ata: ahci_tegra: Add AHCI support for Tegra210 ata: ahci_tegra: disable DIPM ata: ahci_tegra: disable devslp for Tegra124 ata: ahci_tegra: initialize regulators from soc struct ata: ahci_tegra: Update initialization sequence dt-bindings: Tegra210: add binding documentation libata: add refcounting to ata_host pata_bk3710: clarify license version and use SPDX header pata_falcon: clarify license version and use SPDX header pata_it821x: Delete an error message for a failed memory allocation in it821x_firmware_command() pata_macio: Delete an error message for a failed memory allocation in two functions pata_mpc52xx: Delete an error message for a failed memory allocation in mpc52xx_ata_probe() sata_dwc_460ex: Delete an error message for a failed memory allocation in sata_dwc_port_start() ...
2 parents ef1c4a6 + 027fa4d commit a23867f

23 files changed

Lines changed: 995 additions & 135 deletions

‎Documentation/devicetree/bindings/ata/ahci-platform.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ compatible:
3030
Optional properties:
3131
- dma-coherent : Present if dma operations are coherent
3232
- clocks : a list of phandle + clock specifier pairs
33+
- resets : a list of phandle + reset specifier pairs
3334
- target-supply : regulator for SATA target power
3435
- phys : reference to the SATA PHY node
3536
- phy-names : must be "sata-phy"

‎Documentation/devicetree/bindings/ata/imx-sata.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Required properties:
77
- compatible : should be one of the following:
88
- "fsl,imx53-ahci" for i.MX53 SATA controller
99
- "fsl,imx6q-ahci" for i.MX6Q SATA controller
10+
- "fsl,imx6qp-ahci" for i.MX6QP SATA controller
1011
- interrupts : interrupt mapping for SATA IRQ
1112
- reg : registers mapping
1213
- clocks : list of clock specifiers, must contain an entry for each
Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
Tegra124 SoC SATA AHCI controller
1+
Tegra SoC SATA AHCI controller
22

33
Required properties :
4-
- compatible : For Tegra124, must contain "nvidia,tegra124-ahci". Otherwise,
5-
must contain '"nvidia,<chip>-ahci", "nvidia,tegra124-ahci"', where <chip>
6-
is tegra132.
4+
- compatible : Must be one of:
5+
- Tegra124 : "nvidia,tegra124-ahci"
6+
- Tegra132 : "nvidia,tegra132-ahci", "nvidia,tegra124-ahci"
7+
- Tegra210 : "nvidia,tegra210-ahci"
78
- reg : Should contain 2 entries:
89
- AHCI register set (SATA BAR5)
910
- SATA register set
@@ -13,8 +14,6 @@ Required properties :
1314
- clock-names : Must include the following entries:
1415
- sata
1516
- sata-oob
16-
- cml1
17-
- pll_e
1817
- resets : Must contain an entry for each entry in reset-names.
1918
See ../reset/reset.txt for details.
2019
- reset-names : Must include the following entries:
@@ -24,9 +23,22 @@ Required properties :
2423
- phys : Must contain an entry for each entry in phy-names.
2524
See ../phy/phy-bindings.txt for details.
2625
- phy-names : Must include the following entries:
27-
- sata-phy : XUSB PADCTL SATA PHY
28-
- hvdd-supply : Defines the SATA HVDD regulator
29-
- vddio-supply : Defines the SATA VDDIO regulator
30-
- avdd-supply : Defines the SATA AVDD regulator
31-
- target-5v-supply : Defines the SATA 5V power regulator
32-
- target-12v-supply : Defines the SATA 12V power regulator
26+
- For Tegra124 and Tegra132:
27+
- sata-phy : XUSB PADCTL SATA PHY
28+
- For Tegra124 and Tegra132:
29+
- hvdd-supply : Defines the SATA HVDD regulator
30+
- vddio-supply : Defines the SATA VDDIO regulator
31+
- avdd-supply : Defines the SATA AVDD regulator
32+
- target-5v-supply : Defines the SATA 5V power regulator
33+
- target-12v-supply : Defines the SATA 12V power regulator
34+
35+
Optional properties:
36+
- reg :
37+
- AUX register set
38+
- clock-names :
39+
- cml1 :
40+
cml1 clock should be defined here if the PHY driver
41+
doesn't manage them. If it does, they should not be.
42+
- phy-names :
43+
- For T210:
44+
- sata-phy

‎drivers/ata/Kconfig‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ config AHCI_SUNXI
211211
If unsure, say N.
212212

213213
config AHCI_TEGRA
214-
tristate "NVIDIA Tegra124 AHCI SATA support"
214+
tristate "NVIDIA Tegra AHCI SATA support"
215215
depends on ARCH_TEGRA
216216
help
217-
This option enables support for the NVIDIA Tegra124 SoC's
217+
This option enables support for the NVIDIA Tegra SoC's
218218
onboard AHCI SATA.
219219

220220
If unsure, say N.
@@ -954,6 +954,18 @@ config PATA_FALCON
954954

955955
If unsure, say N.
956956

957+
config PATA_GAYLE
958+
tristate "Amiga Gayle PATA support"
959+
depends on M68K && AMIGA
960+
help
961+
This option enables support for the on-board IDE
962+
interfaces on some Amiga models (A600, A1200,
963+
A4000 and A4000T) and also for IDE interfaces on
964+
the Zorro expansion bus (M-Tech E-Matrix 530
965+
expansion card).
966+
967+
If unsure, say N.
968+
957969
config PATA_ISAPNP
958970
tristate "ISA Plug and Play PATA support"
959971
depends on ISAPNP

‎drivers/ata/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ obj-$(CONFIG_PATA_WINBOND) += pata_sl82c105.o
9797
# SFF PIO only
9898
obj-$(CONFIG_PATA_CMD640_PCI) += pata_cmd640.o
9999
obj-$(CONFIG_PATA_FALCON) += pata_falcon.o
100+
obj-$(CONFIG_PATA_GAYLE) += pata_gayle.o
100101
obj-$(CONFIG_PATA_ISAPNP) += pata_isapnp.o
101102
obj-$(CONFIG_PATA_IXP4XX_CF) += pata_ixp4xx_cf.o
102103
obj-$(CONFIG_PATA_MPIIX) += pata_mpiix.o

‎drivers/ata/ahci.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ struct ahci_host_priv {
350350
u32 em_msg_type; /* EM message type */
351351
bool got_runtime_pm; /* Did we do pm_runtime_get? */
352352
struct clk *clks[AHCI_MAX_CLKS]; /* Optional */
353+
struct reset_control *rsts; /* Optional */
353354
struct regulator **target_pwrs; /* Optional */
354355
/*
355356
* If platform uses PHYs. There is a 1:1 relation between the port number and

0 commit comments

Comments
 (0)