From patchwork Thu Mar 7 15:08:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 13585839 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3030912AAE3 for ; Thu, 7 Mar 2024 15:10:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709824255; cv=none; b=jAoiC2ItvaQjykO7LkpUd43+xS+BK1EdCWfmM9fevMWevl77JoFQ4D7o1m4cAxKNeifl20lPgYUkHBSYEPrYscN7YgpBfH9fEZq9Bc5VLPH5UbMrP0iV8IwlxV5bum4Kp/f1TcVwbEb8bmckBZZBW+0PuDcQR95C0UWzxCdNF8s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709824255; c=relaxed/simple; bh=YyK7//meP6BUh/Uos4m/nKzqI2m4MrT+Sovyk1TZFAw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Mdb+WDdlOb1WghcIMUdT963RD/QDMna7ChshIuX6ZLRGs9Z+FFvF1avssOAfY5zov4vtU45XwNuwbyZBkWz0nf5A+0t1pIpSRqDerPikCzeN7DmJBeOg37zPbvRKuNtFLj1qmJB+VMSLnZl0l1WTw3Awthd3KQu0vaDytGOjXJ0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=htflP2g4; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="htflP2g4" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6e63e9abf6aso811168b3a.2 for ; Thu, 07 Mar 2024 07:10:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1709824253; x=1710429053; darn=vger.kernel.org; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=muwYOZKSY0hfz1fLH17GZC7NlhH1OcneAl9OxO4Bms0=; b=htflP2g49M0RV13/jlf4Fwt9XGkYow3TpRKtanT67t68b3mZvlT5cZ++/IH7ELCqW2 zmR7pITYIWSa4d+NWEl4WqxipuumFo9Ztu/7aQpWB8lRjWNLjHlJ9G8YTWmW2CqKqZZL 0AphRthpM0m86tFAnLsiUkxpuRfvg2LfrR2yM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709824253; x=1710429053; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=muwYOZKSY0hfz1fLH17GZC7NlhH1OcneAl9OxO4Bms0=; b=rbTuCJyhQqlgziebtxXl1gc+Cozlb7IMoZWt+GBOxiFVgrxDEAdk/ZNVxj6iDT/lRW eaNm1YMv9LBGFk+w+10JYUIQuYoEjc9mwZlRgPb6xfe/qxAPjn4n0H55PL3a2p3CQwbl 8l41nG150u8J47N2lDnfpfVX4YRTu0IyMxz7y/83NwuuVt8h7XSDol7+Z1/hYULfEDG1 +bgXAy31BNARTqIlaIJlMfAQFo9Bn+dQGug7823ympTIY38jxqGxLA2dOwEc1iGJrPEG eyYE/myVF+Ym6YXgN1gC8IbfI90QcX9/y2q5+rZT3GyfuolvbWlKtvCCGtgT/xb05wjs uDZA== X-Gm-Message-State: AOJu0Yyh75Fa+Hcrnik7ZlnU6zdqWb3jKsAXRsl+FDrJGOZj+3mKkSj6 ZE2wCp1Ex009+r5muraZgdhFCnQO3bzal+oiXZaXVa/gJPEwfgvx9XJeY9DAduc0sxane8MOBso afz/lWohst0Xw4vK+j/bfP9UIVaDhOad6cX/x2JNeufZFfL4Nrtg3BXKRmBmm8Ftufx4/VfJnkh ZykHkOmUjcVK9dj33lMH1nqjSP3xEkleKTWRUGRh9oX09vRVhV X-Google-Smtp-Source: AGHT+IFOntb26uil2vJpqX+MoBmho6+wUuRF6FpKMmZI8PDtu0/JHaf8zmiqGE4pLu7ImCpjSM70aw== X-Received: by 2002:a05:6a00:2da3:b0:6e6:451c:a519 with SMTP id fb35-20020a056a002da300b006e6451ca519mr9022951pfb.5.1709824252978; Thu, 07 Mar 2024 07:10:52 -0800 (PST) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id w17-20020a056a0014d100b006e58da8bb6asm12009906pfu.132.2024.03.07.07.10.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 07:10:52 -0800 (PST) From: Ranjan Kumar To: linux-scsi@vger.kernel.org, martin.petersen@oracle.com Cc: rajsekhar.chundru@broadcom.com, sathya.prakash@broadcom.com, sumit.saxena@broadcom.com, chandrakanth.patil@broadcom.com, prayas.patel@broadcom.com, Ranjan Kumar Subject: [PATCH v2 2/7] mpi3mr: Set MPI request flags appropriately Date: Thu, 7 Mar 2024 20:38:20 +0530 Message-Id: <20240307150825.7613-3-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240307150825.7613-1-ranjan.kumar@broadcom.com> References: <20240307150825.7613-1-ranjan.kumar@broadcom.com> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 “Flags” inside MPI request is bitfield-based. So ‘Flags’ should be updated with bitwise OR operation. Signed-off-by: Ranjan Kumar Signed-off-by: Sathya Prakash --- drivers/scsi/mpi3mr/mpi3mr_os.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mpi3mr/mpi3mr_os.c b/drivers/scsi/mpi3mr/mpi3mr_os.c index bfd32354b662..5f975e0db388 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_os.c +++ b/drivers/scsi/mpi3mr/mpi3mr_os.c @@ -4895,7 +4895,7 @@ static int mpi3mr_qcmd(struct Scsi_Host *shost, MPI3_SCSIIO_MSGFLAGS_DIVERT_TO_FIRMWARE; scsiio_flags |= MPI3_SCSIIO_FLAGS_DIVERT_REASON_IO_THROTTLING; } - scsiio_req->flags = cpu_to_le32(scsiio_flags); + scsiio_req->flags |= cpu_to_le32(scsiio_flags); if (mpi3mr_op_request_post(mrioc, op_req_q, scmd_priv_data->mpi3mr_scsiio_req)) {