26 Jul, 2019
3 commits
-
Ahci driver set max ports to 2, but the codes has comparing issue if we
only has one port. Also suppress the print of invalid port.Signed-off-by: Ye Li
-
Add new iMX AHCI driver which is ported from kernel and support
imx6q/qp/imx8qm.
The new driver adapt to SCSI through common AHCI interfaces in ahci.c
So after enabling it, we will use SCSI commands to access the SATA
disk device.Signed-off-by: Ye Li
-
We will implement a new imx AHCI driver for imx6q/qp/imx8qm, so
revert previous changes for SATA on imx8qm.
This reverts commit 9f538d64a8f7b216751f722e9c9ab4dc3af598ce.Signed-off-by: Ye Li
24 May, 2019
5 commits
-
Fix coverity issue CID 43665: Free of address-of expression (BAD_FREE)
incorrect_free: free frees incorrect pointer pp.pp points the port array field of struct ahci_uc_priv, should not free it.
Signed-off-by: Ye Li
Acked-by: Peng Fan
(cherry picked from commit da3f3a081690d4d7fc901d922d01e2bbe6cb4eb5) -
Fix coverity issue CID 3261683: Wrong operator used (CONSTANT_EXPRESSION_RESULT)
operator_confusion: ({...; __v;}) | 67108864 is always 1/true regardless of the values
of its operand. This occurs as the logical operand of !When DIAG_X is set, the PHY COMINIT signal is detected, so should use '&' to check
whether it is set.Signed-off-by: Ye Li
(cherry picked from commit 876f435b632fd6ef1f7cfd1f7752861f1da90118) -
Fix coverity issue CID 3606684: Resource leak (RESOURCE_LEAK)
leaked_storage: Variable uc_priv going out of scope leaks the storage it points toSigned-off-by: Ye Li
(cherry picked from commit 8f52ef83dbfc9f1c812b2166a7322a16efcbf939) -
The reset_sata should reset the sata device info and free the probe_ent
memory. Otherwise, it will cause memory leak if we init the sata again.Signed-off-by: Ye Li
(cherry picked from commit 148488728486137a790a89e9b869cc938c3e0c57) -
- some delay is required between SATA_CTRL0 RST SET and CLR.
Otherwise, sata phy link would be down.
- specific the ahci modification by imx8qm platform.Signed-off-by: Richard Zhu
Signed-off-by: Ye Li
(cherry picked from commit 83812d4d636d98afdcb617a3aeab7b037e884aa1)
07 Dec, 2018
3 commits
-
Add ahci compatible support for ls2080a soc.
Signed-off-by: Peng Ma
Acked-by: Michal Simek
[YS: add fallthrough comment]
Reviewed-by: York Sun -
Add ahci compatible support for ls1088a soc.
Signed-off-by: Peng Ma
Reviewed-by: Simon Glass
Reviewed-by: York Sun -
Add ahci compatible support for ls1046a soc.
Signed-off-by: Peng Ma
Reviewed-by: York Sun
29 Sep, 2018
1 commit
-
Switch to driver model for eSDHC on Layerscape SoCs including LS1021A,
LS1043A, LS1046A, LS1088A, LS2088A.
Switch to driver model for SATA on LS1021A and LS1043A.
Add support for LS1012AFRWY rev C board.
Enable SMMU for LS1043A.
27 Sep, 2018
2 commits
-
Add ahci compatible support for ls1021a soc.
Signed-off-by: Peng Ma
Acked-by: Michal Simek
Reviewed-by: York Sun -
Add ahci compatible support for ls1043a soc.
Signed-off-by: Peng Ma
Reviewed-by: York Sun
26 Sep, 2018
2 commits
-
When using device model this sort of hardcoded limits aren't used or
necessary.Signed-off-by: Tuomas Tynkkynen
Reviewed-by: Simon Glass -
The loop in ahci_start_ports() is looping over the maximum number of
SCSI devices in the system, which can be larger than the amount of ports
a particular AHCI controller has. The extra looping isn't directly
harmful because the link_port_map bitmap won't have the bit set for a
nonexistent port, but it is wasteful. Replace the loop limit with the
port count of the AHCI controller instead.Signed-off-by: Tuomas Tynkkynen
Reviewed-by: Simon Glass
27 Jul, 2018
1 commit
-
Make the code structure more general so that more socs can be
added easily and also remove speed limitation restriction.
Add the ls1012a sata support as well.Signed-off-by: Tang Yuantian
Reviewed-by: Michal Simek
Tested-by: Michal Simek
(with and without CONFIG_OF_LIVE on zynqmp zcu102)
Reviewed-by: York Sun
29 May, 2018
3 commits
-
Mvebu AHCI is AHCI driver which uses SCSI under the hood.
This patch adjusts AHCI setup to support SCSI by creating
a SCSI device as a child. Since the functions of creating
SCSI device need the kconfig option DM_SCSI, so let
AHCI_MVEBU select DM_SCSI.Signed-off-by: Ken Ma
Reviewed-by: Stefan Roese
Reviewed-by: Simon Glass
Signed-off-by: Stefan Roese -
This workaround was added for A8040/7040 A0.
A8040/7040 A0 is no longer supported so this workaround
can be removed.Signed-off-by: David Sniatkiwicz
Signed-off-by: Ken Ma
Reviewed-by: Stefan Roese
Reviewed-by: Simon Glass
Signed-off-by: Stefan Roese -
Currently mvebu sata driver is in arch/arm/mach_mvebu directory, this
patch moves it to drivers/ata directory with renaming "sata.c" to
"ahci_mvebu.c" which is aligned to Linux.
New ahci driver's kconfig option is added as AHCI_MVEBU which selects
SCSI_AHCI and is based on AHCI.Signed-off-by: Ken Ma
Reviewed-by: Stefan Roese
Reviewed-by: Simon Glass
Signed-off-by: Stefan Roese
11 May, 2018
1 commit
-
In v2018 the patch
"dm: ahci: Correct uclass private data"
(sha1: bfc1c6b4838501d10aa48c0e92eaf70976f4b2dd)
was causing an issue for ceva_sata.
But this issue is not in v2018.05-rc1 but still converting to
UCLASS_AHCI would make more sense.Signed-off-by: Michal Simek
07 May, 2018
1 commit
-
When U-Boot started using SPDX tags we were among the early adopters and
there weren't a lot of other examples to borrow from. So we picked the
area of the file that usually had a full license text and replaced it
with an appropriate SPDX-License-Identifier: entry. Since then, the
Linux Kernel has adopted SPDX tags and they place it as the very first
line in a file (except where shebangs are used, then it's second line)
and with slightly different comment styles than us.In part due to community overlap, in part due to better tag visibility
and in part for other minor reasons, switch over to that style.This commit changes all instances where we have a single declared
license in the tag as both the before and after are identical in tag
contents. There's also a few places where I found we did not have a tag
and have introduced one.Signed-off-by: Tom Rini
28 Apr, 2018
1 commit
-
We have a large number of places where while we historically referenced
gd in the code we no longer do, as well as cases where the code added
that line "just in case" during development and never dropped it.Signed-off-by: Tom Rini
14 Apr, 2018
1 commit
-
The dwc_ahci has been broken for quite some time now. The breakage has been
introduced by the series "dm: scsi: Enhance SCSI support for driver model"Use ahci_bind_scsi() and ahci_probe_scsi() to properly bind and probe the
driver.Signed-off-by: Jean-Jacques Hiblot
09 Feb, 2018
1 commit
-
config_fallbacks.h has some logic that sets HAVE_BLOCK_DEVICE
based on a list of enabled options. Moving HAVE_BLOCK_DEVICE to
Kconfig allows us to drastically shrink the logic in
config_fallbacks.hSigned-off-by: Adam Ford
[trini: Rename HAVE_BLOCK_DEVICE to CONFIG_BLOCK_DEVICE]
Signed-off-by: Tom Rini
13 Dec, 2017
10 commits
-
Signed-off-by: Tuomas Tynkkynen
-
This symbol enables some library code used by various SATA drivers,
so make this a non-user-visible symbol select'ed by the respective
drivers, and let moveconfig handle the rest.Signed-off-by: Tuomas Tynkkynen
-
And use 'imply' liberally.
Signed-off-by: Tuomas Tynkkynen
-
Signed-off-by: Tuomas Tynkkynen
-
Use 'imply' here liberally to avoid the combinatorial explosion of
defconfig changes in the PowerPC boards.Signed-off-by: Tuomas Tynkkynen
-
Signed-off-by: Tuomas Tynkkynen
-
Signed-off-by: Tuomas Tynkkynen
-
Use 'imply' here liberally to avoid the combinatorial explosion of
defconfig changes in the PowerPC boards.Signed-off-by: Tuomas Tynkkynen
-
The last user of this driver went away in August 2015 in commit:
b6073fd2115 ("arm: Remove mx51_efikamx, mx51_efikasb boards")Signed-off-by: Tuomas Tynkkynen
-
The last user of this driver went away in June 2017, in commit:
98f705c9ce ("powerpc: remove 4xx support")Signed-off-by: Tuomas Tynkkynen
28 Nov, 2017
1 commit
-
s/achi_/ahci_/g
Signed-off-by: Michal Simek
Reviewed-by: Simon Glass
03 Nov, 2017
1 commit
-
The patch:
"dm: ahci: Unwind the confusing init code"
(sha1: 7cf1afce7fa3fe64189020fe14b93f7326dd0758)
introduce bug for ceva sata because port didn't start.
On the other hand the dwc_ahci.c was fixed correctly.
Do the same change for ceva too.Signed-off-by: Michal Simek
Tested-by: Mian Yousaf Kaukab
04 Oct, 2017
1 commit
-
U-Boot widely uses error() as a bit noisier variant of printf().
This macro causes name conflict with the following line in
include/linux/compiler-gcc.h:# define __compiletime_error(message) __attribute__((error(message)))
This prevents us from using __compiletime_error(), and makes it
difficult to fully sync BUILD_BUG macros with Linux. (Notice
Linux's BUILD_BUG_ON_MSG is implemented by using compiletime_assert().)Let's convert error() into now treewide-available pr_err().
Done with the help of Coccinelle, excluing tools/ directory.
The semantic patch I used is as follows:
//
@@@@
-error
+pr_err
(...)
//Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
[trini: Re-run Coccinelle]
Signed-off-by: Tom Rini
13 Sep, 2017
1 commit
-
Import include/linux/dma-direction.h from Linux 4.13-rc7 and delete
duplicated definitions of enum dma_data_direction.Signed-off-by: Masahiro Yamada
Reviewed-by: Andy Shevchenko
17 Aug, 2017
1 commit
-
Update this driver to support driver model. This involves implementing the
AHCI operations and reusing existing common code.Signed-off-by: Simon Glass