From patchwork Mon Mar 11 11:35:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 779603 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (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 ADBDB29CEB for ; Mon, 11 Mar 2024 11:37:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710157068; cv=none; b=cu2DNb5Qes+PefmSUbTV1H2wjpCvLjgX8IwuMsgFMvIUJzy37kTq+TylXSnsHn1sZSfXrjuFRe7I3osqDM6HIw+X/Ya5053eIIBGPLhI4qr9JE3yjQgfwIBhX+1WXS12tidX/1C9KK4PQZ4LDFBzZcMiklUzZWJyG4Bnw6AKR0s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710157068; c=relaxed/simple; bh=02U8Q3XJek6ycG0gD6N1wGOXUaRfQ8RqnHgFifbIxJo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Fla4/R+M1FAqFzXYRQT8Akb1IZ7VBkgh3PJRtJoE/kdu0IEZOs5C+219zS3gdZuydqYmjXjouf/ZGaPunT05opsSM/fgDx26FQQ0Lnmt/DuW7nE2+s//LgwBdOeHfwWrZUU51OxDjbSiv27cfbABwL+K/UzGHvypV2lBZHWLhRs= 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=Cffq0Yhc; arc=none smtp.client-ip=209.85.215.177 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="Cffq0Yhc" Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-5bdbe2de25fso3641002a12.3 for ; Mon, 11 Mar 2024 04:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1710157065; x=1710761865; 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=5mvJyCFJJenPr+8+xuleQSw0oidJkAbBTx22yar5OiI=; b=Cffq0YhcHLYZe4+zQwyMUouDHgGymDK1IDqvY5SB4x/QuV8G9dn9/SaTx+/YM/3qw8 Ch2dja3SrKqgC/VO1MVev106FodEZMii6ljS09f4aUeNiTg7v35Dylfp3L7aaCSHaWk+ Zcz3lyIgNL71w76oFOQ6HfwsazfiSHTq4VGbo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710157065; x=1710761865; 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=5mvJyCFJJenPr+8+xuleQSw0oidJkAbBTx22yar5OiI=; b=j6r2Us4WY09acOe5Mh/r0vIavQmVQPruWX/M+I/8JeSVDsxiXrrkGJgLj7T1avNrQU odv/jCE4eiRvrPcwYiILyW4q4n9Mu+6cZ1miCuHYAMaPjF8a0DoHWLrmPxr/v6eciKMS Ju83CSKX9Ejq+y1UGFDiPI0UwWPHQqbcKWQIjF9q2yzPjgCbpFtlo+aTeYwyndtUNdn/ N0W5IhgR3vqVQYUv6/bI597grC5OVzwzOAMPXY+ZvWW0JECXtPef52avKfKj1++o9a8I tDF3+zi7DfiuzartO7v1n2zY2ceEYrahEKfWwAWetJygBoEBRlX6UEPYCASSoiaSPWu8 RJew== X-Gm-Message-State: AOJu0YzfnhkXqMgDPvqPVS3SSGy8QizN3cPhjqW7cJTFumuXSzr0FZri 4G6DovRJk+sGKW/Ch942YaRPV3ZLDpLAe2TiM9Uc6ndbsZol0hTJcBXoLSLvw8JxHpTdApyo4z8 OT4lFFKPrW0YcOatLcvv/TRVYDWIPlE9SGBMYH95DwrrkITqSOIacPi8uKb2hhVgPl0AVfh7G8T 0SAgwkF20Uvri9G4vSLbcgT1QyOc6KwlUgxnRni3f7lCBXaQ== X-Google-Smtp-Source: AGHT+IH0+fMQ29HnQfBcDKYRLXz9GPVPwNae3lUWhYbfM/2FmXU5VLV0OAYi+Py4KAREyitlcNDY4A== X-Received: by 2002:a05:6a21:7897:b0:1a1:6803:69a3 with SMTP id bf23-20020a056a21789700b001a1680369a3mr8281398pzc.0.1710157065191; Mon, 11 Mar 2024 04:37:45 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id ay3-20020a17090b030300b0029ba5f434a8sm3982655pjb.26.2024.03.11.04.37.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Mar 2024 04:37:44 -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 v3 2/7] mpi3mr: Set MPI request flags appropriately Date: Mon, 11 Mar 2024 17:05:09 +0530 Message-Id: <20240311113514.108795-3-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20240311113514.108795-1-ranjan.kumar@broadcom.com> References: <20240311113514.108795-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)) {