Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2516224rdb; Wed, 21 Feb 2024 09:55:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX6Xylm+g+FZGo0lhIdgvM/60L07FMDjlt+dpyCmjM6hy0qxHrstEZu2B3zsgEKDIxGKjL7Sg2qGhCRKU3ZC5WgD485tFooN9BQ4c60UA== X-Google-Smtp-Source: AGHT+IG8dmvKz/pd+hKR5GRoeVohvNBatdaUQMnTBg+BWXvyG70rH6VOcY2mlzYi+izGVxfzsQ7T X-Received: by 2002:a05:6870:232a:b0:21e:a6fb:28eb with SMTP id w42-20020a056870232a00b0021ea6fb28ebmr11081262oao.35.1708538125376; Wed, 21 Feb 2024 09:55:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708538125; cv=pass; d=google.com; s=arc-20160816; b=DpjeRTacpFiOSR7UKRyjpou8rMbUm3gS31DlYcPBOJBfTTtzJWMlARCo90tV/FBNtT 5IuJTlRrRywvLbG5Pf0rH0vjnCo4Rms40//hgdaC95BJ090am3COEDN9/UK6qgAh/XfZ Zzp720c1jXIvUzczMjeU7AyVk02U8u+kM1JJ7Qf0TcPt+5dJXN9/Xd1K2iBawbIvKxm+ zHuoEkzN8iCa4LFL/XUxtpHOxd1hMgEPrEs9qaiYCT0pA31e6wu5HjPZk3+p+1f7FOEs TRXhIv8E1D1NNgl5eabMxUa/hJ/8BX16ORXRlfPHX89vQHEU5L49kBYtJZSuck0XlAey hgTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id; bh=ixNT6lrCynAY5FEQSBY8l84PkqF4jn/V5s3vgWDx/rI=; fh=rf0d0vXhR+dhJrJ/VehXoe5ICVxveVESBfI095t3NJA=; b=tJIUMi4Ay8ieI1CQj5IIV7MVQFpVWnZohvo44TLkHCfBbrol0KZHr2Ea4k+YnF6Jbh TKtZvboPZTdyVE8ete59Spi4s/4RZiC/YvlvzRGYIb2YNpeniR/AGtCEtlRf06WOUaB2 4hmVHt8hTXgiloY6qwBFQZ+tV6/UoKFsR4qdq4+/R5Cu/DDcUhjEPMEV1vGOj86CtjdZ xJLhE44BQuSbPHgvdIDcxXsViy+qgYF+AqycgLj57MLK/Gh4JO4KPN08MGmVfmAqj4QC on3VLMCIKtKD9qaRyyKPMnvLnYOdOXaRkNwawp7dfFrPtemW1Qz7//u6CSYqzm41CUve wM0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-75233-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75233-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id b20-20020a656694000000b005d74823c24fsi8495632pgw.440.2024.02.21.09.55.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 09:55:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75233-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-75233-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75233-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6B630283347 for ; Wed, 21 Feb 2024 17:55:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CF38284FD8; Wed, 21 Feb 2024 17:55:11 +0000 (UTC) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) (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 F334584A45; Wed, 21 Feb 2024 17:55:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708538111; cv=none; b=cqbQb9NDDZnoK9bCxpLUEWfYC0qyArxFcVpoVlX38Eij8TpjCjEMHv5O2AR7bujYh6+0oc5gOC/5SRLnqecOFGREpth+n8NKrfPOcQ6B8kfa+MR1iIGmslIQaXl51h9Hhy6jYaWzFcdGyZQq6bSLCvnPdeHk5SrFYKMPMAbbcIQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708538111; c=relaxed/simple; bh=V5g39ReTMQQQdgjvi0X/fnE23YA0xre0R2QtYw1EiXo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ebICfPpi+KO/cZRVT6R52PxeBHYJsxY0ToM9r7ddAIOFXiYh574AykqJfmylol71HDXvifn/RUDyRpK7drhm6XULM+2SlnvElu0ZGLPMBBkpoyH6RW7zEY2IAM+m6jilRmxDewR5I0rj36v2K3RUPZYeDjRDLzsadpaFGYHETLw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=acm.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.210.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-6d9f94b9186so784666b3a.0; Wed, 21 Feb 2024 09:55:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708538109; x=1709142909; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ixNT6lrCynAY5FEQSBY8l84PkqF4jn/V5s3vgWDx/rI=; b=RChN+00dRsrg9CQiFJNWkx7o6SkhflkJeuMNf0Kplt38U/EWiF6c+MgLFi4l7dqtPE RntoC8eWX3/tS8MmgcTF1I+UG0QPTxP7u8Ut2wNOG3+FxG9VvqDeJbpLiSHJWcqrcptu Ne82yaeXwE2fXWbyXtfbgCbFKhhBo+AMfllPoHzF8LbhqC0qfHer2Y3LHbTm87hujz2L GcVa0sJ+1s+pn54ZFjETV2GgntGh46BeuFTFjMK1kP6X4ZSIo5GO0IaO8qoId5ZjVsu5 9NAv9IUGFJwySEVkY+mkcw8gyfgxvSO1/C4IPb5gwZ3rgN9UP1jCqEl96WfwL1Ho5fFL b+hg== X-Forwarded-Encrypted: i=1; AJvYcCXbRUHs2piLzBIRJ/yxAXv4cFca/cMyHiPUU9SiMBS2WuBADKhhXdNPlT3c2IAJJOfdZQtDphbMgJvuNuIGJpEUyBT9gSHGeKM0Ey7qk/RaznKIOkGwn48cXzXpVLGYJS+dkmXdiYyZhQ== X-Gm-Message-State: AOJu0Yw5IiAKCgeoI49Tr3iLgbS7EkIs3FP3WivToF70UMfehxC2sk46 TuOAs8PWyyFRWasZ1nvOMUd93EPawCPdOcBJrnWP5AbRqj6+pTAw X-Received: by 2002:a05:6a00:2309:b0:6e4:c3ec:1193 with SMTP id h9-20020a056a00230900b006e4c3ec1193mr1106867pfh.32.1708538108610; Wed, 21 Feb 2024 09:55:08 -0800 (PST) Received: from ?IPV6:2620:0:1000:8411:d74f:a168:a26a:d7fe? ([2620:0:1000:8411:d74f:a168:a26a:d7fe]) by smtp.gmail.com with ESMTPSA id fb19-20020a056a002d9300b006e42bc22725sm7310727pfb.113.2024.02.21.09.55.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Feb 2024 09:55:08 -0800 (PST) Message-ID: <0f959cca-ad29-4b8b-966d-55eb37156ef8@acm.org> Date: Wed, 21 Feb 2024 09:55:06 -0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] scsi: ufs: core: Fix setup_xfer_req invocation Content-Language: en-US To: Can Guo , Rohit Ner , Bean Huo , Stanley Chu , "Martin K. Petersen" , Jaegeuk Kim Cc: Avri Altman , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240220090805.2886914-1-rohitner@google.com> <1920a2f6-e398-47af-a5d7-9dad9c70e03d@acm.org> From: Bart Van Assche In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/21/24 01:13, Can Guo wrote: > I am going to push some BUG fixes for Qualcomm UFSHCI MCQ engine, one of > which would count on a vops in ufshcd_send_command(). My original plan > was to add a new vops.mcq_setup_xfer_req() to differentiate from the > existing one used in legacy mode. But if Rohit moves the existing > .setup_xfer_req() up, I can use it instead of introducing the new one. Hi Can, If an if-statement can be avoided in the hot path by introducing a new callback pointer for MCQ code then I prefer the approach of introducing a new callback instead of moving the setup_xfer_req() call. Thanks, Bart.