Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754278AbbBZPxm (ORCPT ); Thu, 26 Feb 2015 10:53:42 -0500 Received: from mail-we0-f172.google.com ([74.125.82.172]:33747 "EHLO mail-we0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753597AbbBZPxl (ORCPT ); Thu, 26 Feb 2015 10:53:41 -0500 From: Dmitry Kalinkin To: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Martyn Welch , Manohar Vanga , Greg Kroah-Hartman , Igor Alekseev , Dmitry Kalinkin Subject: [PATCHv2 0/3] mmap() for vme_user and CR/CSR fix for master Date: Thu, 26 Feb 2015 18:53:08 +0300 Message-Id: <1424965991-27242-1-git-send-email-dmitry.kalinkin@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <20141115075133.GP6749@mwanda> References: <20141115075133.GP6749@mwanda> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1559 Lines: 43 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(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/