From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 B5301204594 for ; Mon, 3 Feb 2025 16:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738601981; cv=none; b=Lw3fZQ/9j4vBzI3CWHnTo68AHjHhh6OBcwitUd1LbI+Ii4qjKjC/xQ9efLDeLvxA5VYZgCWYYMosHb7acJ1tx+jzVcY9X70MMsDV6HjF/k4HYyVayoaGNqcIeoKD2Q9+hKjv9xj0ETAvrxGcsAGKPVLr0PJB6js9HYJDloJroZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738601981; c=relaxed/simple; bh=jLGNywigFGZZFI+a00xhq8nTW0MVgJVmbi8nC6Ol0N0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dbl518+kGMmu+IMYlOBZ3P2eWLUt+bbL0f6BiRzwci9/gGRR1tLHNXshZqBzpNKEs9acuxLUOSxd+hEtsg97RQPPvbEGh7MPw4J/2XADfywy80KWKLVh+fJWSa5OOzLUSjcEcs4A+nA8fT0gZ7U4OGlg/WVzbSxGZNobwVgbU1Y= 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=HtRP0gvy; arc=none smtp.client-ip=209.85.214.182 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="HtRP0gvy" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-2162c0f6a39so99095555ad.0 for ; Mon, 03 Feb 2025 08:59:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738601979; x=1739206779; 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=7zrpvrygZLQjrM3HtWYch8S/JxCN7cSqyUAsI5EVA/A=; b=HtRP0gvyOvxPkm73VDUpRwLIdMOMpkd1+VQWm26TW6zQuzm+kcxKQMi1lpUkcA4oKW 2hxIIAPyKQvpS7UlJB7QKo5F5TVL5IGvJdUl4DIsxTh8xEvEmxuVRYliWpXHQc6tdswH kKEuN/UmNF8L+fHvIYDJaQI7yrJBHt/HW8J5jCUgGIcg/zQ0LOfskpp0jXeTlo5hZIo1 wGAs0rcDtUG/vY/k02GK22BzBVYDnaJKfTcYXi26SLGrmI4/BR0ZAANN8MivBs/KAmA7 1r2lSrAuloaum9TA/C8R0/JuLL8+PjLfB11r0EC0ktcJ/+c0QnJnEAuzVsTcVdstRZ8W fm9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738601979; x=1739206779; 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=7zrpvrygZLQjrM3HtWYch8S/JxCN7cSqyUAsI5EVA/A=; b=WzT5X4V2iXuRYoGb/2/HKHTU37oai8IgxntpevEQHoSwdk38A8+E8whcJrZUktqt9j UXFEnRI7nDlJf6vLjU8oJRE++ycG7BWQZrfNhefdXvBJm1dxN3mmdsZIWWGAnQmIkoUT V730geO7MNIt13DB0zweyjYXeWTLl0stpXb+A2cwaTnQ9NlFlTbKME7tZeqyfIEWvTjR w//317IitO81WU2/7umjO7QjfRPDmEyrm56mH22Ijk2iimPwy+frP9CXUT9SAjd2dB9I MdapjI3AtFHaJwOiF1DJpPa9pRQiZ/JfGuDCbgb6ZALowp5eesZprkf6/DU1A163j7V3 jgLQ== X-Forwarded-Encrypted: i=1; AJvYcCX7Xqn/V7apJUsSg4tylsOebldNIAqlRd8bPrKO663pHk/AH/VmwsZhfQuKHHFQnybjSyhSDJMNK0SjjQ0=@vger.kernel.org X-Gm-Message-State: AOJu0YwBSaBvbAECYyGIZ+fIkDF8NgehdmxfFQWBNrN5tLPO49hJws6+ 4FMq4xmkOa+cxYyVYd5tdsrss6+gk9D1dreZYkAaqx8cyF5pUUWQLg8wH5RW4w== X-Gm-Gg: ASbGncv21mQMCJJNahx/7Mr7H9d0g0NmWOu+0uKSCGAhgnGwPDxXyzNf5DfRK1kQ+8I Pq5lVLPj97UdKTaYEd2uM/Rws1DJSoMLyvURWxDZPHNZ2dOFJPAc36LMC5fYbl8w6TwY37011HY Sck0MbEPrLHpfu/BkKqfvbaAya9oUFbzKE1lH/zYrGypvQE8Yb8XxULkIPiiFAThHdpy/UHfPOm uDG+NpVEdH05vL5DkJGJTXFgZfgGKO1K9jdBDkNKih+YN8xGbeOKh4YKVD8wVZWjbkjkJoKVhx4 j1jNoDSS57eB4Ko29hG9BQPlQw== X-Google-Smtp-Source: AGHT+IESJb6dkF+TVNR/mG5DUGCPCXithT7+mpqAigDM+8DjF/8wG9pZcbrD/g8CmSauk865rcWZrQ== X-Received: by 2002:a05:6a21:78c:b0:1e1:ad90:dda6 with SMTP id adf61e73a8af0-1ed873bed0bmr31925457637.20.1738601978734; Mon, 03 Feb 2025 08:59:38 -0800 (PST) Received: from thinkpad ([120.60.129.34]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72fe631c021sm8603327b3a.6.2025.02.03.08.59.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Feb 2025 08:59:38 -0800 (PST) Date: Mon, 3 Feb 2025 22:29:32 +0530 From: Manivannan Sadhasivam To: Niklas Cassel Cc: Vidya Sagar , lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, quic_schintav@quicinc.com, johan+linaro@kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, treding@nvidia.com, jonathanh@nvidia.com, kthota@nvidia.com, mmaddireddy@nvidia.com, sagar.tv@gmail.com Subject: Re: [PATCH V1] PCI: tegra194: Add support for PCIe RC & EP in Tegra234 Platforms Message-ID: <20250203165932.72kezmi3dtqpytvg@thinkpad> References: <20250128044244.2766334-1-vidyas@nvidia.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: On Tue, Jan 28, 2025 at 01:04:32PM +0100, Niklas Cassel wrote: > Hello Vidya, > > On Tue, Jan 28, 2025 at 10:12:44AM +0530, Vidya Sagar wrote: > > Add PCIe RC & EP support for Tegra234 Platforms. > > The commit log does leave quite a few questions unanswered. > > Since you are just updating the Kconfig and nothing else: > Does the DT binding already have support for the Tegra234 SoC? > Does the driver already have support for the Tegra234 SoC? > > Looking at the DT binding and driver, the answer to both questions > is yes. (This should have been in the commit message IMO.) > > > But that leads me to the question, since there is support for Tegra234 > SoC in the driver, does this means that this fixes a regression, e.g. > the Kconfig ARCH_TEGRA_234_SOC was added after the driver support in > this driver was added. In this case, you should have a Fixes: tag that > points to the commit that added ARCH_TEGRA_234_SOC. > > Or has the the driver support for Tegra234 been "dead-code" since it > was originally added? (Because without this patch, no one can have > tested it, at least not without COMPILE_TEST.) > In this case, you should add: > Fixes: a54e19073718 ("PCI: tegra194: Add Tegra234 PCIe support") > TBH, I don't like muddling with Kconfig like this. Ideally, the driver should just depend on ARCH_TEGRA || COMPILE_TEST and the driver should be selected by the relevant defconfig. And this is what all other rest of the platforms are doing. Why should Nvidia be different? It makes me feel that this Kconfig dependency is used as a workaround for defconfig updates. - Mani -- மணிவண்ணன் சதாசிவம்