Received: by 2002:ab2:23c8:0:b0:1f2:fdbc:cb93 with SMTP id a8csp178633lqe; Wed, 27 Mar 2024 02:31:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVYYn17jxX+4HpboqBzrJSH2GI1DFxqnw70Nz52RHDMDkZooCuWTsh66dDJIxXsF2iTJiOzOs/f67lrdHs4BrSBFAjdhBGqZS40w/vXjQ== X-Google-Smtp-Source: AGHT+IHhkZqqUxwKxRdRK0FFOMXs5PnWoiA6tLp2rFGuM1E8h68WmkrkackHDza7c43nTbQkFFxJ X-Received: by 2002:a17:902:e5cb:b0:1e0:1bff:59e8 with SMTP id u11-20020a170902e5cb00b001e01bff59e8mr927385plf.20.1711531902921; Wed, 27 Mar 2024 02:31:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711531902; cv=pass; d=google.com; s=arc-20160816; b=gHVs9GT/NjAmqsfGNk9pPaOBNXpQDgzAKv6/f4be9YOUXmVSMVDOlZTSe92GfTkrVo wo2H5ORL9FsOMS4FNSfv3YvrZ8AvE9V2YQ/x2n+4sf8Rw8AN9vuH3C9XRfvbF9CpMX8G OMN+qm4TPRjJKLaMy0lVk7UALKBvksNzIaAIoTzuS27uljX6i/fCq2JFWTAmes8sSFWe WVHbFMI8SCPOHLQJcj43xlaTYTNfAwZzPTYNN8FHBG3Pf/R785cOOeSr7izmyt6uC+vl Xi7CTS63btXc4rwUNgXTjZlIC08CaD7p1M3a+242I6StxSoAkVM3iVZpUA8oNGT5Frza M5dw== 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=mFIeq2rRiY8WqXVke/uUYNI4+SZR1gOPxX20+WHNUgU=; fh=SPw2a/bkUfTbiw/bh72X9udpjNFWw39o/JDfNyDmjmM=; b=vzZGggn85eW7RxkYnVgs5OL8ySl2yQ6Q/t1yRdVsWsEWbIUii9vKpIj3Z9rjcxFJqQ Sw/05XWubWASerVHOHoKzD2spYWoFNumXqJI0YsiZ5oYJ44UhsgVCWhsL+ut3zitADNT dPmrny5GGalyUGRE0sFr5tTqRsgHTEBpLlZXuUgdKa4bdo84BKmzvAvvZnuO3LoEm4HJ EqlPJxT8ZVRUv/TSUp41wEG1vOeeoVPqhweB/CKlrla8M6yVYYQGWxQQA9UIjfQeRl0c +eafSMM9Jk5IBfJHfi0YYj8NQOPNFNPbDX94wte84aTa3aQvHWRyb62XqHZjd8OTkxNL t/6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mN+OaX8U; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-120615-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id a17-20020a170902ecd100b001e02cd75dfcsi9011785plh.464.2024.03.27.02.31.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 02:31:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-120615-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=@ti.com header.s=ti-com-17Q1 header.b=mN+OaX8U; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-120615-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-120615-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.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 59DA329B96B for ; Wed, 27 Mar 2024 09:31:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4A5F137702; Wed, 27 Mar 2024 09:31:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="mN+OaX8U" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 654361F606; Wed, 27 Mar 2024 09:31:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711531896; cv=none; b=S/9hRkvPqYiabb4U+bPa7lRBlvYd9UUGbiJc1KF5ZkBs5UFY71DiZJWGgAkwerFUj+MpSLxwthABOJNyjXzwrRELQu5eIASqizkJU0hox8Kz9N2XW1UDKHZ5A4sA2HzntG9cGaNA/Ieq6UG6/pKfLqe2C/Tok17qy6HK+rqfbPE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711531896; c=relaxed/simple; bh=LmzTj529SWaNQnWYqmZUkRoDPnws9jyPAxQhRljdGYg=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=aDNtRtbWOht2W+okBFSI5Vut+AJ/WdIEP5DxRwhwjrfnHSLCq0LGgJ8mdQ6yN9mBV2N8hDmrMXubhZY8W6v57YRjF8GTAGOWyH4S/SQcpbXHH1Lu00JTz8HzmH3GJY96Pb2monvoDOFgTcTDLEyhl7KQa5+loAkkd09p3PXN+WU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=mN+OaX8U; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 42R9VApg033380; Wed, 27 Mar 2024 04:31:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1711531870; bh=mFIeq2rRiY8WqXVke/uUYNI4+SZR1gOPxX20+WHNUgU=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=mN+OaX8UTonabTD9IAYNcXY0ilJxstmnMW6DJjXgo23+OYXMoo/1cMTC7MVlPz4WN DzSNuLBzlgtZak4XZLAaxhSURxCUFLQpO0pGgkUzV+8jPn8AhC92sF3pR0wsAjrqP+ Ts0XdYfn2FLlPlIZ0T/jIpNRpXtXm+b3GklR098I= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 42R9VA1f067486 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 27 Mar 2024 04:31:10 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 27 Mar 2024 04:31:10 -0500 Received: from fllvsmtp8.itg.ti.com (10.64.41.158) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 27 Mar 2024 04:31:10 -0500 Received: from localhost (uda0492258.dhcp.ti.com [172.24.227.9]) by fllvsmtp8.itg.ti.com (8.15.2/8.15.2) with ESMTP id 42R9V9Hj001289; Wed, 27 Mar 2024 04:31:09 -0500 Date: Wed, 27 Mar 2024 15:01:08 +0530 From: Siddharth Vadapalli To: Bjorn Helgaas CC: Siddharth Vadapalli , , , , , , , , , , , , , , Subject: Re: [PATCH v6] PCI: keystone: Fix pci_ops for AM654x SoC Message-ID: <49077b26-9ca3-4ef7-8b25-8c58adf95f5d@ti.com> References: <20240326144258.2404433-1-s-vadapalli@ti.com> <20240326232403.GA1502764@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: <20240326232403.GA1502764@bhelgaas> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On Tue, Mar 26, 2024 at 06:24:03PM -0500, Bjorn Helgaas wrote: > On Tue, Mar 26, 2024 at 08:12:58PM +0530, Siddharth Vadapalli wrote: > > In the process of converting .scan_bus() callbacks to .add_bus(), the > > ks_pcie_v3_65_scan_bus() function was changed to ks_pcie_v3_65_add_bus(). > > The .scan_bus() method belonged to ks_pcie_host_ops which was specific > > to controller version 3.65a, while the .add_bus() method had been added > > to ks_pcie_ops which is shared between the controller versions 3.65a and > > 4.90a. Neither the older ks_pcie_v3_65_scan_bus() method, nor the newer > > ks_pcie_v3_65_add_bus() method is applicable to the controller version > > 4.90a which is present in AM654x SoCs. > > > > Thus, as a fix, move the contents of "ks_pcie_v3_65_add_bus()" to the > > .msi_init callback "ks_pcie_msi_host_init()" which is specific to the > > 3.65a controller. Also, move the definitions of ks_pcie_set_dbi_mode() > > and ks_pcie_clear_dbi_mode() above ks_pcie_msi_host_init() in order to > > avoid forward declaration. > > If it's possible to split this into two patches (one that strictly > *moves* the code without otherwise changing it, and another that makes > the actual fix), it would be easier to review the fix. It's a pain to > have to compare the code in the old location with that in the new > location. Sure. I will do so and post the v7 patch. Regards, Siddharth.