From patchwork Sun Nov 26 05:31:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chandrakanth Patil X-Patchwork-Id: 13468773 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="XWSs8GQc" Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ED28118 for ; Sat, 25 Nov 2023 21:31:10 -0800 (PST) Received: by mail-oo1-xc29.google.com with SMTP id 006d021491bc7-58d6bf7575fso296655eaf.0 for ; Sat, 25 Nov 2023 21:31:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1700976669; x=1701581469; 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=ZeXEUGf0lc6W0GZaHjIEsyeAlkqvwkWbIClFV1EMDUk=; b=XWSs8GQcJSBqaUts4jYnO13aZ6X3xnGxR+xziZDghUI4MZiPFPOatPjlJfykh03HTB LpGbPbSMpjn/gjxp6QD6DEXqRU5bBFQ8pBLnTXqQ9mZ4NvtRDmv7nbRjkTY0eayB6dRg UF2fRNAx70icPtv19yv8FEhJ0kYFc2u9f7GZM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700976669; x=1701581469; 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=ZeXEUGf0lc6W0GZaHjIEsyeAlkqvwkWbIClFV1EMDUk=; b=gmGAiyT9LDmPcqfO6etZ5UbxJvzbZQy7LUU5C0F0wsh0zBdoIHf+oR8SIzfE4jaXnz l84rvz4Qf1U0bzVsk2UX273zI2dGwoccSt4KxK0zJT3CqrO1Kq8H5V9/SI/YvrEFarSD jAFA4h80bZ2y/Zxnnb48Kf9k6Yh771HYiatWyI0rzJF/LS7QfDqbLBv0tp0wiKitqdaL IkvCHD2rV+J+/ErTz75M4tqt4LD119AcvIvpquHm6LCnICtAlCdYSeaNO6DYttxOC9eJ 7bcdwY1cJshQRm+nG+p8fiuYZpVYWcRklaqZLAgHNZzzQ8NQOCz7PEQDyFT2zDsllX3x kI/w== X-Gm-Message-State: AOJu0YxNjWk0+qzmVxYceV2BlwYmX0bApgndwCpwmkiMRQTdAWLbMZT9 xyshNcayU1sfdDvGQFDS2r0yrBmWu3WLTs7D2sbPFRS9+eH0M52yTgof0/uPxz84Mt+GWPqgMMy iO0Xw+gIbPlp8cMSoRuJvP9Q7oLnRdFDflDYVmltFdgTliGJaX17e2pMlvjMbzI6Xlg17st5aP8 2E/W173vaf3kNSsEnZRg== X-Google-Smtp-Source: AGHT+IFqNLOzRcvk7sbqwV4x0KTKjBJ/GfZZ61NVDeAmVEgb1M7awuiVV1M9vrY0L6acPeca41N7xQ== X-Received: by 2002:a05:6358:5926:b0:16b:f954:5f2 with SMTP id g38-20020a056358592600b0016bf95405f2mr6307703rwf.13.1700976669045; Sat, 25 Nov 2023 21:31:09 -0800 (PST) Received: from dhcp-10-123-20-35.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id s78-20020a632c51000000b00578b8fab907sm5516166pgs.73.2023.11.25.21.31.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 21:31:08 -0800 (PST) From: Chandrakanth patil To: linux-scsi@vger.kernel.org, sathya.prakash@broadcom.com, sumit.saxena@broadcom.com, ranjan.kumar@broadcom.com, prayas.patel@broadcom.com Cc: Chandrakanth patil Subject: [PATCH 4/4] mpi3mr: Fetch correct device dev handle for status reply descriptor Date: Sun, 26 Nov 2023 11:01:34 +0530 Message-Id: <20231126053134.10133-5-chandrakanth.patil@broadcom.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20231126053134.10133-1-chandrakanth.patil@broadcom.com> References: <20231126053134.10133-1-chandrakanth.patil@broadcom.com> Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The current dev handle for the status reply is 0xFFFF, which is invalid. So fetch the correct value. Signed-off-by: Sumit Saxena Signed-off-by: Chandrakanth patil --- drivers/scsi/mpi3mr/mpi3mr_os.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/mpi3mr/mpi3mr_os.c b/drivers/scsi/mpi3mr/mpi3mr_os.c index 872d4b809d08..1bffd629c124 100644 --- a/drivers/scsi/mpi3mr/mpi3mr_os.c +++ b/drivers/scsi/mpi3mr/mpi3mr_os.c @@ -3205,6 +3205,7 @@ void mpi3mr_process_op_reply_desc(struct mpi3mr_ioc *mrioc, tg = stgt_priv_data->throttle_group; throttle_enabled_dev = stgt_priv_data->io_throttle_enabled; + dev_handle = stgt_priv_data->dev_handle; } } if (unlikely((data_len_blks >= mrioc->io_throttle_data_length) &&