Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1574235rwd; Tue, 16 May 2023 20:42:08 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6eU5aRaN1E7WKJpRXsZn1M/BzsW4CxhATzHnC4vA5UdkvTA0gn3zmhdybxMZ8VkIeyjHUY X-Received: by 2002:a05:6a00:1141:b0:646:5041:9729 with SMTP id b1-20020a056a00114100b0064650419729mr38098672pfm.0.1684294928418; Tue, 16 May 2023 20:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684294928; cv=none; d=google.com; s=arc-20160816; b=Q+viruPXBxuqNVV5rMc3ts4on67DLwVUNWcfQ27F+d/8N16pHLmknKcy2W2MhVfIae JhxaWVOtOjpepKq6ipx4oBaBrj0IixD+qtPOplPqvIgk9uug9Z1p+BOWWPh1Pgr0LzsS P1CiByg6Em5bPKwIO/lMnjxuKednCZ7lHeWcIXUDvxwvPjR8FAf5g3vRNhNOasTKNkPN 7pLlqrRDLvBtS3Ph9eWardOD8XN/CT2lLkzAOpg6qpeh7Am4lufDgf8H92WNX8PfXbiD BPdpFKlTHB6EZCN20UH699XZIGso8WTiDQXHoEPkN7qwwk/44tBVGuyQbnglCZGOf8LZ GMEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0PlbG7oZLmtVb12Gg7ERnW/Xq208fNCur2NiP9XTlwk=; b=0SIBXHMUYbBEnCQHhxfJWBvRVB7HVnI6CnKXjvuXnO5I7Hs0mYkHdJuv1foD6zR9ux e8ouoFQDfOfdHfjles+1KsWS9B0cMAyM7eI5ctRX61bWffYHufoY1M2FvZfp7G0+gpVA vRfRm+5WnVljqLWm5iFZXetXFaDU565I5zboXMwiJxLiXxenXzJL8Vk+NTNOdk2x1UwG haJpql0x4G4qYBdmN9jHizQ8kaL/wN+B8uvUyyF52aRow9QXNRqbFz1wHmTwidcutA8k 4T5ATNHRfC3/Ai2QdnQalkUtT3EwKktfZlILO5w8NcOPbThe33Q/y4aO2IvBP7BeG7N+ D0bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=lXzMx1J4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g15-20020aa79dcf000000b0063d24857c5bsi21254357pfq.43.2023.05.16.20.41.52; Tue, 16 May 2023 20:42:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=lXzMx1J4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231863AbjEQDPx (ORCPT + 99 others); Tue, 16 May 2023 23:15:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231365AbjEQDPt (ORCPT ); Tue, 16 May 2023 23:15:49 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A77728F; Tue, 16 May 2023 20:15:48 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-4efe8b3f3f7so358479e87.2; Tue, 16 May 2023 20:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684293347; x=1686885347; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0PlbG7oZLmtVb12Gg7ERnW/Xq208fNCur2NiP9XTlwk=; b=lXzMx1J4qGInp6vVq0qmEgHuNX8WCg8nkG3vy1CajAemLCednyJgQ7PymQJXdLaaI9 xGzBjLZlEBRAHgf3UaitI+X4Exl4Zjk+ipQfvptld1+J+OChyNqwsuIUjyUuJQKyv/OG zNzoWvpQpjDRPV5kVwWezwnkRbj6Rv/iu8IUUaMczCsZrxnDfv+tTvFPRKNW8AWZd6pC OaVonEAW0xu78gxUNenm1QmMThjbz6fx5h5tAVrw2rOlekjhuhvqXFWANG+o3Iz8iFw6 is6/Z4N8/GkYm1HWxT/VUZJlys8QRcsrL869mdgI/SgNMoxeMo6STZ4z0RQJa4PcCNN3 EOsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684293347; x=1686885347; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0PlbG7oZLmtVb12Gg7ERnW/Xq208fNCur2NiP9XTlwk=; b=H9hEfQ3L+yCVHJHkcvGc8Rg6AxokjPZMo04exw1mj2LEjFQHspJ4x0AFaaUQQf8N5H 4kl4LW7dG+r6FoGHkduQm6SiO55IQ6KCDHfIE8ZeK3cow2Oz0evdmnNtlatnLWVbf0Xh sS/016ME+eYDONJE19Eh6Fa3BJhE/TP7OmT7pDWVMoJjO58fhder0ygrtluUR2lxOunj lISbjHlPE93G8Z/U4YBz6E/O5zf0dZfvDg5bZnAkUrPTVHviQFfhscx3gWOOo+roGgc/ WeX4X3jGAxBHNGQDsboWCATLylL3tKli5cu0C0IQ/MmVOZ4N2eNT6T9qh2XtHxPVDWUD rpNQ== X-Gm-Message-State: AC+VfDxu9ohcOiHinCej7X9vMrdtSWurx/Ex3GFsQUlA63AXonESAh8c YUgrXh74jsR4CnaVOpPcWti9ZzjeB92l6InUKg== X-Received: by 2002:a05:6512:906:b0:4f0:81c:73e5 with SMTP id e6-20020a056512090600b004f0081c73e5mr6688330lft.40.1684293346408; Tue, 16 May 2023 20:15:46 -0700 (PDT) MIME-Version: 1.0 References: <45743dac476e3b2bffb17eaf915fe7f48f87bbac.1683872601.git.quic_nguyenb@quicinc.com> In-Reply-To: <45743dac476e3b2bffb17eaf915fe7f48f87bbac.1683872601.git.quic_nguyenb@quicinc.com> From: Stanley Chu Date: Wed, 17 May 2023 11:15:34 +0800 Message-ID: Subject: Re: [PATCH v5 5/7] ufs: mcq: Added ufshcd_mcq_abort() To: "Bao D. Nguyen" Cc: quic_asutoshd@quicinc.com, quic_cang@quicinc.com, bvanassche@acm.org, mani@kernel.org, stanley.chu@mediatek.com, adrian.hunter@intel.com, beanhuo@micron.com, avri.altman@wdc.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, Alim Akhtar , "James E.J. Bottomley" , Alice Chao , Arthur Simchaev , open list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bao D. > @@ -7562,6 +7561,12 @@ static int ufshcd_abort(struct scsi_cmnd *cmd) > if (is_mcq_enabled(hba)) > goto release; Should we remove the above lines because the code below will not be executed in the MCQ path? > > + if (is_mcq_enabled(hba)) { > + /* MCQ mode. Branch off to handle abort for mcq mode */ > + err = ufshcd_mcq_abort(cmd); > + goto release; > + } > + > /* Skip task abort in case previous aborts failed and report failure */ > if (lrbp->req_abort_skip) { > dev_err(hba->dev, "%s: skipping abort\n", __func__); > -- > 2.7.4 >