From patchwork Thu Oct 19 13:09:15 2023 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: 735541 Delivered-To: patch@linaro.org Received: by 2002:adf:f0cd:0:b0:32d:baff:b0ca with SMTP id x13csp1506813wro; Thu, 19 Oct 2023 06:10:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwTzZw1DZzYFv5K5yNCpxOc1vlT0e01SfGniWtCakRWYMRbr+O8WvIGT+tluzgsp4bHI7W X-Received: by 2002:a5d:6788:0:b0:32d:8942:9ffa with SMTP id v8-20020a5d6788000000b0032d89429ffamr1557648wru.23.1697721044573; Thu, 19 Oct 2023 06:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697721044; cv=none; d=google.com; s=arc-20160816; b=eYEa4jBXShZRcMHyjsFq5gflQL/4Y0WRb2GOTMNMb9v5uc08myy6Qzxekmkrch++g0 Ztz5lNJWBFCwfG4fMrH8tiq9JM3O6v6Xp0E8YulLMcH/ycu6eHZd6BEFiBBbJXRRKMdV 6gLW6UuEdTD92UxP8z6IbYqF7rG4t1fZodBxbbmFscdjTbOGmWCBS6hbEj1ClyRt8jf7 zMPQFpRAb3ytl2mEcaSBjNoLsJng6LV1ylxr/gNtRZbbyYaRCSgAjEioASLtvPZxUYNk OtuFsgO2gjEkH4JSevPtbiJGDmjZHdl/FO82Bdak+XikYuWv5GETC8SWKY8Gc/gdDDYT 9qkg== 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=y6l2KIf5+R7TUFSxlxouVzOchcCkcjWpO60Z6OF//2w=; fh=rYBZhAJdgCvxZRRcO2tKw9iXjHkAG8ZfVdmqU/2KeAE=; b=lKF5REPzoNIxD7SGNfnQH98+8tgOSNKpjRcUJ8kP15CMqW8idPY/cAJ3WSTixOgyai wmrOH4XMLPYu41DnduyVfboFUzmzQtnUtUal/Qhc41vqqN5hQU3TspzGy7dr90LWPGJd M2QZ7bneJ5SP6D3OUud27E0YNM9rKd1Mox1W2L6AYlAo56mQvSz0XjyLsF6SPEZ1imOo FjOmnoFEn5beMhF7jpCAuLpD3mkvcy4dO5APlhvBBMX0XurxAWwZfUP183ZvgvaHgA2x GUd3bzZMRzT0+Zi/9EoLZ6dg8S/+2zNm0LZrs/PSWdYgUMiarl8aVLofwvCBYJiGnOj7 xe8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CWBT3U59; 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 a14-20020adfed0e000000b003143ad0fd0fsi2587623wro.848.2023.10.19.06.10.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 19 Oct 2023 06:10:44 -0700 (PDT) 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=CWBT3U59; 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 1qtSmk-0004fL-ET; Thu, 19 Oct 2023 09:09:58 -0400 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 1qtSmR-0004MA-1n for qemu-devel@nongnu.org; Thu, 19 Oct 2023 09:09:47 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtSmO-0007Bg-S2 for qemu-devel@nongnu.org; Thu, 19 Oct 2023 09:09:38 -0400 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-32d9552d765so6171780f8f.2 for ; Thu, 19 Oct 2023 06:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697720968; x=1698325768; 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=y6l2KIf5+R7TUFSxlxouVzOchcCkcjWpO60Z6OF//2w=; b=CWBT3U59eAnGzhsmh+wpvr+Yb0olkpT7B5vR0dTI9d6bKWaVJxzDZhaGmjXCSWFgE7 v66wN0GmZvSLdLa1ukRyE+FLx+kqzY6KYyhnpPtKeZA8xMOkz+Xf0cCKhWt3OFAVoy5F cdSVDPcmzpB3DPnh4o5b/3N2P25Xqi+Dcsi+iuC5HbNcLAZiswZ/58ZzqDzPO16FnuKD 17JNxxZXs1QMGX5NbN1q1hoYjXiJm1Zgd21pWNJ1N1P5mD1wLqBGPrlcvXlSFIU0TcFe 0srSdLiVWP3kyWoTp5F8iTvHCbLwPg91GuHf+zKN/4MXyjaO85NtBMCQfu+0GkbaiKKG 5vPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697720968; x=1698325768; 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=y6l2KIf5+R7TUFSxlxouVzOchcCkcjWpO60Z6OF//2w=; b=JYHDc5X9h8fhoY/j8hVysvNR9BuTvnJ0gZigRCkkJTjgdtjEMIsuHqSoXgZvVluTYW OxMswtuFBZfTukw4yoivykaoB68pTJ3PEMwu6SWxlcZ80bx1wgE/AZVjA9z1GL5EKskm SqPNpHpRZMIyzNtGHdDcMHYOfEejzMjdIpQN/Gli5a6tlZX5nXxWJSa7XVwzOqqoQ3Q+ zaWcPrFGPeUHSzgK3NOutodZuOO80/kTn3rdlY5glfxyS0MeHAeI09helY2U260/fJKX NtwAcyqhcPqlujIEzOB50BcktABU2fv3M2JyMYHahJarWu5uW6wF/iLYVwYZjBWaa6o7 YpiQ== X-Gm-Message-State: AOJu0YzsXcqf+GrfjKeDAC0fwPyQ1xXD1oZbmZf190wKoOE594yXErmu 5WeKExCP5DkSZHgnw2XjRiLxKCl7NU0L812/6oOEvA== X-Received: by 2002:a5d:6583:0:b0:32d:7efc:7e1f with SMTP id q3-20020a5d6583000000b0032d7efc7e1fmr1372866wru.71.1697720967866; Thu, 19 Oct 2023 06:09:27 -0700 (PDT) Received: from m1x-phil.lan (176-131-216-177.abo.bbox.fr. [176.131.216.177]) by smtp.gmail.com with ESMTPSA id v14-20020a5d4a4e000000b0032196c508e3sm4397656wrs.53.2023.10.19.06.09.26 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 19 Oct 2023 06:09:27 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Peter Maydell , qemu-arm@nongnu.org, Thomas Huth , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 0/9] hw/arm/pxa2xx: SysBus/QDev fixes Date: Thu, 19 Oct 2023 15:09:15 +0200 Message-ID: <20231019130925.18744-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::433; envelope-from=philmd@linaro.org; helo=mail-wr1-x433.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 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 Hi, Extracted from a bigger series which enforce QDev state machine (qdev instance must be realized before external API is used on it). While here, pxa2xx i2c/intc devices received some qdev fondness. Since v2: - Fixed i2c_init_bus() call in pxa2xx_i2c_init() (new patch) Philippe Mathieu-Daudé (9): hw/sd/pxa2xx: Realize sysbus device before accessing it hw/sd/pxa2xx: Do not open-code sysbus_create_simple() hw/pcmcia/pxa2xx: Realize sysbus device before accessing it hw/pcmcia/pxa2xx: Do not open-code sysbus_create_simple() hw/pcmcia/pxa2xx: Inline pxa2xx_pcmcia_init() hw/intc/pxa2xx: Convert to Resettable interface hw/intc/pxa2xx: Pass CPU reference using QOM link property hw/intc/pxa2xx: Factor pxa2xx_pic_realize() out of pxa2xx_pic_init() hw/arm/pxa2xx: Realize PXA2XX_I2C device before accessing it include/hw/arm/pxa.h | 2 -- hw/arm/pxa2xx.c | 17 +++++++++++------ hw/arm/pxa2xx_pic.c | 38 +++++++++++++++++++++++++++++--------- hw/pcmcia/pxa2xx.c | 15 --------------- hw/sd/pxa2xx_mmci.c | 7 +------ 5 files changed, 41 insertions(+), 38 deletions(-)