Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp3154853lqt; Tue, 23 Apr 2024 11:48:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU6g823ADQnPUPwrl10IAE06hwpY1k5pyTGsmLHCY/pMLSfrCoVbN8MnHtJi27xk5+iEBTtiLzFnCdNHb4WYELDvxgGVWjmqzF2eK3c/w== X-Google-Smtp-Source: AGHT+IGDfZl0c6UZ+nRSwddh49ijUWGWLvzOu2mY7SkciA4wewsjMjQ4hQg21gj4xQL8tAfEMlK7 X-Received: by 2002:a05:6870:238c:b0:22e:b2c8:c628 with SMTP id e12-20020a056870238c00b0022eb2c8c628mr181080oap.20.1713898102213; Tue, 23 Apr 2024 11:48:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713898102; cv=pass; d=google.com; s=arc-20160816; b=v2EfTfxoPFPP4Tyid15uCnxI6EnwYpbbfwXmgr3faw1H3NymKo1Xcwq2H5JIKOvHhJ Ao0HMjQQDuxMgFvvFQRGcqrtUNjdCtvvh4PfqiPW18gt+/3hBYc9QaqxfxBnvPIZa26j dx4Bwxz57oyp7aEWq7AohpocbEVARrDdcTTfW25EC//xgESi8zOkGiF0c4oqe6Ff9ikx TlUMtp9Pd+fDg6oNozbrsV5gNqHD4dzbKkfWKukE/QPRpInSDKKy2UOHyfURkasT77jV D0no6Z2RTWExxjT4l+M6K8/J3EyuLTNqZ6c1QY7fWL/f2+RxBpLsCAbs5fSTg7cAfHrM PRlg== 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:dkim-signature; bh=1xuRdsc5E4JkoyPybqYXAta3WzudMMp2B+z34cEsg30=; fh=76/2EbnIhkCye407T3bAmdPmb9vuH/8Af3wrgnfvwCo=; b=BIb4+7vUYLsFEpObXkNFT+Xso2HZX+jBGSN1JoE5HXRj1QUbZ2arEID45MNI8QZy8K Y2OzdC084ESCXTQAW+98i50deNucGb6plumFtPbqLd4Uhf1lv1hmDbfn4fN5oWy12USf xremd4/EKNPTzczmyaFRac0CxNF+B0bcHyycQT0nqmpUzaPl719mXoPgDCPpgOQ6fDzP VANz85zchwgp49agbRS4c5v53GELCVuPN0y/Cf7dKoYYOSZ3cMKL/BlgOKjMDQATjeyu X900iVuIGpB7gd7z+ieoRod1K1TKfFaaoACzniUkEK0ca0RaRrixTJWEjOCcsVL8O7eq WOSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Py4WITlL; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-155764-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n66-20020a632745000000b005f802b7ab69si7429181pgn.238.2024.04.23.11.48.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 11:48:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-155764-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; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Py4WITlL; arc=pass (i=1 spf=pass spfdomain=quicinc.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-155764-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-155764-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EEF472890DB for ; Tue, 23 Apr 2024 18:45:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D46B513E8AC; Tue, 23 Apr 2024 18:45:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="Py4WITlL" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7B5F1CD39; Tue, 23 Apr 2024 18:45:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713897914; cv=none; b=hLXgaFkq9Jpk+orE2fecwVTaBxbPh77z6x5WDIHwDaoQ7Rk++F/8rcdHUOXAkFrBa8bV5lxL88UUBktjyCvEyB5KM0wFCCX8KIHJVHWNNiSTPd8oHdRFOGXD5jnKTpLBDR/uO5cb3kUz1X4LMtYA5M4zOrJEgfW2bSxsNclCaVE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713897914; c=relaxed/simple; bh=FVmo2qUeCFAK7JGM525GXTwOt66sExGefL9a3q+HSsY=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=KS95DdGyEO6EVZw5ObrwRVY6IeT2xzD+tWqwKcBwHM0yHWnQirwHQUVHH4u6pgiXP12AGxS7DJu43ekfmO6P8vDxTyv4E/YFAnb7FTtmBFTf8ldnX9TOmwx1HMNKBSB5Ros0J8v/rnkU4uBJZzzFcUYp/EC+euRbXyW5Jw3josA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=Py4WITlL; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 43NBTles002064; Tue, 23 Apr 2024 18:45:09 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= qcppdkim1; bh=1xuRdsc5E4JkoyPybqYXAta3WzudMMp2B+z34cEsg30=; b=Py 4WITlLZbKNlVN3Z/ZSEnXPWcH7dcbmKf9ivi43MP8B+NPxLUrJhYnWhcHWNVmGBG FOWOYa7I224Er6+JGviEfNsULYqw8HLLd6zCJbODLZqGKkSAduEQv0ZvQo60DHXs Dx0Q/1lIuBRi1CMOTQ96GDoGmpukg5BMcANrs1ww6FtSBOoJ/yLGQ/IFPQm6OWl3 qgO/AggpKAZuWWjNgz+orHpzYmkLiiZl8JOZ7IFYSDTj7mDUm6sIXEZTWrqIIq2B gifnRHuNczbw9jareruPuv7CB/2tl9O7IevOreQIDModOWVRzUJfAISCIQyMJ29e elq618z92dcAGcgIZX/w== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xp91fhusf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Apr 2024 18:45:09 +0000 (GMT) Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 43NIj80U027419 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 Apr 2024 18:45:08 GMT Received: from [10.226.59.182] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 23 Apr 2024 11:45:07 -0700 Message-ID: <88074e78-1dae-eebb-4e74-55644e1f3330@quicinc.com> Date: Tue, 23 Apr 2024 12:45:06 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH v4 2/3] bus: mhi: host: Add a new API for getting channel doorbell address Content-Language: en-US To: Qiang Yu , CC: , , , , References: <1713868417-37856-1-git-send-email-quic_qianyu@quicinc.com> <1713868417-37856-3-git-send-email-quic_qianyu@quicinc.com> From: Jeffrey Hugo In-Reply-To: <1713868417-37856-3-git-send-email-quic_qianyu@quicinc.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: _vGLPflRVeDPEx-JSCvGzkohwjndsoBR X-Proofpoint-ORIG-GUID: _vGLPflRVeDPEx-JSCvGzkohwjndsoBR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1011,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-04-23_15,2024-04-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 suspectscore=0 impostorscore=0 phishscore=0 spamscore=0 mlxlogscore=999 priorityscore=1501 clxscore=1015 malwarescore=0 mlxscore=0 lowpriorityscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2404010003 definitions=main-2404230043 On 4/23/2024 4:33 AM, Qiang Yu wrote: > Some controllers may want to know the address of a certain doorbell. Hence > add a new API where we read CHDBOFF register to get the base address of > doorbell, so that the controller can calculate the address of the doorbell > it wants by adding additional offset. > > Signed-off-by: Qiang Yu > diff --git a/include/linux/mhi.h b/include/linux/mhi.h > index d968e1a..cb3b676 100644 > --- a/include/linux/mhi.h > +++ b/include/linux/mhi.h > @@ -816,4 +816,10 @@ int mhi_queue_skb(struct mhi_device *mhi_dev, enum dma_data_direction dir, > */ > bool mhi_queue_is_full(struct mhi_device *mhi_dev, enum dma_data_direction dir); > > +/** > + * mhi_get_channel_doorbell_offset - Get the channel doorbell offset > + * @mhi_cntrl: MHI controller > + * @chdb_offset: Channel doorbell offset > + */ > +int mhi_get_channel_doorbell_offset(struct mhi_controller *mhi_cntrl, u32 *chdb_offset); Should have a blank line here before the #endif just like how the file was before this change > #endif /* _MHI_H_ */ With the above Reviewed-by: Jeffrey Hugo