Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2205869imu; Sat, 26 Jan 2019 23:10:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN44Rk8YH3fPQLMeuGhTw3h/Siugs6GBtCCREPRYH8pkJAuER9aQojna8S1j/QLqzRD4L0i0 X-Received: by 2002:a17:902:1101:: with SMTP id d1mr17222089pla.136.1548573037535; Sat, 26 Jan 2019 23:10:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548573037; cv=none; d=google.com; s=arc-20160816; b=iF51CveaI4jwoUXxry2mh47dEs8AA6XIXv7dVmADORE8L4mL9ZXtgWye/7gTWukYhf zjv43cL8dnRZubg4aqifyzq/55d2yCdnJVYnqDdi6Ged0nHIhbhig/TLlEPvso7quzz9 XuDWUHS/shhlJuWGXv1y9a8dJ6XmNMHGcY05ccmFm9tBcLjUfidhmRFkAlVqcu/FU4vP Wp+zZlP9pvwJR9BKkwUyNez+RM2JLMwAZPlsTzrwTaqztnGBQyPkIiDA4oTClBpf7nSV IQhdl1TJBysPAdtSlU/NbEpuriF1NYKFd+WOg16csdovqMZwKMx2FXvV66jw4DmbAmmo 73og== 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 :dkim-signature; bh=u+XPukacv74JotSK8mtvykdCCmIDX33Rgcrf/wnXChM=; b=TIbe1ufpE3+NFZmufyoFdaZaX4sPRzVEgFKPDW1lh1+2PpcEDbrBPTIaOR/Pq4nGOW Yq5ny1RP8IlHto8LN8Hi+XoFV3GbkG0vSntciRml/LVBTcDPdhZpuGVYK9ibztDwYoAY O2x34SJHdnSMGDNBJJ3S+37BGnJg8KA0SdNFPE7YXzlm7W1pSb6srvgoQe09i2fjqMyv 5iUl/CPppGZ8yPq9nwHiWa/OHLpmDj6uBglr7pZfv0aHh7M5bEX/HjGQoIA/as/gQ7pj Ix8F5PS4nrYpTHdM2zCF0i34teUm5QEzQ7GHZLPnvF6zCVcH/DFcBp8Mr/F9I5yavh7Q D8kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=eEByc9js; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s80si5677842pfa.130.2019.01.26.23.10.22; Sat, 26 Jan 2019 23:10:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=eEByc9js; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726441AbfA0HID (ORCPT + 99 others); Sun, 27 Jan 2019 02:08:03 -0500 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:16359 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726146AbfA0HIC (ORCPT ); Sun, 27 Jan 2019 02:08:02 -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=1548572899; x=1580108899; h=from:to:cc:subject:date:message-id; bh=lP9cRze2DgvFbxqrm+VgPZIWiTRvEuPIbbzJrIMYERs=; b=eEByc9jsId6kSdYRJc9/QFFTo7aqxAjIUoin8cm4hAJwdDDCZAianMrK hWSNduwYh++kDraZV5RT0wbOnWgVUF1wNU9uWs1XJi4Tnl4rR9v4nf2Zb 2ny5VpVQWlLhnNybrg4vGGiXVWmLmKqfAgsNNR3tgzJODqgFt6Bei6myI GohDVCw4biw1usENpLuamg80A3drv+hXzz+Q4bm/5dY1aR4WqdwI98j2/ SDOh/69NbRT8cJcSR9hdkQOxgw0Trzd4pfMjtwQoZmjVD15k4rrlvzbCz R+aNhknJ2N1ezUHbzT5IJuhNXm4+TELOmT9rtKPqfZwU0qNT3rpv7mcpK g==; X-IronPort-AV: E=Sophos;i="5.56,529,1539619200"; d="scan'208";a="197974351" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 27 Jan 2019 15:08:19 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 26 Jan 2019 22:49:05 -0800 Received: from kfae422988.sdcorp.global.sandisk.com ([10.0.230.227]) by uls-op-cesaip02.wdc.com with ESMTP; 26 Jan 2019 23:08:00 -0800 From: Avri Altman To: "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Evan Green Cc: Avi Shchislowski , Alex Lemberg , Avri Altman Subject: [PATCH v4 0/3] scsi: ufs-bsg: Add read descriptor Date: Sun, 27 Jan 2019 09:07:45 +0200 Message-Id: <1548572868-12589-1-git-send-email-avri.altman@wdc.com> 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 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. V3->v4: Improve code readability in ufs-bsg: Allow reading descriptors Update Reviewed-by tag. V2->v3: Add a prep patch with write descriptor calling convention changes. Elaborate the commit log of ufs-bsg: Allow reading descriptors Add Reviewed-by tag. 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 (3): scsi: ufs-bsg: Change the calling convention for write descriptor 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, 61 insertions(+), 33 deletions(-) -- 1.9.1