Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FPGA Configuration Space
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
0
Merge Requests
0
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
FPGA Configuration Space
Commits
3ccd8975
Commit
3ccd8975
authored
Sep 15, 2023
by
A. Hahn
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/rubi-test'
parents
cd0bd184
0434a533
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
wishbone.c
pcie-wb/wishbone.c
+25
-1
No files found.
pcie-wb/wishbone.c
View file @
3ccd8975
...
...
@@ -609,7 +609,31 @@ static int char_master_fasync(int fd, struct file *file, int on)
return
fasync_helper
(
fd
,
file
,
on
,
&
context
->
fasync
);
}
#if LINUX_VERSION_CODE > KERNEL_VERSION(4,1,0)
#if LINUX_VERSION_CODE > KERNEL_VERSION(5,19,0)
/*
* Commit v5.19-10288-g3e20a751aff0, implementing read(2), removed
* initialization of iter->iov (and thus iter->nr_segs). Put it back.
* This is a hack, as I imagine there was a reason for the change (ARub).
*/
static
ssize_t
char_master_aio_read_iter
(
struct
kiocb
*
iocb
,
struct
iov_iter
*
iter
)
{
/* From new_sync_read before v5.19-10288-g3e20a751aff0 */
struct
iovec
iov
=
{
.
iov_base
=
iter
->
ubuf
,
.
iov_len
=
iter
->
count
};
return
char_master_aio_read
(
iocb
,
&
iov
,
1
,
0
);
}
static
ssize_t
char_master_aio_write_iter
(
struct
kiocb
*
iocb
,
struct
iov_iter
*
iter
)
{
/* From new_sync_write before v5.19-10288-g3e20a751aff0 */
struct
iovec
iov
=
{
.
iov_base
=
iter
->
ubuf
,
.
iov_len
=
iter
->
count
};
return
char_master_aio_write
(
iocb
,
&
iov
,
1
,
0
);
}
#elif LINUX_VERSION_CODE > KERNEL_VERSION(4,1,0)
static
ssize_t
char_master_aio_read_iter
(
struct
kiocb
*
iocb
,
struct
iov_iter
*
iter
)
{
...
...
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