Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1704444lqg; Mon, 4 Mar 2024 00:41:02 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWYZYRtmaEXKxfl8N/qpM8q0wZBRVNvjuwO5xMvl0aB2DHRlhSMwWWcUtpd5+wyTZzzgMb9jZ2j+cDdh1ErPqfeK12G6ZMv2ZTM7qqs2g== X-Google-Smtp-Source: AGHT+IEbFElLutHGzkgv7c0l0EIFM9Pu2nuUQHNGbLJntVY+bvkWtVhbajKW4280+nxtTr9qePVz X-Received: by 2002:ad4:5599:0:b0:690:4764:eff6 with SMTP id f25-20020ad45599000000b006904764eff6mr12934540qvx.6.1709541662718; Mon, 04 Mar 2024 00:41:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709541662; cv=pass; d=google.com; s=arc-20160816; b=hIhsYB6AO/6/zYL1ayDO+wv80APJuFhskAwfqR69N214ksSaAK3Cyh67KH/UAMhy38 mqlUGBTCvulNK0+9Z1ltFyARrRPFZi/6nKPsPChuzWG5urJaKuO9Y2JGYQmantuS9geg wPh+wYLhDczxtAaJ6M/Kj3svcwQ3IS8I08gawZP+fSwIr21yOEeEAmDjgmB9E/EHJtpY 7Mim+uFsEKSyDMGeiOqkpdgNRgR16v84biM4cV3ia90DAkE/iqYVSRE/3HzEsAZIwQKS AcSxUHhijXXNSzcYJs5mZ18Mey4wZh4l7GyM91QLW9qCPRSaD3XAlwJkfL4LFDd75Aoe pnEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xFHaiwEDasXCsb18V/itVgxqWJ4Rt36M4mtN+NzRrbM=; fh=/YBeIKg4KLQmjoiEC0aOF3eSXVRe47DdDj+pbM6KgLg=; b=de/hGKDs3BlO8e3XqryC29X793/Jm7MYmAS4BcPgErJV2BfERa3476IcpJT7Ad13l/ 1CF7IzyYwhoUDm6abPO0nF9C+HT094vRfFPr6m83pbZdplwU1/02ZnuK9THnSyD5ll1p FpaUWlnc/3ktxFxxmJtWhLvQ04irn3uSRaQ7e+JAXPqfchyMydjK1grV4cWBVdGOcTA1 isYVCl5eydq0n++Jwk+KaHsblbEVAxLojB6w/8z68dAzBfQIFI9UPaogCUfWiAkJ8Mc4 PvTokC1TSb4au/58KAA1gWYPDRLTW2V8IDigg92z8alKrfa7ZWAmucYBHoZqLPFM0o8u oWvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AIha+gAR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id qm5-20020a056214568500b0068edf664eadsi9096973qvb.213.2024.03.04.00.41.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 00:41:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AIha+gAR; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-90214-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90214-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 74C9A1C210A7 for ; Mon, 4 Mar 2024 08:41:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C76D1A58B; Mon, 4 Mar 2024 08:40:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="AIha+gAR" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2EAD519472; Mon, 4 Mar 2024 08:40:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709541650; cv=none; b=fsTyHO+pMVy9qlZbv8m0/xrhqvT/nGnsOlj05BjjflJWwZinFaYScJr5q4fJvkqlK6guwv6rG7ZKR98iyGFBYOiXLQd127clgYF23Pm9qHibE/01gtIzXGxxEEZ8V0tUUBNVJbwBnGrw+uapMw9askxwqLyXwpd7sEQHuGN98SA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709541650; c=relaxed/simple; bh=t1T3OPaWjo53wfG6TOrATqy44YsWokKu6HeHAougC1I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Viip6tdYtwNQ+pwkD2Xzue4CVUcEedHdLUxtbKAKYMS/nleisHs7GV6pO5GIF4Rp4RHyCea8k/NPi5/r4z6WD2y14cq+r5/CBXIfYd4he8PUGgEL+r/76lRQTTWH6Q+mbIHzwTJn6VWL2fAlHbTb8EvLvBew2OkbkmkaIfr2jAk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=AIha+gAR; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4C71C433C7; Mon, 4 Mar 2024 08:40:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709541649; bh=t1T3OPaWjo53wfG6TOrATqy44YsWokKu6HeHAougC1I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AIha+gARcNYuhSwcukKIYg4p45pb6A8Eb1BoGaDioSXtNDt/XHo9+tu0OWSVMTEDA TCdLZhy/DEYy3mXFG+TLdphs/qsaLNPSRkHtzvVQYJn2flmCpGyYwREyE7oQKo6+3B ab1V4gnRlHvDLwrqCQ2HaaJ/uW1j7jwnDDI/78dkQiPBsu5gqoaWB8AVtadiHrg7Kw weBRT0t9pBuAWt/8MA0WpUtAj0ffodEALaUXLIezNXPWFwitJn+nQL6uYga8eqMPRH 9CFfdeOxkoh47pFCQwDEodcKaXFs0+9NHo3NzvtQdxPprBAvT5REFms3RWYuvcrmdY vOUUDcyUeUSFA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rh3sW-000000006DZ-199L; Mon, 04 Mar 2024 09:40:56 +0100 Date: Mon, 4 Mar 2024 09:40:56 +0100 From: Johan Hovold To: Krishna Kurapati PSSNV Cc: Krzysztof Kozlowski , Rob Herring , Bjorn Andersson , Wesley Cheng , Konrad Dybcio , Greg Kroah-Hartman , Conor Dooley , Thinh Nguyen , Felipe Balbi , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, quic_ppratap@quicinc.com, quic_jackp@quicinc.com Subject: Re: [PATCH v15 2/9] usb: dwc3: core: Access XHCI address space temporarily to read port info Message-ID: References: <20240216005756.762712-1-quic_kriskura@quicinc.com> <20240216005756.762712-3-quic_kriskura@quicinc.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=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Feb 29, 2024 at 05:23:08PM +0530, Krishna Kurapati PSSNV wrote: > On 2/29/2024 3:17 PM, Johan Hovold wrote: > > On Fri, Feb 16, 2024 at 06:27:49AM +0530, Krishna Kurapati wrote: > >> Currently Multiport DWC3 controllers are host-only capable. > > > > I already asked you to rephrase this so that it becomes clear that you > > are describing a property of the current hardware (and similar > > throughout the series): > > > > https://lore.kernel.org/all/ZTI7AtCJWgAnACSh@hovoldconsulting.com/ > IMO, the statement is describing a property unique to current hardware, > that "If it is a multiport controller, it is then host-only capable" > > I used the word "Currently" to indicate that "Today, the multiport > devices present...". Let me know if there is any ambiguity in the sentence. > > In v13, I wrote: > "Currently host-only capable DWC3 controllers support Multiport." > You were right. It was ambiguous as it might refer to even single port > controllers. > > So I changed it saying all the DWC3 multiport controllers are host only > capable. > > How about: > > "All the DWC3 Multi Port controllers that exist today only support host > mode" That should be clear enough, thanks. > >> + /* > >> + * Currently only DWC3 controllers that are host-only capable > >> + * support Multiport. > >> + */ > > > > So again, also here, rephrase the comment so that it is clear that you > > are referring to a property of the current hardware. > > I put the comment this way to indicate that we don't want to check for > existence of multiple ports if the controller is not "host-only" > capable. We should only check for multport support only if we are > host-only capable. I think the statement clearly tells that "check for > host-only" configuration before proceeding to check for xhci register reads. Fair enough, this comment could be considered to apply only to the implementation. Perhaps the following would be more clear though: Currently only DWC3 controllers that are host-only capable can have more than one port. or simply Host-only capable controllers can have more than one port. Both of these also gives a hint that this is a property of the hardware. > I replied the same on: > https://lore.kernel.org/all/279a54f2-7260-4270-83c7-d6f5c5ba0873@quicinc.com/ > > And since you didn't mention anything else at this part of code in your > return reply in: > https://lore.kernel.org/all/ZTYyXhyZN3jBXEfm@hovoldconsulting.com/ I left in the following quote on purpose in that reply: > > Please rephrase accordingly throughout so that this becomes clear. Johan