From patchwork Tue Feb 13 15:52:10 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: 772320 Delivered-To: patch@linaro.org Received: by 2002:adf:9dc2:0:b0:33b:4db1:f5b3 with SMTP id q2csp324806wre; Tue, 13 Feb 2024 07:53:12 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXwxQljUxGRYFPpRgVxKiwzxWnfyCb4xKCrXYtxt6xr77xdqYwnr2JCHIKQwHOIo+c17jt7vlSzjzXpjTzL+IzV X-Google-Smtp-Source: AGHT+IHuR80S/o5BpQ0tCbFf88hbuo7CxrkPVz7KU4I5P96n5uW8BLUnFvD60x29CE8SebZi5o+t X-Received: by 2002:a05:620a:6004:b0:787:2585:66ee with SMTP id dw4-20020a05620a600400b00787258566eemr801783qkb.13.1707839592604; Tue, 13 Feb 2024 07:53:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1707839592; cv=none; d=google.com; s=arc-20160816; b=j+FqgCPys5yZR9sk1vB1Mrivr/wZbtQZq6P9s2bsJQFtPy4kSEcuR2fDer+oBLZteI uiDIFlef7jJOddpubmeu5qxpcRzwCMFyeRKJV65QNrC5P2x5S7APOlt5RRRDjQkJVCW8 mzva1Tln5zLKw9SLNeBfjw1gfACLQnpji3bwZmdFBszT05JNLogjOSyXFV0k39mF4c40 VVpE5KqromYhL0gahrVUqM4X9dA3d2u59M2LFfs3KrT8QGEBhR+5uNe2ij+TQR+YLk9L R9TklZDcSdYS0ZV9mByDKPMqDYrqPlh1OH/U2S8+3+V/+ShNL7KyElGBOITy1ZRYOzYK Dw2A== 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=xSsYQg4U6OTgmMC3iEdz8zOlXRVYqFoVVBPQrIMDRro=; fh=PMTrpPJ3coAe838GvqRksOuNJzUwNtj30bckcff62ZM=; b=siZMmKFiNoDU3j7+zDKzaChPrRo+O4maIeBH+MUrU2SD3MDEye+m5wi9wCO5aZyWH6 a9uGigQMcweCI3Ww7ic2ZR8XEyruozI4g0n9C9ST118Z1HEY1Vn4Ulh3eIT9bQRVU4b7 B+VWav7tShs8nrwpCxqJRFNYVCqqPvthnnjIlUCFNzURzEnUzuoB8FcvY3PiTG28Ma8W Je3Z6WGMHIV05quDHjRKDVn0AR8YFtZEPqwswRe+pFz2ARKB7k1GpSD/xX7VtMIie7US iFpeICwsxYYA7J7wHVMEDzEU4L7n9KhJ8RCHHfYD0qWQFC0wnQcmW1TfCauEbtOxWAaZ Wb+w==; darn=linaro.org ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tUNaMDNP; 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 X-Forwarded-Encrypted: i=1; AJvYcCXMYR+Osk1bIXaxdM5OLERjeTFJQgnIOY359zA8IrGU9TJyy9mf5ewyVaaY+kvojdiC1ZrA9WIoQdIJqAtPwFAM Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id s23-20020ae9f717000000b007859e24e632si8378207qkg.229.2024.02.13.07.53.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Feb 2024 07:53:12 -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=tUNaMDNP; 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 1rZv55-0000uu-2j; Tue, 13 Feb 2024 10:52:23 -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 1rZv53-0000nV-94 for qemu-devel@nongnu.org; Tue, 13 Feb 2024 10:52:21 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rZv51-0005hP-Cs for qemu-devel@nongnu.org; Tue, 13 Feb 2024 10:52:21 -0500 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-411c2f76308so4879415e9.3 for ; Tue, 13 Feb 2024 07:52:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707839537; x=1708444337; 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=xSsYQg4U6OTgmMC3iEdz8zOlXRVYqFoVVBPQrIMDRro=; b=tUNaMDNPZsIbcjKrGQqO5Y1qFPeVBf83uqj4zRrjgaCX/gaJun0a3IPduwUcrxAFcn bcQuBowVLOxEbxYHycuP1AHlgLE/UQ7FkmVVgaYGle+nN4rQxNRKtnS2k659XbqZ6sYM L/uloQjoW96XKmZyCu2BidNLUPWjRCybgu8jCZow8A6F53Nxs8mGfJmFhCa8vSBef/0k Nk2GD45PrnlrJSbVFNDgShr/E86nzecPG1eDfGC+57L9cy/0N/P7yXauY8K7pOEZjpDx PltIkFAnOQBzS8judj9RgUWDoJbktM24OSqNRUUCbzMVq9K2jqcvbgJIz04TrOtl58Vv R/YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707839537; x=1708444337; 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=xSsYQg4U6OTgmMC3iEdz8zOlXRVYqFoVVBPQrIMDRro=; b=BzS6Jr8uOXrXaZ47QlKnQqWy+dDe3FzBonzcUiG8wOeTZUarmD41hXsDXf9AGY9TW5 ZD8J7YbtT8imrkkXpCHfEj/cI1pB20uhv2MDAz8EWy+8gGgoM5Oj13lhWmvmjv+M8URt BAyIBD3JtBWfW12c8l8fvj6YkaxaHYcHvaQWsFjbYe2+3gxQwj15qPQrgRucAJQd8hHD RMQhaHEP+fZ3Dx11qmV4YkkZyeQbaTEwJqtJ8nIsUppI/6OWTpQsRYP5MGFGBBvMxkCk 1jRvD5PrdH38SDOW4xH5BvqbdCiRxmsduQUZJUkCP7uQNy8KLIVhTW+iEmXllOfVtgwO yP9g== X-Gm-Message-State: AOJu0YxQqfEN7rNuswucsllQyfynrX12DwwMjeBOrNOtCWMyLyEx6QuX 73pmM7ARpS+tqD4RxbS/2lafIb3uLqf9+ZlrgODGH2NYbaoP+LoY6J78NO38yc/+LBc3jNBvlrr z X-Received: by 2002:a5d:5988:0:b0:33a:f689:1bf7 with SMTP id n8-20020a5d5988000000b0033af6891bf7mr9251095wri.48.1707839537468; Tue, 13 Feb 2024 07:52:17 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXAG/VlkQjB9+ZR9V8U5bDEGjdaOL4GoCAFLfu+3iPA2uZzEGKuBIyg+8+VglZmEfUv6NrBWekiuT9/KOwV/DsugwlbGYOhCUELH5zmHRPlacdt9jfVrLUBpgdXxMdNipxE6iUdpRlTee/kfQapznE61A== Received: from m1x-phil.lan ([176.176.128.243]) by smtp.gmail.com with ESMTPSA id m41-20020a05600c3b2900b00411d0b58056sm766181wms.5.2024.02.13.07.52.16 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 13 Feb 2024 07:52:17 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , Gustavo Romero , qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 0/4] hw/arm/stellaris: QOM/QDev cleanups Date: Tue, 13 Feb 2024 16:52:10 +0100 Message-ID: <20240213155214.13619-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::336; envelope-from=philmd@linaro.org; helo=mail-wm1-x336.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 Since v1: - Rebased - Split I2C reset as enter/hold/exit (Peter) - Added R-b tags 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 | 47 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 40 insertions(+), 7 deletions(-)