Skip to content
GitLab
Menu
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
Jan 13, 2020
by
Sandrine Bailleux
Committed by
TrustedFirmware Code Review
Jan 13, 2020
Browse files
Merge "intel: Remove un-needed checks for qspi driver r/w" into integration
parents
d5ce8df7
f6c4b19a
Changes
1
Show whitespace changes
Inline
Side-by-side
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
)))
{
...
...
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