* [U-Boot] [PATCH 0/2] dm: ahci: Fix dwc_ahci
@ 2017-07-07 10:13 Jean-Jacques Hiblot
2017-07-07 10:13 ` [U-Boot] [PATCH 1/2] pipe3: Fix broken dependency Jean-Jacques Hiblot
2017-07-07 10:13 ` [U-Boot] [PATCH 2/2] ahci: dm: Fix memory allocation for uclass private data Jean-Jacques Hiblot
0 siblings, 2 replies; 5+ messages in thread
From: Jean-Jacques Hiblot @ 2017-07-07 10:13 UTC (permalink / raw)
To: u-boot
This series applies to u-boot-dm/master. It fixes 2 issues preventing usage of
SATA on DRA7/AM57 platforms
The first patch is a simply fix to the Kconfig that allows building the driver
again.
The second patch fixes an issue introduced by commit 7278fc4f7256628b
("dm: ahci: Drop use of probe_ent"). The root cause is that the uclass private
data is not allocated.
Jean-Jacques Hiblot (2):
pipe3: Fix broken dependency
ahci: dm: Fix memory allocation for uclass private data
drivers/ata/ahci.c | 8 +++++++-
drivers/phy/Kconfig | 4 ++--
2 files changed, 9 insertions(+), 3 deletions(-)
--
1.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 1/2] pipe3: Fix broken dependency
2017-07-07 10:13 [U-Boot] [PATCH 0/2] dm: ahci: Fix dwc_ahci Jean-Jacques Hiblot
@ 2017-07-07 10:13 ` Jean-Jacques Hiblot
2017-07-07 14:34 ` Tom Rini
2017-07-11 12:41 ` [U-Boot] [U-Boot,1/2] " Tom Rini
2017-07-07 10:13 ` [U-Boot] [PATCH 2/2] ahci: dm: Fix memory allocation for uclass private data Jean-Jacques Hiblot
1 sibling, 2 replies; 5+ messages in thread
From: Jean-Jacques Hiblot @ 2017-07-07 10:13 UTC (permalink / raw)
To: u-boot
ARCH_OMAP2 has been renamed ARCH_OMAP2PLUS in commit a93fbf4a7892
("ARM: omap2+: rename config to ARCH_OMAP2PLUS and consolidate Kconfig")
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
---
drivers/phy/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
index a91a694..7841554 100644
--- a/drivers/phy/Kconfig
+++ b/drivers/phy/Kconfig
@@ -43,7 +43,7 @@ config PHY_SANDBOX
config PIPE3_PHY
bool "Support omap's PIPE3 PHY"
- depends on PHY && ARCH_OMAP2
+ depends on PHY && ARCH_OMAP2PLUS
help
Support for the omap PIPE3 phy for sata
@@ -52,7 +52,7 @@ config PIPE3_PHY
config SPL_PIPE3_PHY
bool "Support omap's PIPE3 PHY in SPL"
- depends on SPL_PHY && ARCH_OMAP2
+ depends on SPL_PHY && ARCH_OMAP2PLUS
help
Support for the omap PIPE3 phy for sata in SPL
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 2/2] ahci: dm: Fix memory allocation for uclass private data
2017-07-07 10:13 [U-Boot] [PATCH 0/2] dm: ahci: Fix dwc_ahci Jean-Jacques Hiblot
2017-07-07 10:13 ` [U-Boot] [PATCH 1/2] pipe3: Fix broken dependency Jean-Jacques Hiblot
@ 2017-07-07 10:13 ` Jean-Jacques Hiblot
1 sibling, 0 replies; 5+ messages in thread
From: Jean-Jacques Hiblot @ 2017-07-07 10:13 UTC (permalink / raw)
To: u-boot
Allocate manually the uclass private data in ahci_init_dm(). Don't do this
in the declaration of the scsi uclass driver with
.per_device_auto_alloc_size because it is AHCI specific.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
---
drivers/ata/ahci.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 6da412d..1d88472 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1090,7 +1090,13 @@ int ahci_init(void __iomem *base)
int ahci_init_dm(struct udevice *dev, void __iomem *base)
{
- struct ahci_uc_priv *uc_priv = dev_get_uclass_priv(dev);
+ struct ahci_uc_priv *uc_priv;
+
+ uc_priv = calloc(1, sizeof(struct ahci_uc_priv));
+ if (!uc_priv)
+ return -ENOMEM;
+
+ dev->uclass_priv = uc_priv;
return ahci_init_common(uc_priv, base);
}
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH 1/2] pipe3: Fix broken dependency
2017-07-07 10:13 ` [U-Boot] [PATCH 1/2] pipe3: Fix broken dependency Jean-Jacques Hiblot
@ 2017-07-07 14:34 ` Tom Rini
2017-07-11 12:41 ` [U-Boot] [U-Boot,1/2] " Tom Rini
1 sibling, 0 replies; 5+ messages in thread
From: Tom Rini @ 2017-07-07 14:34 UTC (permalink / raw)
To: u-boot
On Fri, Jul 07, 2017 at 12:13:34PM +0200, Jean-Jacques Hiblot wrote:
> ARCH_OMAP2 has been renamed ARCH_OMAP2PLUS in commit a93fbf4a7892
> ("ARM: omap2+: rename config to ARCH_OMAP2PLUS and consolidate Kconfig")
>
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170707/29045d41/attachment.sig>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [U-Boot,1/2] pipe3: Fix broken dependency
2017-07-07 10:13 ` [U-Boot] [PATCH 1/2] pipe3: Fix broken dependency Jean-Jacques Hiblot
2017-07-07 14:34 ` Tom Rini
@ 2017-07-11 12:41 ` Tom Rini
1 sibling, 0 replies; 5+ messages in thread
From: Tom Rini @ 2017-07-11 12:41 UTC (permalink / raw)
To: u-boot
On Fri, Jul 07, 2017 at 12:13:34PM +0200, Jean-Jacques Hiblot wrote:
> ARCH_OMAP2 has been renamed ARCH_OMAP2PLUS in commit a93fbf4a7892
> ("ARM: omap2+: rename config to ARCH_OMAP2PLUS and consolidate Kconfig")
>
> Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
> Reviewed-by: Tom Rini <trini@konsulko.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170711/2c6193e0/attachment.sig>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-07-11 12:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-07 10:13 [U-Boot] [PATCH 0/2] dm: ahci: Fix dwc_ahci Jean-Jacques Hiblot
2017-07-07 10:13 ` [U-Boot] [PATCH 1/2] pipe3: Fix broken dependency Jean-Jacques Hiblot
2017-07-07 14:34 ` Tom Rini
2017-07-11 12:41 ` [U-Boot] [U-Boot,1/2] " Tom Rini
2017-07-07 10:13 ` [U-Boot] [PATCH 2/2] ahci: dm: Fix memory allocation for uclass private data Jean-Jacques Hiblot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.