Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4741303pxj; Tue, 25 May 2021 15:30:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiyxHwiOvwCb630tHMAp4K7NRLYzp3+9FmVJCeKptCjiaCz8bh1BJ4MmetG4qsSf7gttNb X-Received: by 2002:a05:6402:5a:: with SMTP id f26mr34231957edu.306.1621981811654; Tue, 25 May 2021 15:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621981811; cv=none; d=google.com; s=arc-20160816; b=MkQdiyuf5ZSZyeJbloLa+m8uyu2cgdmreu6gdDnze9sOs7b+8MpI4iYZzaYlTTNBcW Favtb6RcycPMHEsdVjB/l/Ln9LpRG9dGWWtCPDajvdmde+Zxq9OJHuAmsxdKZ6vo5S89 CSLADyR5Xa9NcrEBGItsQss9ygaocCf44xZyT//owXfyBiKDL4rIGfO9XeXLKeyJXj39 /tzrYXJWcrx/PeDZ+iJsvJrL008FsWZe7dBriX1c4YlyK9toPlkHTGYc5leEDeiYVogl AKdc34dPnaXWVfO8aXtB6Mn4nk6Pn+XxH8mTYgHZAMqNxjvpxm+Z1n7pBB9nAuufgs0o 0prw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=xjyrkNstyxFQKqfWq5lLR6k4iAnQVrfBsjAIBO8yIB4=; b=TPNCNMK9/O/AQ1T2zQG9Iz+B0mxuHwvkl6/rynU9VrH/HkTBemYVVuyHZK3v8FU2sD /mEmkin1NcY2gh2KZc+WWp8CwlhGKzlMYM0LzUzRKL82RoEh69hehcPiZMfoEroiJCus +TB0BQtzbxSLXjUxiKQax1iAsLDullFqi725+MCEJF0c6mJroP8OxgfLK/KBwGiFxiJy cx4EPWQbhTf9E8hegW+XzEJfYD9o/kOdtN8BNlXOugMpDb2xmm8+pYWcQwQKibB4ihuE FmJAJdU0TFDtcHCjYEX9eJPjZJx7Qecjgq4JSLaCIRX0w+ty5l3Woy5vzuqUvyPGxV4S LZdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z14si4458797ejw.626.2021.05.25.15.29.49; Tue, 25 May 2021 15:30:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232902AbhEYUQz (ORCPT + 99 others); Tue, 25 May 2021 16:16:55 -0400 Received: from mail-pf1-f176.google.com ([209.85.210.176]:40461 "EHLO mail-pf1-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230222AbhEYUQz (ORCPT ); Tue, 25 May 2021 16:16:55 -0400 Received: by mail-pf1-f176.google.com with SMTP id x188so24478939pfd.7; Tue, 25 May 2021 13:15:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=xjyrkNstyxFQKqfWq5lLR6k4iAnQVrfBsjAIBO8yIB4=; b=h9YHkV6kGGk1GaqC+Cxy1CSAdAvBrTGG9j51ppv2LFv+FZY/4MZbKru37XhLseBSbU qvy5H/GZ05pknq/GQRPVhVRxClRJo0u4gMFt/fWTGAwcQMMROHj/qRUnTnC7Zu5oba4/ dDJ+ZsECfPkYU03nnBpPMahdiNjVLHdLLf1Y8oRR8T3VaUJD9S5rgbZ4h929uj1Eq1dM ti1FWis1gA0kYIg2kzE3KzL2Xc22xi2obexlUZZO/yokSIJfmzrf/cE+5cvU3zz2vnNv x0MNd7o2MOCIF6Mr0Iy7ad1FKDHkLa+g5lKC3QOEqGtkhX7xP2C7Hc2Rq0yfbpEsH2O7 vaxg== X-Gm-Message-State: AOAM531sNSlhUDQFL+AjSr1w/PhIK1apRnxEkav1tGv60ohwh+Y2syst 6KwmpwjNqhYqMqObChbMOccV5UD5cQw= X-Received: by 2002:a63:7c57:: with SMTP id l23mr20576646pgn.429.1621973724162; Tue, 25 May 2021 13:15:24 -0700 (PDT) Received: from [192.168.3.217] (c-73-241-217-19.hsd1.ca.comcast.net. [73.241.217.19]) by smtp.gmail.com with ESMTPSA id z22sm14862499pfa.157.2021.05.25.13.15.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 May 2021 13:15:23 -0700 (PDT) Subject: Re: [PATCH v1 1/3] scsi: ufs: Let UPIU completion trace print RSP UPIU To: Bean Huo , alim.akhtar@samsung.com, avri.altman@wdc.com, asutoshd@codeaurora.org, jejb@linux.ibm.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, beanhuo@micron.com, tomas.winkler@intel.com, cang@codeaurora.org Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210523211409.210304-1-huobean@gmail.com> <20210523211409.210304-2-huobean@gmail.com> <628c0050-e3e2-033c-8a25-6fc04d4d5657@acm.org> From: Bart Van Assche Message-ID: Date: Tue, 25 May 2021 13:15:21 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/25/21 12:28 PM, Bean Huo wrote: > If this is problem, I can change the code, let them more readable. > > how do you think? A long explanation was needed to show that the patch is correct. I think this shows that the code is confusing :-) Hence please use the struct utp_upiu_rsp type when interpreting a pointer as a response. Thanks, Bart.