From patchwork Thu Jun 25 06:07:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amitay Isaacs X-Patchwork-Id: 1316737 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49sqLq0W5cz9sSJ for ; Thu, 25 Jun 2020 16:08:03 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=ozlabs.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=rWPpxSlh; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49sqLp56P2zDqjH for ; Thu, 25 Jun 2020 16:08:02 +1000 (AEST) X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49sqLj626QzDqgb for ; Thu, 25 Jun 2020 16:07:57 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=ozlabs.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=ozlabs.org header.i=@ozlabs.org header.a=rsa-sha256 header.s=201707 header.b=rWPpxSlh; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 49sqLj3qT5z9s1x; Thu, 25 Jun 2020 16:07:57 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ozlabs.org; s=201707; t=1593065277; bh=GDOdwxsSivsSuN6IKkw8tsGE3liNsYO0grqESGiMJ8s=; h=From:To:Cc:Subject:Date:From; b=rWPpxSlhZSJRakiYG7ZdRrWS99sp0S7wONahOvmfBuUUPRLyIujb6/s5cHx2idIsR 340Ffq4DD/wNySRgiJOGhYfVK75Qz9AzVERR5jNIIUmodcDZdaeVt5oCjQhyWEseXx QNdgP4DTm5NZAE716rr/jfYJ/FHdufxObal8+f+YM8+pYI3EB1XUlxPTEYDCS/ctT3 hIy2+TM0VC0SPNs/Z0T8jnf6m6DN1XbMArLv31OIhP3K5b/ozjiyIvNxqnAk9RNMs4 URrmIkLx5lH/Tz/qDQXkAe0mbcMfSGX6hGeR9GjvTT77fixjT6UzV01+pQZRZN4AAK bxZ6PMg9a6sHw== From: Amitay Isaacs To: pdbg@lists.ozlabs.org Date: Thu, 25 Jun 2020 16:07:53 +1000 Message-Id: <20200625060753.276825-1-amitay@ozlabs.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [Pdbg] [PATCH] libpdbg: Auto-detect using bmc_target() for SBEFIFO backend X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Amitay Isaacs Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" Signed-off-by: Amitay Isaacs --- libpdbg/dtb.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/libpdbg/dtb.c b/libpdbg/dtb.c index 6d9b182..3d62fb6 100644 --- a/libpdbg/dtb.c +++ b/libpdbg/dtb.c @@ -417,21 +417,7 @@ struct pdbg_dtb *pdbg_default_dtb(void *system_fdt) break; case PDBG_BACKEND_SBEFIFO: - if (!pdbg_backend_option) { - pdbg_log(PDBG_ERROR, "No system type specified\n"); - pdbg_log(PDBG_ERROR, "Use p9\n"); - return NULL; - } - - if (!strcmp(pdbg_backend_option, "p9")) { - if (!dtb->backend.fdt) - dtb->backend.fdt = &_binary_bmc_sbefifo_dtb_o_start; - if (!dtb->system.fdt) - dtb->system.fdt = &_binary_p9_dtb_o_start; - } else { - pdbg_log(PDBG_ERROR, "Invalid system type %s\n", pdbg_backend_option); - pdbg_log(PDBG_ERROR, "Use p9\n"); - } + bmc_target(dtb); break; default: