Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
743600b2
Commit
743600b2
authored
5 years ago
by
Sandrine Bailleux
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "intel: Remove un-needed checks for qspi driver r/w" into integration
parents
d5ce8df7
f6c4b19a
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
plat/intel/soc/common/drivers/qspi/cadence_qspi.c
+3
-8
plat/intel/soc/common/drivers/qspi/cadence_qspi.c
with
3 additions
and
8 deletions
+3
-8
plat/intel/soc/common/drivers/qspi/cadence_qspi.c
View file @
743600b2
...
...
@@ -688,10 +688,7 @@ int cad_qspi_read(void *buffer, uint32_t offset, uint32_t size)
if
((
offset
>=
qspi_device_size
)
||
(
offset
+
size
-
1
>=
qspi_device_size
)
||
(
size
==
0
)
||
((
long
)
((
int
*
)
buffer
)
&
0x3
)
||
(
offset
&
0x3
)
||
(
size
&
0x3
))
{
(
size
==
0
))
{
ERROR
(
"Invalid read parameter
\n
"
);
return
-
1
;
}
...
...
@@ -766,11 +763,9 @@ int cad_qspi_write(void *buffer, uint32_t offset, uint32_t size)
if
((
offset
>=
qspi_device_size
)
||
(
offset
+
size
-
1
>=
qspi_device_size
)
||
(
size
==
0
)
||
((
long
)
buffer
&
0x3
)
||
(
offset
&
0x3
)
||
(
size
&
0x3
))
(
size
==
0
))
{
return
-
2
;
}
if
(
CAD_QSPI_INDWR_RDSTAT
(
mmio_read_32
(
CAD_QSPI_OFFSET
+
CAD_QSPI_INDWR
)))
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help