Received: by 2002:a17:90a:bc8d:0:0:0:0 with SMTP id x13csp1524046pjr; Mon, 18 May 2020 15:26:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydRVZCNFi5IjEpwUnLZlH15R4xEJS4tG7G30OdZEJSXVLfBIccyQuFvpdIudlHm7jNV1Zv X-Received: by 2002:a05:6402:2292:: with SMTP id cw18mr15834800edb.217.1589840769083; Mon, 18 May 2020 15:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589840769; cv=none; d=google.com; s=arc-20160816; b=j0uJsjE147D8Z888tWP8wOEEmQJdZhxBWvLNNcIRm1yrhZ/Mmi+3+TAZ8T86IOwAMk vfu38+8u1Q/pvu0d6CLoiBOJt5fogQoxiPkaPS1kiNtxXcWHqL9oCIUr9VAhiEiAgFOw BVktl+CkPuladpB348EehfTFHVaNF4W7Tf2IfUSP1EwPvKnmGI3/FbTfFkv1Ml+6NqRf 5z7hWDxTVS4tCjgQYDI17D1nLOwR8QagbpyPOUedlt/3FQzXdDIDE5Yb3+9lbAOhOaXf BgllcD9e/YucONsCFr7a1ufUNtmR6HdgvT6skY04WhFIDmNnWRl2AYQIV6lkk0vAZgvV 5i6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=l2AiwPoRUWb12iTjkfgbugtmaZ2GIkyi5/CVey8i4vc=; b=tG+hHpSHTeZYSim7spyKBMWyft2Pu0FXVzpD2GscyGCTBrq4nZ9FKLnGyJrh9SARSz mIvf/61Nxz/raP+c1uxPpwfitA29RrjWZCFhrKv0yUDClUpiKWsc29dC+1lv2SsdOEeG 6opZnq63DXlte1WGHHnnsrEXxw2lrYjpnu2m50Auwb4tzb6HmN+Ph4oBReu/fzCubzHm 2quX02onu7B5/hCwYut88WIhuUFWtnBdyQirjDd/CSoYwJBeKX0YdAzV2AAku5gRdsvp bfUCrUX3qmJvbC3QPdVLVFYemctfwi0q23u5tNoiDOLUpiqz0JGMsf7CEH9r3LH4F20A 60ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=nMx7NOMN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dg11si1977617edb.59.2020.05.18.15.25.46; Mon, 18 May 2020 15:26:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=nMx7NOMN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728359AbgERWYF (ORCPT + 99 others); Mon, 18 May 2020 18:24:05 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:20521 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728347AbgERWYE (ORCPT ); Mon, 18 May 2020 18:24:04 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1589840643; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=l2AiwPoRUWb12iTjkfgbugtmaZ2GIkyi5/CVey8i4vc=; b=nMx7NOMN90yR3Q+M5Yv1q99TsRu8xcE6A6WoanpadeYWnuo4qy5KkWN4aD+rdz9+Gy8Cux6K NEkd53u5MFl1bEdgLijEIjcmTdlsNcnaYJiwi/9Ad5DJx74HH1hW1FvFFIOhARS2LQaN5aGs 3vvUly81oBfcvNJB2UAnnFMSZcs= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 5ec30af5057563ff398a8367 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 18 May 2020 22:23:49 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id A0ABBC4478C; Mon, 18 May 2020 22:23:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: hemantk) by smtp.codeaurora.org (Postfix) with ESMTPSA id F1D6BC433F2; Mon, 18 May 2020 22:23:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org F1D6BC433F2 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=hemantk@codeaurora.org From: Hemant Kumar To: manivannan.sadhasivam@linaro.org Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, jhugo@codeaurora.org, bbhatt@codeaurora.org, Hemant Kumar Subject: [PATCH v1 0/3] user space client interface driver Date: Mon, 18 May 2020 15:23:36 -0700 Message-Id: <1589840619-18520-1-git-send-email-hemantk@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MHI based uci driver is for transferring data between host and device using standard file operations from user space. Open, read, write, and close operations are supported by this driver. Currently LOOPBACK channel is supported. Hemant Kumar (3): bus: mhi: core: Add helper API to return number of free TREs bus: mhi: core: Move MHI_MAX_MTU to external header file bus: mhi: clients: Add user space client interface driver drivers/bus/mhi/Kconfig | 2 + drivers/bus/mhi/Makefile | 1 + drivers/bus/mhi/clients/Kconfig | 16 + drivers/bus/mhi/clients/Makefile | 3 + drivers/bus/mhi/clients/uci.c | 653 +++++++++++++++++++++++++++++++++++++++ drivers/bus/mhi/core/internal.h | 1 - drivers/bus/mhi/core/main.c | 12 + include/linux/mhi.h | 12 + 8 files changed, 699 insertions(+), 1 deletion(-) create mode 100644 drivers/bus/mhi/clients/Kconfig create mode 100644 drivers/bus/mhi/clients/Makefile create mode 100644 drivers/bus/mhi/clients/uci.c -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project