Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp2731507lqo; Tue, 14 May 2024 07:37:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBnJinj9SGmayuum2kbBv/SVqe489j7wCv8yOtphvMjQW2ZrCI9F3zUGIBg/TyxMgDrYpVpamCrP5TKms/Bx6b+AIPkYluYvP6hPT3rQ== X-Google-Smtp-Source: AGHT+IEPxAogJoYyKlCoba4vIHqH42YEd/hNS0LPg5EL+7PLpXjjbG7YkBn8k9A5pdbEGa1Xd3/c X-Received: by 2002:a17:90b:f0b:b0:2b6:215b:bac8 with SMTP id 98e67ed59e1d1-2b6ccd80138mr11255900a91.40.1715697472921; Tue, 14 May 2024 07:37:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715697472; cv=pass; d=google.com; s=arc-20160816; b=rMWaJsONO8hsO8Wt3/2MuUWKqoDtSeEBTWd5hbgNipQHs2+vXuM9P3CrTQfbWad/yo 85cYj0wv8zxGIpldp5UUtvH0oTzB58UQ9G/SdHWLrRUO7P17fw6axx1yLnTHFhZFnEEi SAAu5JNlxfdd8IeCfjx7sG71EZuIEZig7TyaWRGFpVA/j9q8adhPTuvhcSPsAmE3TAJU XcPBGeTmlkoiWwUIplRrwRV9wOuDdxjtBqIPkZvQ/jVRafSQ13lg08YRuQMvqMaC38e9 Ws6levzc/LE8qk7USzLLFus/wRFRgbrJ09cE0Cfp1UpKYepG+Yxm7soXRz1Hp6MiC07L xlVA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=TAc7NjihDXzocbPFDcPShOeBfL8pHSiZ3S9lbKbtkK4=; fh=kR6Fz2JZydvgPl4K5n68ZOEQGeB0eVkqw8g71yQ1+sw=; b=XJXrZsI9+FdRP579Mh0I0CUN/RFoNmt0uDCSNhdpMhucFgn7n7aPQcNqB12Hf7mFSw fOHhYyrU+rg5AVY1HCFndUYqjWe7AqAppX246+P8iXjCyV5M+L1EnJPVPlojLxcezCq/ 9hmrJLAGfAaboKqV8F4AenXcuVPaoRieFtzCP/ARrWqAO41hOwTB+aE+beobM+mE3S+W KQJjobZStdi5fNvB2vNvHXOrLRrLMExPoHbF0Gw6A5ftZQ6YOPEU2Bt5xlLrmsUz1qbn doBHe0oPoZ82IqcMJs9q3nLbfmIyEImg0oPJZoagMbklSQXSC189lVFDBHoYqnxJiHix D0Ng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aBe7lPEQ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-178816-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178816-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b670f5b236si11584273a91.74.2024.05.14.07.37.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 07:37:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-178816-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=@linaro.org header.s=google header.b=aBe7lPEQ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-178816-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-178816-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 2989F283A4D for ; Tue, 14 May 2024 14:37:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E29343EA66; Tue, 14 May 2024 14:37:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aBe7lPEQ" Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (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 70830154C10 for ; Tue, 14 May 2024 14:37:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715697466; cv=none; b=gOS7bkpugyb77QYhvRupmNXBctEVLo1PKDY2aDrqhDYPw+0EwqrLnnkHJ9kFjkcBeQCviM0bJOFRDwnq8sg61StigeDol9UzFafmDdacZtKKUTg/67fLS00pX3nnwLnfD/bJGKSSjP/kiLXFVzHB12ahkqQh5F0fjYnvPL6BcpE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715697466; c=relaxed/simple; bh=cCN6oAFPt/mZTrQVhHoM8Poynt/Vme2RK/JjKPD/hGw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PQ5aC5HHUppGiisDv1kEAGrFTGnkjFeuGMpUW0jEZPlfyYEa+h2iA/NsFyy6Nezresk74IoNOlNTMHwXEU6AJpD1TpGS9KLgE6x4NPCZTp8MQdXAp8PCXIfPL2Rm4sbFI33Z7/yNB7UiS/oz3C5C0dhPvqyLvRPBXHuNyEiVLgU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=aBe7lPEQ; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-420116a6652so21006755e9.2 for ; Tue, 14 May 2024 07:37:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715697463; x=1716302263; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=TAc7NjihDXzocbPFDcPShOeBfL8pHSiZ3S9lbKbtkK4=; b=aBe7lPEQFgZdsmP2LG2EGU/JJdnmeeW3/YzPo6MHMTPP95csKglfgHUoFpWM6y4N4A gGROjzfvUS1eNecECCG/ccTfsX6JvW0dssXF8M1794/QZ6AIcB6k2Ghv/XlgMO0DVXrS il/hP49SHHwknWrJtdk3uc+u4S2PLuTbX7Eah7seO4REgoSTZ2/wa6J76Xc+bbrzbqNu NcIXqDLeigfqeL956XYkiSKJzUuar+M7URg7bQ7huL+BlGSQNMB2rEWSfWoel4CVLveu woUE2qmpoT6kaN4YREosN1G4Khv4LhblEOAfzwyIPIt0T6LLEqYsc1NC5VN0q5pp8e/u PStw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715697463; x=1716302263; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TAc7NjihDXzocbPFDcPShOeBfL8pHSiZ3S9lbKbtkK4=; b=ojnVVZgR3dRT0OQudw0/9W5DDr4otixWbzDIYnhkW5S3824CUC+dXqANFxHWd4Xv0D 2eXHdhCpLRvCnZm/yr61VwNNqrFO+xdTTwAZ201YpbKN6lmgRoE7r0gWS3PVyMjI8FuS zulVbw5/Kr5G3z8VTn9k4LHH1GkNBwphG1qEaX/p5C3kwxogJDrrYJKqacYnpOV2qCQj h0PzgDQOtSUGmp0y3WVIS1tu2j3hrENqUINh82EPeuYHiU6Ah4PzzTb4nCd7vHv9MGtk wgwL8uLF/+mUwYhHFg9Llr7PyUrEDd4YbC35aaq0YJ3t+PDyuP9k4C2u6JynyePRtlst hVtw== X-Forwarded-Encrypted: i=1; AJvYcCWhXd6Xw03SWfZ2tkSBa5us91+Rsx5eqh/zi8vf1iU9W35DIhP20JzeCgza7RWDAnEfPqmhtm+k21A7UIrFNvlDMYmN/RoIE4nNko2/ X-Gm-Message-State: AOJu0Yxvw6Xu3z+k7sRJu+qEgLJRwEnFyRPyL89aSmJ+kTkuFYwYa9Fz sEP+7xjapE9toUAhu0Sulnzj1sdsdEUrDNz2/J3t2l40bGkbzbV2FFIArPmV8Q== X-Received: by 2002:a05:600c:1c9f:b0:41c:35c:2da7 with SMTP id 5b1f17b1804b1-41feac551a0mr100665255e9.30.1715697462515; Tue, 14 May 2024 07:37:42 -0700 (PDT) Received: from thinkpad ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35045583669sm12283626f8f.106.2024.05.14.07.37.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 May 2024 07:37:42 -0700 (PDT) Date: Tue, 14 May 2024 16:37:41 +0200 From: Manivannan Sadhasivam To: Slark Xiao Cc: loic.poulain@linaro.org, mhi@lists.linux.dev, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] bus: mhi: host: Add Foxconn SDX72 related support Message-ID: <20240514143741.GA2306@thinkpad> References: <20240510032657.789629-1-slark_xiao@163.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240510032657.789629-1-slark_xiao@163.com> On Fri, May 10, 2024 at 11:26:57AM +0800, Slark Xiao wrote: > Align with Qcom SDX72, add ready timeout item for Foxconn SDX72. > And also, add firehose support since SDX72. > > Signed-off-by: Slark Xiao > --- > drivers/bus/mhi/host/pci_generic.c | 31 ++++++++++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > > diff --git a/drivers/bus/mhi/host/pci_generic.c b/drivers/bus/mhi/host/pci_generic.c > index 08844ee79654..0fd94c193fc6 100644 > --- a/drivers/bus/mhi/host/pci_generic.c > +++ b/drivers/bus/mhi/host/pci_generic.c > @@ -399,6 +399,8 @@ static const struct mhi_channel_config mhi_foxconn_sdx55_channels[] = { > MHI_CHANNEL_CONFIG_DL(13, "MBIM", 32, 0), > MHI_CHANNEL_CONFIG_UL(32, "DUN", 32, 0), > MHI_CHANNEL_CONFIG_DL(33, "DUN", 32, 0), > + MHI_CHANNEL_CONFIG_UL_FP(34, "FIREHOSE", 32, 0), > + MHI_CHANNEL_CONFIG_DL_FP(35, "FIREHOSE", 32, 0), This means SDX55 is also supporting FIREHOSE channels, which is not true I believe. > MHI_CHANNEL_CONFIG_HW_UL(100, "IP_HW0_MBIM", 128, 2), > MHI_CHANNEL_CONFIG_HW_DL(101, "IP_HW0_MBIM", 128, 3), > }; > @@ -419,6 +421,16 @@ static const struct mhi_controller_config modem_foxconn_sdx55_config = { > .event_cfg = mhi_foxconn_sdx55_events, > }; > > +static const struct mhi_controller_config modem_foxconn_sdx72_config = { > + .max_channels = 128, > + .timeout_ms = 20000, > + .ready_timeout_ms = 50000, > + .num_channels = ARRAY_SIZE(mhi_foxconn_sdx55_channels), > + .ch_cfg = mhi_foxconn_sdx55_channels, > + .num_events = ARRAY_SIZE(mhi_foxconn_sdx55_events), > + .event_cfg = mhi_foxconn_sdx55_events, > +}; > + > static const struct mhi_pci_dev_info mhi_foxconn_sdx24_info = { > .name = "foxconn-sdx24", > .config = &modem_foxconn_sdx55_config, > @@ -448,6 +460,16 @@ static const struct mhi_pci_dev_info mhi_foxconn_sdx65_info = { > .sideband_wake = false, > }; > > +static const struct mhi_pci_dev_info mhi_foxconn_sdx72_info = { > + .name = "foxconn-sdx72", > + .edl = "qcom/sdx72m/xbl_s_devprg_ns.melf", What is '.melf'? Is the firmware available somewhere? Did you plan to upstream it to linux-firmware? - Mani -- மணிவண்ணன் சதாசிவம்