diff options
author | Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi> | 2018-09-13 01:28:55 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-09-25 21:49:18 -0400 |
commit | 0545ac989d54c0467990a35c05ec28a817b07828 (patch) | |
tree | e3cb179bed3b91c9013f77c24085d7543d7a3039 | |
parent | 8bf207d242b603954d5338dabf31b8de01805677 (diff) | |
download | u-boot-0545ac989d54c0467990a35c05ec28a817b07828.tar.gz u-boot-0545ac989d54c0467990a35c05ec28a817b07828.tar.bz2 u-boot-0545ac989d54c0467990a35c05ec28a817b07828.zip |
ata: ahci: Don't cap AHCI port count under CONFIG_DM_SCSI
When using device model this sort of hardcoded limits aren't used or
necessary.
Signed-off-by: Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | drivers/ata/ahci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 333f0457f6..5fafb63aeb 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -230,8 +230,10 @@ static int ahci_host_init(struct ahci_uc_priv *uc_priv) debug("cap 0x%x port_map 0x%x n_ports %d\n", uc_priv->cap, uc_priv->port_map, uc_priv->n_ports); +#if !defined(CONFIG_DM_SCSI) if (uc_priv->n_ports > CONFIG_SYS_SCSI_MAX_SCSI_ID) uc_priv->n_ports = CONFIG_SYS_SCSI_MAX_SCSI_ID; +#endif for (i = 0; i < uc_priv->n_ports; i++) { if (!(port_map & (1 << i))) |