From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 44213C77B73 for ; Thu, 20 Apr 2023 19:46:32 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DC6B786346; Thu, 20 Apr 2023 21:45:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="C/TqyRNx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A8A8C86333; Thu, 20 Apr 2023 21:45:47 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 46CEE86343 for ; Thu, 20 Apr 2023 21:45:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D23B764B99; Thu, 20 Apr 2023 19:45:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 217CCC4339C; Thu, 20 Apr 2023 19:45:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682019941; bh=6UkoYOh3Jjt6/HOWv32dOQWINmDUdz32/0jSuRR6LAc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C/TqyRNxJgCVhq4NxBOGuCsOdsAaY9QNvgMeNvGC5KRNCH/+3n0F2RpX5LFrca7lQ k5cxyyICcno6TzYMYbzVulHWFXEU2uAwvSqKUA8Kprkk69y8tGkG8pMFXj07y0A85S /PSEEr8OE5o6IYeXnn4ftiF4gJyHdnf+Qix1i2Cpfi4sMKZGoCt0RBNAixLPY0BWtL Kx6GcWmresBUbHT4v0Zf+9eHBSrofhwEW9x0CAzjpAVS5FnBqIr1PcvOp4BEjlp/xo 015iBIOPr5u9NqALPntLnAqU9egQp87koO3KqlY16+ZBelqOEM/3MrUL02jAiTepim T6Qj3D6gQ+lWg== Received: by pali.im (Postfix) id 860E72317; Thu, 20 Apr 2023 21:45:38 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Heiko Schocher Cc: u-boot@lists.denx.de Subject: [PATCH u-boot 3/3] pci: auto: Remove PCI_CLASS_PROCESSOR_POWERPC autoconfig case Date: Thu, 20 Apr 2023 21:44:25 +0200 Message-Id: <20230420194425.25224-4-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230420194425.25224-1-pali@kernel.org> References: <20230420194425.25224-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean PCI autoconfig case for PCI_CLASS_PROCESSOR_POWERPC just prints debug message and then calls autoconfig setup code like for any other standard endpoint device. We do not need special debug message for it, so remove this case and handle PCI_CLASS_PROCESSOR_POWERPC via default code path. Signed-off-by: Pali Rohár --- drivers/pci/pci_auto.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/pci/pci_auto.c b/drivers/pci/pci_auto.c index 14fd3bbf679e..01230360bad2 100644 --- a/drivers/pci/pci_auto.c +++ b/drivers/pci/pci_auto.c @@ -580,10 +580,6 @@ int dm_pciauto_config_device(struct udevice *dev) break; #endif - case PCI_CLASS_PROCESSOR_POWERPC: /* an agent or end-point */ - debug("PCI AutoConfig: Found PowerPC device\n"); - /* fall through */ - default: dm_pciauto_setup_device(dev, pci_mem, pci_prefetch, pci_io); break; -- 2.20.1