Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp125407ybt; Mon, 6 Jul 2020 05:42:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDnUq0LRr/uwLZZxyOdee38X2YXfhuMDd+x+oPgphmthVrStneX0PwYOH3x64+ygIkXzHr X-Received: by 2002:aa7:d5cd:: with SMTP id d13mr31149613eds.370.1594039358446; Mon, 06 Jul 2020 05:42:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594039358; cv=none; d=google.com; s=arc-20160816; b=gAgTOBJWMQZwWQJ0DJFPg1pUEz9tXCAjlw4DwuK8gDo7DwAgtkdhQZO271fWbolTt1 ozU0ClmmrBXqDS3ukmS2biYBpD16WGEqz14+Kt0CC0rXYd0wnpjNL4/Y22kClB0ybFbD WgP6G33n4y79yy6pwI3gdy66zZL80024ryJhA+R2yYFXdiD4B8UISbNwVxdpLH8tStFl yDVnQDjCJZuQqWA30i57ezDd2kfrT/0LPSe3qi/HpdSKpl8XEb6b+QXq1SZMYHmOf/LI wO4yl727NqsgqoIaX1fkNSWbrRGyqONkv9IdoFK7M2+VLkU+nYdU9Dc4XHXIh09N+YMI p/oQ== 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=NTlfd07fqo6vbcLIkW9eOz07H1uYGq6Yd8TcAIKMezk=; b=YLMcrOiJo/qC651vhtNI4FBQ5miFA9VG2k4YTiqi0WtXnuJnYSNEFrM+Z5bMRlah/Y quZtRM1IGlLhLhwL4Z0rM2aLqw4CnZ0/Zb2iXL2wXnY4Y3Xf9Ewg3bS8Snxpx0YCqE3v 0t2GdWvzXgGwQagp+nxlAXUkqikuMBO3JakDIShVu1lw72Wfi7NJe4JV4eFWtn4Dk2IL 4MHknCWcT7EMFFoS1AeEL2U6d4NXaXh5OZ/GF1mPnPRucq1oGtBlR/U8hHrQrPeq7nwF gFnB3RjIrYd6hnHnSyda0DI1irj/P781x27UbJQrD0cPMsvTBajr3oyszoOJmNGVFFB4 JYIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jT60lnrW; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i6si12752891ejj.508.2020.07.06.05.42.15; Mon, 06 Jul 2020 05:42:38 -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=pass header.i=@gmail.com header.s=20161025 header.b=jT60lnrW; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729135AbgGFMj4 (ORCPT + 99 others); Mon, 6 Jul 2020 08:39:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38700 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728414AbgGFMjz (ORCPT ); Mon, 6 Jul 2020 08:39:55 -0400 Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B6E2C061794; Mon, 6 Jul 2020 05:39:55 -0700 (PDT) Received: by mail-ed1-x543.google.com with SMTP id e15so34696387edr.2; Mon, 06 Jul 2020 05:39:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=NTlfd07fqo6vbcLIkW9eOz07H1uYGq6Yd8TcAIKMezk=; b=jT60lnrWqEs+enEym1/52DmnK/Rv8ejhL51zZlrHoWv72f/rplS+thUb5UzeuPe7p1 Q0mCp5xzimOTWR3dap9kc0eH2Tn39RK9iaaNCDUa4sjCgNSXtn3SRbUKCBP8MKdAlM29 PUGmF2n2xmSai7dYg+ypxAHHzkXrMP1sKlf++4AxPVgXbSbPUOLJydmMIHoCzM4tUfrg nj9PEUl7Ge5wbfGzTouF7LDyHCp9qgmCxESG0bM/ZLdFik18wh3eS+XXv+6Ue+KrZK5O tOTusnvKnBhlmEY7Qy/XDazQs8ju7CfltGJiKhP0NxcnQgKbfu+7+TXZQSy2nvRNOQVt dufQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=NTlfd07fqo6vbcLIkW9eOz07H1uYGq6Yd8TcAIKMezk=; b=dTCrGpsHiSt9On2/uhbnuD/sxR9R21gyCOcqVy7MPK4d7S/+4M6Npumj72AQpIaiER SlFTPF86YUQOHlHqFRfFrcW8e0UGjIqbZ1csBGJ2lsN+yB/fmAC/RgQUAXLf3+fUZv2S DaDteWS+8T85S4DnWLLhGqbP5hHZfEzTmTBmyNh69TmBcVHWQOeArK5UzvH5/HZ5M1iN kgY1syxK+2YtocY4RTBlLFe7gvcUXl0ET+gPiEoLhPNBCjMmBVzWSjslM5j9ZryZbUxo WHKHG/6z2RcI0wh5O0sgYZx54H7nFZDFYzUQr/8oNnfOFd0+HdRJaEuMUaAlPpthAJtE +Eig== X-Gm-Message-State: AOAM531sW8GhYCWd+WJaYiNcUnfy9NIalSUyoo0VLxX3P+W3c8xSU81u op4xye9k94Z5oGun8eBUvJs= X-Received: by 2002:aa7:d802:: with SMTP id v2mr47963009edq.77.1594039193976; Mon, 06 Jul 2020 05:39:53 -0700 (PDT) Received: from ubuntu-laptop.micron.com ([165.225.203.62]) by smtp.gmail.com with ESMTPSA id bq8sm12968578ejb.103.2020.07.06.05.39.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jul 2020 05:39:53 -0700 (PDT) From: Bean Huo To: alim.akhtar@samsung.com, avri.altman@wdc.com, asutoshd@codeaurora.org, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, bvanassche@acm.org, tomas.winkler@intel.com, cang@codeaurora.org Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: ufs: change upiu_flags to be u8 Date: Mon, 6 Jul 2020 14:39:36 +0200 Message-Id: <20200706123936.24799-1-huobean@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bean Huo According to the UFS Spec, the Flags in the UPIU is one-byte length, not 4 bytes. change it to be u8. Signed-off-by: Bean Huo --- drivers/scsi/ufs/ufshcd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 96d830bb900f..d7fd5891e81f 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/drivers/scsi/ufs/ufshcd.c @@ -2240,7 +2240,7 @@ static void ufshcd_disable_intr(struct ufs_hba *hba, u32 intrs) * @cmd_dir: requests data direction */ static void ufshcd_prepare_req_desc_hdr(struct ufshcd_lrb *lrbp, - u32 *upiu_flags, enum dma_data_direction cmd_dir) + u8 *upiu_flags, enum dma_data_direction cmd_dir) { struct utp_transfer_req_desc *req_desc = lrbp->utr_descriptor_ptr; u32 data_direction; @@ -2286,7 +2286,7 @@ static void ufshcd_prepare_req_desc_hdr(struct ufshcd_lrb *lrbp, * @upiu_flags: flags */ static -void ufshcd_prepare_utp_scsi_cmd_upiu(struct ufshcd_lrb *lrbp, u32 upiu_flags) +void ufshcd_prepare_utp_scsi_cmd_upiu(struct ufshcd_lrb *lrbp, u8 upiu_flags) { struct scsi_cmnd *cmd = lrbp->cmd; struct utp_upiu_req *ucd_req_ptr = lrbp->ucd_req_ptr; @@ -2319,7 +2319,7 @@ void ufshcd_prepare_utp_scsi_cmd_upiu(struct ufshcd_lrb *lrbp, u32 upiu_flags) * @upiu_flags: flags */ static void ufshcd_prepare_utp_query_req_upiu(struct ufs_hba *hba, - struct ufshcd_lrb *lrbp, u32 upiu_flags) + struct ufshcd_lrb *lrbp, u8 upiu_flags) { struct utp_upiu_req *ucd_req_ptr = lrbp->ucd_req_ptr; struct ufs_query *query = &hba->dev_cmd.query; @@ -2376,7 +2376,7 @@ static inline void ufshcd_prepare_utp_nop_upiu(struct ufshcd_lrb *lrbp) static int ufshcd_compose_devman_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) { - u32 upiu_flags; + u8 upiu_flags; int ret = 0; if ((hba->ufs_version == UFSHCI_VERSION_10) || @@ -2404,7 +2404,7 @@ static int ufshcd_compose_devman_upiu(struct ufs_hba *hba, */ static int ufshcd_comp_scsi_upiu(struct ufs_hba *hba, struct ufshcd_lrb *lrbp) { - u32 upiu_flags; + u8 upiu_flags; int ret = 0; if ((hba->ufs_version == UFSHCI_VERSION_10) || @@ -6124,7 +6124,7 @@ static int ufshcd_issue_devman_upiu_cmd(struct ufs_hba *hba, int tag; struct completion wait; unsigned long flags; - u32 upiu_flags; + u8 upiu_flags; down_read(&hba->clk_scaling_lock); -- 2.17.1