From patchwork Thu Jan 10 15:53:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Avri Altman X-Patchwork-Id: 10756105 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2DE636C2 for ; Thu, 10 Jan 2019 15:53:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F22529B94 for ; Thu, 10 Jan 2019 15:53:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1469C29B4D; Thu, 10 Jan 2019 15:53:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D17029B9E for ; Thu, 10 Jan 2019 15:53:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729568AbfAJPxb (ORCPT ); Thu, 10 Jan 2019 10:53:31 -0500 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:59659 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729561AbfAJPxa (ORCPT ); Thu, 10 Jan 2019 10:53:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1547135624; x=1578671624; h=from:to:cc:subject:date:message-id; bh=KdZwZiiGz4XyGl8ZKJuhC4mVoxdblsBgrm/2Spi1Beg=; b=dYVboLrjboRbh1+V92L5Yxh3QUXTHKk9fZSe2QUO2ze7CR1hdGgcn92B by3NmKCtNrTErXv7ZSMnnTqie7zvg2dUzLBO7O53uZgl6oEFzv70DnIlm JvfyDRQcPGRAio0fjEdZ14iqDxCetBJdD9kNJHgcwvhQ19P/P7yCQNdq8 cvWzcDGnHCG8HXW4anclGc2/yJ0UJWLszboRv964IL54fX5XkXYo9eJ1y xf9eZtVri4dxI2QNdCwG0fG5MkpqHv5Qs6otOeCPWZFfNhY+DoGkyFNaL uw8wPUNUV6eDDsbQkuhwMyvCTfNp7lxA68HTLbdAsLj2nlL+i/e0259Jw w==; X-IronPort-AV: E=Sophos;i="5.56,461,1539619200"; d="scan'208";a="196492039" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 10 Jan 2019 23:53:44 +0800 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 10 Jan 2019 07:35:00 -0800 Received: from kfae422988.sdcorp.global.sandisk.com ([10.0.230.227]) by uls-op-cesaip01.wdc.com with ESMTP; 10 Jan 2019 07:53:29 -0800 From: Avri Altman To: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, Christoph Hellwig Cc: Bart Van Assche , Avi Shchislowski , Alex Lemberg , Avri Altman Subject: [PATCH v2 0/2] scsi: ufs-bsg: Add read descriptor Date: Thu, 10 Jan 2019 17:53:02 +0200 Message-Id: <1547135584-23953-1-git-send-email-avri.altman@wdc.com> X-Mailer: git-send-email 1.9.1 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP UFS Protocol Information Units (UPIU) are UFS packets that travel between the host and the device on the UniPro bus. Our previous series added the capability to send UPIUs to the ufs driver. It does not cover all the possible UPIU types - we are mainly focused on device management, provisioning, testing and validation, so it covers UPIUs that falls in that box. Our intension is to publish ufs-utils soon - an open source user space utility that relies on that infrastructure to perform those tasks. This short series is adding one last functionality needed by ufs-utils that was somehow left behind - allowing reading descriptors as well. v1->v2: Withdraw from the attempt to change the reply buffer, instead place the descriptor being read in the actual data buffer in the bio. Avri Altman (2): scsi: ufs: Allow reading descriptor via raw upiu scsi: ufs-bsg: Allow reading descriptors Documentation/scsi/ufs.txt | 11 ++++++++ drivers/scsi/ufs/ufs_bsg.c | 63 +++++++++++++++++++++++++--------------------- drivers/scsi/ufs/ufshcd.c | 20 ++++++++++----- 3 files changed, 60 insertions(+), 34 deletions(-)