Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3001042pxj; Sun, 23 May 2021 18:25:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTUPu2JK/h433p0zCITWhgRiGY4wJnNEQk8o8tSy1n6EOmp8B5EpOvbMrl86mNx1oQh26k X-Received: by 2002:a50:fd0d:: with SMTP id i13mr23039685eds.163.1621819535366; Sun, 23 May 2021 18:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621819535; cv=none; d=google.com; s=arc-20160816; b=ekMwTAkv+oUt8TZXX8Z52086oGyIWPf+QxZU6arfTywhokhHLuHhWq1fRrTj4e8IOq U10HfKgyFEp0PSxCsS3gJuEKUCG+N66FrCsYZOeJ+GbIMqM2f7KZD5dPhBWs8B6jGCJo uHdua66wiQVaJrB0r0GnLKIs74Ta05M4/sZzekZTbziKSbGQWRR2D4Vil0CmUV9RD7On EbQ0Jyw92gvM/nBWdSNinUFrZDIj9b/0sUxmkv+j76hy5khRnrcCtQOm9WtrkPI43tep VAqrYiK3G14Dr+SJ1u7dX0jdY88/RAR60izTTA+mQxbcvWZZxGvHax9BjmWS4q/ee8bl EDpw== 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=846OUuZQkLpeNUjXFbRAPUYHOWnoHhJDvnKplijG+Ac=; b=GnXQmG+wyy7k/cR38KpaAwex12TesOkiwZuTxGmUFPnECrbb2M8b7G/KIBUlVEZPHb eltzDfkvijG3YXH1bvHe++rs7hwl8nllqHhKkNK1eTkyUrG3WHwnOOXf/T4V/9Qb+s/h c6044SurYOAMZ3m4M7HnC+E3fphCznE2PQDKHosv2OL8Nd/0Bcw8USx9f22H1LeWlW0i UUT1e/a4jvcS9SvtZRgeEGJrc/X+/6c7UVsVtdt5WMgCyln4XOxVM9Ki09/Az2PGgba7 t11MMbFnMayP5d1rJOL3/8/qB/OIaXgesvadJXtr04HIcOsy2EqNVon55ZkCJ9vj4Ogr 9gGA== 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 d1si416562ejd.480.2021.05.23.18.25.12; Sun, 23 May 2021 18:25:35 -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 S232125AbhEXBZr (ORCPT + 99 others); Sun, 23 May 2021 21:25:47 -0400 Received: from mail-pf1-f180.google.com ([209.85.210.180]:36462 "EHLO mail-pf1-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232067AbhEXBZr (ORCPT ); Sun, 23 May 2021 21:25:47 -0400 Received: by mail-pf1-f180.google.com with SMTP id c12so7918147pfl.3; Sun, 23 May 2021 18:24:19 -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=846OUuZQkLpeNUjXFbRAPUYHOWnoHhJDvnKplijG+Ac=; b=Wr8g4byQ2QA6oSoQz6VYrzO0bGqaOpAMuJDBxqsXoZOXLEoateurh9Y2EB4A4OFpGb 3MYsbRp5cJn817iHHqw9aezkZuhpifWfQxXUVMh+7GGhzURfNakP8GVYqwUCYokryuAW v72Yb2/devoU3oNFMXZwUIx1p6b5hGOcPovBhcSxaDpfWdSBzhtEsQ2PbXiK3n0nUFgp OzpvcRSA0TcMtIN1M/W6jOI8ztcr5LBn/wipcXL39If+3ptRV1zTkLM9ZRP4utmQZbCb IUKRftfil1OCtHUtYRjYojOU695wCFpx4FPa/ErU5qrAbaIMeBGwLHoKvpQ5W2bi3PjR hLsQ== X-Gm-Message-State: AOAM531VLWma+WMISMubyl+zgbaYwdCSj/WrcOR0ukRPcbbrdolzv8Sw TOWDBx1KjWU9JROY2pkGX/zkbJjLAiA= X-Received: by 2002:a62:1b97:0:b029:24e:44e9:a8c1 with SMTP id b145-20020a621b970000b029024e44e9a8c1mr22020434pfb.19.1621819458407; Sun, 23 May 2021 18:24:18 -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 t1sm9900814pgq.47.2021.05.23.18.24.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 23 May 2021 18:24:17 -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> From: Bart Van Assche Message-ID: <628c0050-e3e2-033c-8a25-6fc04d4d5657@acm.org> Date: Sun, 23 May 2021 18:24:15 -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: <20210523211409.210304-2-huobean@gmail.com> 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/23/21 2:14 PM, Bean Huo wrote: > + rq_rsp = (struct utp_upiu_req *)hba->lrb[tag].ucd_rsp_ptr; So a pointer to a response (hba->lrb[tag].ucd_rsp_ptr) is cast to a pointer to a request (struct utp_upiu_req *)? That seems really odd to me. Please explain. Bart.