Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
ZIO
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
ZIO
Commits
2b3a7d10
Commit
2b3a7d10
authored
Jun 06, 2017
by
Davide Silvestri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stop working with xfer.rx_buf set directly to the zio block
parent
697a53e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
zio-max110x0.c
drivers/zio-max110x0.c
+4
-4
No files found.
drivers/zio-max110x0.c
View file @
2b3a7d10
...
...
@@ -179,8 +179,8 @@ static void max110x0_work_handler(struct work_struct *w) {
}
else
{
buf
=
block
->
data
;
buf
+=
cxt
->
curr_sample
;
xfer
.
rx_buf
=
rx_buf
;
//
xfer.rx_buf = buf;
//
xfer.rx_buf = rx_buf;
xfer
.
rx_buf
=
buf
;
}
xfer
.
tx_buf
=
tx_buf
;
xfer
.
len
=
MICOSI_BLK_SIZE
;
...
...
@@ -191,8 +191,8 @@ static void max110x0_work_handler(struct work_struct *w) {
if
(
ret
)
{
printk
(
"error in spi_sync
\n
"
);
}
if
(
buf
)
memcpy
(
buf
,
rx_buf
,
MICOSI_BLK_SIZE
);
//
if (buf)
//
memcpy(buf, rx_buf, MICOSI_BLK_SIZE);
cxt
->
curr_sample
+=
MICOSI_BLK_SAMPLES
;
if
(
unlikely
(
cxt
->
curr_sample
>=
nsamples
))
{
...
...
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