Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp691279lqb; Wed, 17 Apr 2024 08:11:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXsAlQBtrTQWFatsk8tB+GFsVT+/AlV6Ox2mCpQ5w4AAw6t+CtMQlen6wgL4cIqPyhkgyMy/6vy/JWVLd1rQd2SVhal+iZQbhRbE7i3qQ== X-Google-Smtp-Source: AGHT+IEi1kJJGSXY3AI4i+RZhPuXJo0u5frM4hrqMW/6jN8rRmXE5HhcwRtezE+/nfZeKrpGBpHQ X-Received: by 2002:a05:6a20:9f49:b0:1aa:58c9:82b8 with SMTP id ml9-20020a056a209f4900b001aa58c982b8mr3948394pzb.10.1713366663071; Wed, 17 Apr 2024 08:11:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713366663; cv=pass; d=google.com; s=arc-20160816; b=VeoFzKC2SNDJUZGaqfTQb5vLuly3jGkcsjT0RBCXplHXSGPqemDVv4g0SNyqeIYqVY 746SBbXdwlv0xtlstFPL39+nfAcYAei8upWJRokU3pmZLYHqQDDeiVaDfnCo2wwg/HlP Hb+XEXKKmRCbLC6C9Odvh1hMsf1nEJJ+pgNbNKl0LGuLzgl7W4mvO517pKYjB6aM/1QL jgf2h/v70JqERs/C/Su1U9XDPp8Bk4cxO721eRewVmb80RfUMOqXmG1ZUir3sz49mm/X 49nprGyEc5AoNtSyFiHXex0jOf/DFGYBS9n/aGO+d0hLvcvHPfgimV9lIfX3FNGT4H+V /e1g== 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:message-id:subject:cc:to:from :date:dkim-signature; bh=8UKnGVeK7Zs1wLMs+d4vTBlW4EggcBJKMKjceYZ/DIo=; fh=QlPlYBaAbemo42ORS5Ep6sNtAp5ubEy46NUNZ/GNpYM=; b=FaNYVL5XkNyQnp+h/6EduAOzh5YPD9lgWl38mz9G5ND37/lQkmeEcswUrOAh5V6xA4 Szi50+T43ou/iEdsCQz7mTBtQoaa6tO+jvhUBPq5o46e+2WV6RcC6EvWYwF059QV8FIj VcVikJEzAk0xvx2p7bkoPCaDzKemt+lPGu70i/Ckt18ADtcNiOHNzcRpZXpWX9mUkgJn CqYOQV/I/CzvsC6G+3kEK/2T40fcZc9QSti9hQX9z7xYiZFK/zJ9IUxUEVTkmtyDDTXo EZLg2gBXIrBJZ6pzAHpROiGo11MBbPddT7o1BXbv8J/aagXKyl2L6tcqqq+/seHkwpzA NTLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mXN+IYIh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148765-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v22-20020aa78516000000b006ed2168d42bsi11580356pfn.87.2024.04.17.08.11.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 08:11:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-148765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mXN+IYIh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-148765-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-148765-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CF92D281522 for ; Wed, 17 Apr 2024 15:10:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC745146A9E; Wed, 17 Apr 2024 15:10:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mXN+IYIh" 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 D6DD4146A6B; Wed, 17 Apr 2024 15:10:07 +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=1713366608; cv=none; b=gvTlO3Y1gN+Mfa+CV3U2HmfuG/bUfQJX/WOKJkXpVlV0EHX/NMVsvWjK0IkEMfP5ppOyCREVIuw0J/YBmZdXQi4vYLtMVhHpAvMqAeOJocpefTsRiyqufp6qLR+7pi0KLR0DgvUNzwaFXv/lzQwUvpLbl+7ou7IIGdwq0bl25wA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713366608; c=relaxed/simple; bh=2iH29Kr9a60rYZ7alX/OpeMmfoox0uyeGvUK0iNJJpY=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=Qy0R6D/38k6IKOH2pEChB1PjEQJdVz2fY5YYci50PsZ+itY0WvoWVsRAuzBmgc3i0y385755uX4RjBp9q0WXEEo3CPiOhuk/SqW1Q+OyN2teyfDo7g9PUq7GF/3wrUVTxEkeZMoAom3aUGpkh0Md294ZePSh+/pC0UWbSPMXl24= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mXN+IYIh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CB22C072AA; Wed, 17 Apr 2024 15:10:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713366607; bh=2iH29Kr9a60rYZ7alX/OpeMmfoox0uyeGvUK0iNJJpY=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=mXN+IYIha8UjXHnSux0XtuNr2JVta+xWLsBARh9PMKPDNcRGFyYlHheo/cFBsQezS /H4F3RT6okPPgwNvH14/E7r46v0wjeZOX68dMgyu/E5NPFiPMR3rSSgl6Yh+vljx/t +G0Pg3nDnB7IxIXp7h+NlPHtcQvebKZTj3e+TN9C3WfoL3p5jFpyxv+WtieZmWkbtk nqM+FQInNEPtd6E1Im6irNC9RiRHtcWF60V58+ureU+JalQGjfLAkPfm8BpYTxZFgD ECaO/usrliaX8vMJM5k+BJu31IKiJKJlMcP2F+zyGgRQrLBXsy1vBTkT7l+UJwkyoI d3vGQizUBIEJA== Date: Wed, 17 Apr 2024 10:10:04 -0500 From: Bjorn Helgaas To: Frank Li Cc: Manivannan Sadhasivam , Bjorn Helgaas , Jingoo Han , Gustavo Pimentel , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , imx@lists.linux.dev, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v6 5/5] PCI: dwc: Add generic MSG TLP support for sending PME_Turn_Off when system suspend Message-ID: <20240417151004.GA202039@bhelgaas> 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 Wed, Apr 17, 2024 at 10:38:04AM -0400, Frank Li wrote: > On Wed, Apr 17, 2024 at 03:49:44PM +0530, Manivannan Sadhasivam wrote: > > On Mon, Apr 15, 2024 at 03:33:29PM -0400, Frank Li wrote: > > > + /* > > > + * Allocate the resource for MSG TLP before programming the iATU outbound window in > > > + * dw_pcie_setup_rc(). Since the allocation depends on the value of 'region_align', this has > > > + * to be done after dw_pcie_iatu_detect(). > > > > Please wrap the comments to 80 columns. > > New code style is 100 columns. does comments still stick to 80 columns? I care more about files being consistent internally than I do about adhering to a new 100 column rule. With very few exceptions, pcie-designware-host.c fits in 80 columns. I think there's no point in adding a comment using 100 columns. That leadds to either a window sized to accommodate 100 columns, where 20 columns are wasted for all the existing code and comments, or a window sized for 80 columns, where the new comment looks ugly. Neither is attractive. Bjorn