From patchwork Wed Mar 13 10:07:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 780264 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (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 1785338DF7 for ; Wed, 13 Mar 2024 10:10:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710324630; cv=none; b=PqMSIFXLp10s5Na9qyEQjVA7ZVb7VwLc6ocnhwuX3ZpVCQM10ZxHmO+d3wiA4t0pH+YXvtDpoyLvIb5/1PWUV4cis6BuDRgVJagIAPzIFMFNWJKPB91Mt99kPHG3fNPNjjpia0Cg5M9YMfeQ1bLDNobUMvp60ENy9cX8c+GKyMc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710324630; c=relaxed/simple; bh=kh9qI8eVJ9Vs7+4whIFJ49yLWf2soIJX6MOYReyZjWs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=EfGA0ng9FMDSRPeF1+U9e0CNTQbkdpPRMXzSQAawXIv3j36DMN/XPY7k2tNC6rz4Ut+AFLxpk4KhCKKskQaZtt5MViLcrFsg860nXL2Y/oUXqQ3HOyMEU1QADIG/mnMzsXwczcH0FTuTX/bPXiXi+B1cir7x5jf0MZKmvCLHKI8= 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=Qo5v5rFC; arc=none smtp.client-ip=209.85.210.181 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="Qo5v5rFC" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-6e6ac00616cso1453742b3a.0 for ; Wed, 13 Mar 2024 03:10:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1710324627; x=1710929427; 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=iqo+fuiBl8+PAzATKqlt/myteFBZkewLztQbgAP4k/E=; b=Qo5v5rFCM5YMbqTblSdynfMEUNXd3AhpSVXGp8zSC9c8p1/FbNmiZS2vW95LtSQBFx /n/EoP5ikpBtcQMW0dZF5RsLRUajxo6ZpzxLkSDRxr7sCcaPfiLmqvf5mTM5QfeJpuOZ xh+VTIFCHvJHIJolsijJNJuMxBErVY1PoMhMA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710324627; x=1710929427; 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=iqo+fuiBl8+PAzATKqlt/myteFBZkewLztQbgAP4k/E=; b=LueLSjaBUx4aY1llkNtqLoAp2avlcj8eNB6wm5rMb5iHbyBFt4Msz3/cbgBWh37Z9P PK0trmcLKgwZIJzkyIfyUjmYX6cZWX4ChMD3ldKSGOIPj91ol1FkH9GnWqTXRO35mo2/ asErou/l7PxnOIXvhp9rd7r1GefPYBBkSDL8nik72N5YlLk5nEq4BbhPlcTIlCRYfWMd Lg90nxId42/PUv6mC0IKfXNRBfZxCjswrv/t5ZeE9HE326kekOQej3pqKo7k2EsUFBgO yxDskAv9IgTsey9P50nFzVcgp15g+2AlAZW5VkZjpDk9T9k0RYMBQBHwNTJaLB1un9dQ wMiA== X-Gm-Message-State: AOJu0YyWq1dy290IQ+YFXOW4KNzada7Xbrk9qB4znhjhL21CVP06qBJ8 Nyefc9WY7taf+b/5KYfjgDoKAFzBfO5BWERoq5gDgvC0/hVghoQfwdgtfmvPMbMOZPO+VZHq7cf s9G12zeS+o9iLaqlHT3va3gkksd3Gs16ju5MReTH/MSnfuU/SWwg3mCCLEZ8nVXMdjfpUzmbDyu 9ukF1HFyYe6OJOQ02jwGZJsxLD6s5w434J3C1ozcO2X68JaA== X-Google-Smtp-Source: AGHT+IET2uxNtxuqTFgo88d0Yd2D/9JE8G+yyP4/VJOtfFZnHziVU7NIIpR2Ak2mfMO+0zsE0Z9XFQ== X-Received: by 2002:a05:6a21:789e:b0:1a1:85b2:44e2 with SMTP id bf30-20020a056a21789e00b001a185b244e2mr10953193pzc.11.1710324627379; Wed, 13 Mar 2024 03:10:27 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id j18-20020a056a00175200b006e5af565b1dsm7570337pfc.201.2024.03.13.03.10.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 03:10:26 -0700 (PDT) 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 v4 2/7] mpi3mr: Set MPI request flags appropriately Date: Wed, 13 Mar 2024 15:37:41 +0530 Message-Id: <20240313100746.128951-3-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240313100746.128951-1-ranjan.kumar@broadcom.com> References: <20240313100746.128951-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)) {