Skip to content

mmap() for vme_user and CR/CSR fix for master

Dmitry Kalinkin lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 1 replySuperseded

Changes in v2 from the cover letter

* use pr_* instead of printk
* use file_inode() helper

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3staging: vme: use image mutex for ioctl()drivers/staging/vme/devices/vme_user.c+5 -40 replies
2/3staging: vme: mmap() support for vme_userdrivers/staging/vme/devices/vme_user.c drivers/vme/vme.c include/linux/vme.h+112 -00 replies
3/3vme: tsi148: Master windows support USERx and CR/CSR accesses, not slavesdrivers/vme/bridges/vme_tsi148.c+3 -80 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchDmitry Kalinkin
1/3
2/3
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCHv2 0/3] mmap() for vme_user and CR/CSR fix for master

Dear all,

mmap() on VME bridge devices is a feature present in many existing Linux and UNIX drivers. The proposed solution follows the approach so that mmap() offsets are coherent with read() and write() offsets, which seems to be the only manner compatible with the current vme_user API. It also ends up adding vme_master_mmap call to the VME subsystem API. On one hand this might come useful for a board driver that will be able to expose one of its windows to the user that way. On the other hand it introduces dependency on vma_area_struct into vme.h, which doesn't seem very right.

Also I'm bringing up a bugfix by Martyn Welch that was published on the list, but for some reason didn't make it to the kernel.

CHANGES IN V2:
* use pr_* instead of printk
* use file_inode() helper

Cheers,
Dmitry

Dmitry Kalinkin (2):
staging: vme: use image mutex for ioctl()
staging: vme: mmap() support for vme_user

Martyn Welch (1):
vme: tsi148: Master windows support USERx and CR/CSR accesses, not
slaves

 drivers/staging/vme/devices/vme_user.c | 94 ++++++++++++++++++++++++++++++++--
 drivers/vme/bridges/vme_tsi148.c       | 11 ++--
 drivers/vme/vme.c                      | 26 ++++++++++
 include/linux/vme.h                    |  1 +
 4 files changed, 120 insertions(+), 12 deletions(-)
Signature · 1 line
1.9.1