From patchwork Tue Jan 30 19:03:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 768102 Delivered-To: patch@linaro.org Received: by 2002:adf:ee41:0:b0:33a:e5bd:fedd with SMTP id w1csp1525310wro; Tue, 30 Jan 2024 11:04:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IFSOLRrk8FsHNKLNILzw4fPLu2nb4nrfFnUEfX0aU/yQo2O9zB96s4o6F1vn5b0AOFJUgjE X-Received: by 2002:ac8:5705:0:b0:42a:bb18:989e with SMTP id 5-20020ac85705000000b0042abb18989emr2103081qtw.56.1706641448721; Tue, 30 Jan 2024 11:04:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1706641448; cv=none; d=google.com; s=arc-20160816; b=gf+FjtV/miRt59NSyxv95/cnWOXfrwYTQx7A0j5Fm7DKXEQdqYbw5S7scWWdGDb48b nke2lWwGF4VdHUi2dtY8woV+5Kh6Wf6ajnEGeulhZFZn+rS/hR3kS/Wnju7KDs5dCA02 36d0v/bndkORZBtNQYbnbbKHpcC2s6+6PGq+JCtKZ211FRzQDxme5/cm2dmOVkKdal6i UOD0VBMXrSbAWsU5C8drSmOUMVwpaoKrDDiFYRgerGcf/lHK1QETRCbVMA17Sd8jcsvB DN0K5qIwBdY8YYX3Rd2SRTOBdczPBLbqEOVoRlDg0v5knFTS7MKbhu/GtyZ/IRZlnGlt qHqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=gE4N+SZz6g2Nc8XtfAugEaqTsmycgrTHLFCKHFIc7Ik=; fh=SR+8DozJdQxNforhpK7RQJlJqxcnmmBQq9YEbztxGAo=; b=N2KlSyBGvMBR48bYO9bwSzprQGlw9rpuL9DQ6fm3UWNJb0Dhapx22wUnhUMxC+m40C Cs6chB3ZSbl8ZDbDyhZoasCmu9tOrOXmB0ktrQ6+2UlUf2ysTJj7ChZGL4TPYqUen2cI 3npcU++lqj1arML9Vp2ZEHLdG86CwNzeWJBmEIaMVDIlZFKVYweJkfLO6rywhJMaF6YK 3IvqE6z87RDufNHpAba9EdWwEzNQnxlqsY+a7C279eV37UTYBsDJQ1tDIeGPMUooZXxs KKYFC8UV9FKdw6Vn6THgjJk31vXFot59GLIe0xs7b3p9p7FwihTsd5oZuUU68d/xLkQc GKZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zpzCG/I9"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d7-20020a05622a05c700b0042a29bf9bcesi10767806qtb.725.2024.01.30.11.04.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 30 Jan 2024 11:04:08 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="zpzCG/I9"; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rUtON-0000wN-T3; Tue, 30 Jan 2024 14:03:32 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rUtOL-0000vf-6F for qemu-devel@nongnu.org; Tue, 30 Jan 2024 14:03:29 -0500 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rUtOF-0008UA-Cw for qemu-devel@nongnu.org; Tue, 30 Jan 2024 14:03:28 -0500 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-510f37d673aso3875276e87.0 for ; Tue, 30 Jan 2024 11:03:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706641401; x=1707246201; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gE4N+SZz6g2Nc8XtfAugEaqTsmycgrTHLFCKHFIc7Ik=; b=zpzCG/I9dy1Hcdc3hMSZ6GgTU3Pvw6s6oqSv+mqUnh14mStgv11gIGppuEaqPTFjJL xUeRIVhxidKbJQyRLZejDhVWW6tuy5e+kjnXMCqMsjU4ySbhiKWhaNk+vdAYg4fAfWlo 3RgemX5iogntu2Y15GPRlBllhvgenHCsC/K2NhDxNZVXININ7bsKCYkKBqEMO0x2F4eI 0ZnddZMJ38P9Q8DRqFblqnX5HvyRyH3gyK3UACR9KH5TTkgPpE1IW2OxDcSExOPVqfOv HoxLmLWAO8hjy7ipI/hb3ff9iwwFmMtdjRc1IpS1GbhKKibiLJYMB+yZN+MHFzdaBO0J EQkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706641401; x=1707246201; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gE4N+SZz6g2Nc8XtfAugEaqTsmycgrTHLFCKHFIc7Ik=; b=k+hVViRt7iS5JOUBkr9bORAE8bjdhQXch2PVgvmibprZ44IA483DMimH0JxUpmv3NC ADDiooL45dYaJCZeWw6LcrJoasPYe0Hh2QG7CfrijjtNXvhYW2Xmcw+Wv2JgmAVJFzfF pKsozh8/wXInACUoHE3oGA+86QGQTanxfo0UUTXJuojmvn37vaRHxA50tkywV1OVTaOt oqVkHrpEnNtHn0sB7L+VXXJ4cjXYnH0La4i+bVioEyxF0qOBDEZkHkKX/1sLMnCNFndg w7sD4nJlDU+jiDodf9+ZqvXZP/OLOXvZi+r66gpSHTZpeT2nYSIjtrv3W+zDrNvkKEJW j1ow== X-Gm-Message-State: AOJu0YzWx/8BiKRJW1JY8/1F94HsZb7VjlK7RaL6i3+nf3D/FEYJFx19 aStRV0LsTWmP4nnxnZzInKUEg75SUvH6uYvvtt/K7HDJmG92+Imc7lk1TMkMy4POPUTqHgFnmAu x X-Received: by 2002:ac2:47f2:0:b0:50e:7702:a189 with SMTP id b18-20020ac247f2000000b0050e7702a189mr7185145lfp.22.1706641400804; Tue, 30 Jan 2024 11:03:20 -0800 (PST) Received: from m1x-phil.lan ([176.187.218.134]) by smtp.gmail.com with ESMTPSA id t5-20020a170906a10500b00a35cf6727c1sm2179896ejy.105.2024.01.30.11.03.19 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 30 Jan 2024 11:03:20 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Manos Pitsidianakis , Markus Armbruster , Gustavo Romero , qemu-arm@nongnu.org, Peter Maydell , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH 0/4] hw/arm/stellaris: QOM/QDev cleanups Date: Tue, 30 Jan 2024 20:03:13 +0100 Message-ID: <20240130190317.25692-1-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=philmd@linaro.org; helo=mail-lf1-x133.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Gustavo wants to access the QOM path of an input IRQ line from the NVIC, but since the device is orphan he ends up with this nasty path [*]: -device ivshmem-flat,chardev=ivshmem_flat,x-irq-qompath='/machine/unattached/device[1]/nvic/unnamed-gpio-in[0]',x-bus-qompath='/sysbus' Add the missing parent so the tree is now: (qemu) info qom-tree /machine (lm3s6965evb-machine) /gamepad (stellaris-gamepad) /oled (ssd0323) /peripheral (container) /peripheral-anon (container) /soc (container) /v7m (armv7m) /cpu (cortex-m3-arm-cpu) /unnamed-gpio-in[0] (irq) /unnamed-gpio-in[1] (irq) /unnamed-gpio-in[2] (irq) /unnamed-gpio-in[3] (irq) /cpuclk (clock) /nvic (armv7m_nvic) /NMI[0] (irq) /nvic_sysregs[0] (memory-region) /systick-trigger[0] (irq) /systick-trigger[1] (irq) /unnamed-gpio-in[0] (irq) ... [*] https://lore.kernel.org/qemu-devel/20231127052024.435743-1-gustavo.romero@linaro.org/ Philippe Mathieu-Daudé (4): hw/arm/stellaris: Convert ADC controller to Resettable interface hw/arm/stellaris: Convert I2C controller to Resettable interface hw/arm/stellaris: Add missing QOM 'machine' parent hw/arm/stellaris: Add missing QOM 'SoC' parent hw/arm/stellaris.c | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-)