Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3007062pxj; Sun, 23 May 2021 18:37:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJypadiYcTluyKlJBnErS5XuuQRPf7W+x/YCxP7na8O9e3GVEzyWoHA0YZxkziLGg3vST3zE X-Received: by 2002:aa7:dd10:: with SMTP id i16mr23090131edv.274.1621820240829; Sun, 23 May 2021 18:37:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621820240; cv=none; d=google.com; s=arc-20160816; b=IsFKjQvAWlCqpCxpZIBlMK5tK+pwruX580aOlDF9rPnNB8Bt61UYHSx+erWbw0Dkb1 ufCUjzH26Ddj+FUSTPowP0hZj7g+OZ+08ejfaX9lrkzmDYgHUrkyNdYz562nAjlElpXr 4yKKXqh5FGJkJ36bDYGNRbVJ/ZQ+KlmHatFkYa/5q3VtGqQGhe9P5uMafJgf1rlN6rk6 cWLNzSDT5URkx4373I6ZzG+s23PAGbSngTpVTnbcDKgTYZrQlx0tDAQdCNmqL/xKcgzi X3MUJYLuB2rPohIfOuylBgPE5hO5uvfhHqlp5uPaXchKwxEahNUinTLgZ2w0jpEJ3H/X 1YMw== 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=GLzR8V6SvDeIsyAstNkq2gTzI23jfFfIEag6VtEV2NE=; b=C+YpP3bgGQl8y/JYBqycUf5n+5gjyKc+kjHThw64WgY6eMdRGVXe8cyOnYZl9HJ7op WDUEDHLthBaWrITYLMnz6qOd5SyJctQus0k8lI6gGZKigUmqZN+mRsjBPGFUvtaXcaB/ uuEuHBAtO0u93xRCeTX4A77GgsER6c92yoD2IjSGglJIo+6rHo6S/w3nR/x/q+e77iF0 BX9CvR6iiGSb74+3SlCMtafR75312panbfE8NRtYOTCmIDjJ4tWRYAo/OW9YLiCkmFQq co25jAwHaKuXTm83POu6dcxqcxYs3ymK76+WoeZXcXIr8fKwBKJuIcKLRERk+l800J0m nYrw== 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.36.58; Sun, 23 May 2021 18:37:20 -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 S232167AbhEXBea (ORCPT + 99 others); Sun, 23 May 2021 21:34:30 -0400 Received: from mail-pg1-f175.google.com ([209.85.215.175]:43690 "EHLO mail-pg1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232067AbhEXBe3 (ORCPT ); Sun, 23 May 2021 21:34:29 -0400 Received: by mail-pg1-f175.google.com with SMTP id e22so3174465pgv.10; Sun, 23 May 2021 18:33:01 -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=GLzR8V6SvDeIsyAstNkq2gTzI23jfFfIEag6VtEV2NE=; b=tPjWM3wJM12ctM2TRAO2AJIzGopgWSHkfhblZR/aXs/uJ6jaKsUaTlGoa7au47mi5Q qA8ys504mFOf1oafWuaXE504ms6YOi6uPghZFSaxtRmCdAbLZmmpX1c7KggiDG+3HPpn ya2VLbLLUGXFa9XsrCw/UUoJYJxjNFjgf6XhErmuhVM0dAadE2rRRAPXAtHHYUJ9iRSu rnn+1snKRXsLj0iiV1Dzcvh2WwaRgZdr+cf7Xh1YqVVEstK5Mv44fuwUa2f2XiTRQIzL 96ofhEi0I9Umnignat88YdPku1GZ2YEeo6pF+svggJ5PK8oQVvBqoc0BBuVG0kdb6OSh tX/Q== X-Gm-Message-State: AOAM5310DsIoIlmQDeyb7PNvf05nUowH0TvOl91kMLKDMVQiEOgsEnZ1 wylXoS0DZIw5dYC9NXW3P6Cs6HHdR5U= X-Received: by 2002:a63:3704:: with SMTP id e4mr10721891pga.125.1621819980580; Sun, 23 May 2021 18:33:00 -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 y190sm10168536pgd.24.2021.05.23.18.32.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 23 May 2021 18:33:00 -0700 (PDT) Subject: Re: [PATCH v1 3/3] scsi: ufs: Use UPIU query trace in devman_upiu_cmd 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-4-huobean@gmail.com> From: Bart Van Assche Message-ID: <74d9b6e5-489d-9267-1c6f-c59f9164136d@acm.org> Date: Sun, 23 May 2021 18:32:58 -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-4-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: > + ufshcd_add_query_upiu_trace(hba, err ? UFS_QUERY_ERR : UFS_QUERY_COMP, > + (struct utp_upiu_req *)lrbp->ucd_rsp_ptr); Why is there a cast in the above code from a response pointer to a request pointer type? Thanks, Bart.