Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp189253lqi; Wed, 6 Mar 2024 14:05:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXaKUmgAk27zHIoTwMu7fqZ2IsScKG3ygo+qJV32b0hnRC5qg2GUfkaDG/lzFZSz6Yz0Ymwc113QrugknJNRy8zYkkVT0/64qAnwg8DRQ== X-Google-Smtp-Source: AGHT+IG8bMshoe/cHeWHviKpNACEE1WpWkfA3rdioF4K19GIoRzYrrk/TtVJlb8HydAuk0SRRHfv X-Received: by 2002:a0c:e314:0:b0:690:8afb:b3e7 with SMTP id s20-20020a0ce314000000b006908afbb3e7mr6825873qvl.8.1709762728783; Wed, 06 Mar 2024 14:05:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709762728; cv=pass; d=google.com; s=arc-20160816; b=SivmBb8w7auITvzCr7vrTLG054gmBtZYWKa8Kb5rRDogtgjhNuj8eXZIzTE0DUWsti lSE0Y11/vpWZLPQpaUTSdN1TAJ29VHVe94T+/M1JuwGwxGjEwJFLNn51WjZ4OsUUrPle 9z4IgfNYL+cZ7cIA0qhrEustC50jxt87gpkOpFjHtUvs5nZBLaHId+7gzghFfYDTsIaW XTFHPH7MQX3ftvvsXiLoxwlz7v54AoedUF7RWH8BJphPzE93Lb9PyXQXFyqG3rbhvwpz waz/XIZxrcDWoR//qwGhl3PQQF12ICQa4dK3wWxCInGWEEnltbLV5Fp4vNDyN1n2rECk QcXA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=S39nLjr8vUhAkwYfZaJ21Wp7XOABo31SGFbLvNClb6o=; fh=q/nzIYSDhFEimBj3Vm+mvuqpDWok9hI3vawa6pebtbY=; b=T1DU0dnbl+27rnhDoSqVKciPwduEmGIc4sB69pqrOKPZUkxPUkSU6Yd6xje12yVlJI ZjFjc+PvArBxVV+iuV3kC6MKH8msgrnFnCgpRtTVispTSln/WUvZ3Rl59k7iQHAp2h1m +nxE+2RuX3z7zgVmA456DeNGay4zl3ul4MlGTQeixzanpbG1ORBVm9+910NZh3ATBQp1 kS2RDtSGClsZxf+1mcISc0hkhktqhSxNYoJLS8tf1n/o5TyLNFXb+elxbucyDQ6vcLhs obH8CAygD0hXOD8xpegR8C6yhBN2fk6CfD6NX/cpfzqDPPIEwVvyrusZYYTrGZitk1dY RKhw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="d/cT+ymp"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-94627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pj1-20020a0562144b0100b00690171413dfsi15921228qvb.498.2024.03.06.14.05.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 14:05:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="d/cT+ymp"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-94627-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94627-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 819561C229E1 for ; Wed, 6 Mar 2024 22:05:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 585B61BC31; Wed, 6 Mar 2024 22:05:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="d/cT+ymp" Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 EF9551B941; Wed, 6 Mar 2024 22:05:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709762718; cv=none; b=XOmNFa1Ls0XVchqOOLUD1FBF8K3MmvXB/71Tu2c544yOw5NolOvU/7sE+4X3P4yHgwWKgPqQQ3p1mIMgOcaDDrcgM3S0UpCjpWxpN4wXnxBvjddsJhuQABiqnE3Jv2Uo8+SSBRBjIRzvAaIekQZyhmBadj4W2TXunyFxeETe/CY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709762718; c=relaxed/simple; bh=S39nLjr8vUhAkwYfZaJ21Wp7XOABo31SGFbLvNClb6o=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=EA2vkvEz+RHWxVgMYrvUe/OTb0mQJhCjSyVERiGK9ybvwM6iraWqUtLDrLQtLJKMjFoZRjwBOaefVbdErBtz5NgDQ9rszEB0zKHuKnQeXqveWoce6DPgbyplMWcZh/aV7j/8Ie4aSA9oY+a9u6otefbVBStWICwL0pL+ucvXyV0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=d/cT+ymp; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-563c595f968so257313a12.0; Wed, 06 Mar 2024 14:05:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709762715; x=1710367515; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=S39nLjr8vUhAkwYfZaJ21Wp7XOABo31SGFbLvNClb6o=; b=d/cT+ympDhyFcyftHD4rcIei0OfEB/4oTHqtKNsE/z/CXgi1oCB/l5t40f4Bmu1Ylt dt6AAz8jIZWQ+15iCZMK5hgjkWQ7mHL0bGQyFfPhgqZ/hyne9WZKmcxQXtgDg8OSmGPP nMp+RCLcgk7beZe60ewTL4GbHfLAI7iBrSaDVxtoDsy9f4PTvLmVZe6LdKFu6IqqK0d2 OdAhrZcnFIf72A1k0aqX8gK/hZWyU0X0ZBOEk1BdOANgtczOKoNV1n2zjW3awB8p2mik 7cCqEFHoIHnk7A3jybw9LGNqPMuGqKA8YuomVlN3DIopbd8irYtpOMqcfGEo1KFfHXg4 1YCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709762715; x=1710367515; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=S39nLjr8vUhAkwYfZaJ21Wp7XOABo31SGFbLvNClb6o=; b=NrpIoipGNw26zTGO6p122wIY7hCTKHEjqlSR1mW0PhS560qFHkcZVONkWjVubsndY0 q80LPznI26ovkxKjP2ASdNHOgWz551GIWF9ldjjpO7lSLgwHQtAb1WLCJOH0aJMcG8Nx W7S03EssKZNSHhYe9DOJkU3Gl+qvicD1avE03Mx7RKlC/eutP2I7f9GrKLeyI/IHePTY q8q4fd9fBJy8SO+U7Oa+unKIghzfJKSunLXpNFr++z1igoUw3F2x0GicJlwCoBFT5HD1 uTDX0ZcrUtwyKFwiG+hPG/5Z6z0HyBkjCcXwv5d+4wBiER2YNtQOe7yZUIozPRXNMG8R 1wmg== X-Forwarded-Encrypted: i=1; AJvYcCWbiRe4VtLyMGqdEJjHkDzRUxTagBegqXApk5tMb+gDbJNOTVZ5lRQUGnPux0HyDTujYJvev5PkhDwPDhGtr0uVsLWSWPEgiV/ro2JIuimZJgssBk7u456dImtHSla9Vr5ad3URwkd4jQ== X-Gm-Message-State: AOJu0YzrFrzJjBQMBGF9Z2iqxiNjtQ5NICJhGDa8mcLnMV9mv1WY9bw3 U46o6BPXYw+r+htp0lGsetjQ2R+yg7x3VnkA7FWGFdFlY3SQpKTn X-Received: by 2002:a50:cac7:0:b0:566:d28c:e627 with SMTP id f7-20020a50cac7000000b00566d28ce627mr11490259edi.36.1709762715031; Wed, 06 Mar 2024 14:05:15 -0800 (PST) Received: from p200300c58728635f85ed642449045909.dip0.t-ipconnect.de (p200300c58728635f85ed642449045909.dip0.t-ipconnect.de. [2003:c5:8728:635f:85ed:6424:4904:5909]) by smtp.gmail.com with ESMTPSA id j16-20020aa7c0d0000000b00562149c7bf4sm7365155edp.48.2024.03.06.14.05.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 14:05:14 -0800 (PST) Message-ID: <6c75ce4cc05c6983137e954043d5ae7323a96172.camel@gmail.com> Subject: Re: [PATCH v2 2/4] scsi: ufs: Re-use exec_dev_cmd From: Bean Huo To: Avri Altman , "James E . J . Bottomley" , "Martin K . Petersen" Cc: Bart Van Assche , Bean Huo , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 06 Mar 2024 23:05:13 +0100 In-Reply-To: <20240305210051.10847-3-avri.altman@wdc.com> References: <20240305210051.10847-1-avri.altman@wdc.com> <20240305210051.10847-3-avri.altman@wdc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 2024-03-05 at 23:00 +0200, Avri Altman wrote: > Move out the actual command issue from exec_dev_cmd so it can be used > elsewhere.=C2=A0 While at it, remove a redundant "lrbp->cmd =3D NULL" > assignment.=C2=A0 Also, as a free bonus, call the upiu trace if it > doesn't. This statement is a bit strange, what it is "if it doesn't"? from the change, the patch refactors command issue for broader usage and enhance UPIU tracing, isolate the command issuance logic from `ufshcd_exec_dev_cmd` to allow reuse across different contexts.