From patchwork Tue Jan 17 20:16:38 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: 643412 Delivered-To: patch@linaro.org Received: by 2002:a17:522:b9de:b0:4b9:b062:db3b with SMTP id fj30csp1372171pvb; Tue, 17 Jan 2023 12:17:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXt95po5bXSBnHdsy82Dis68MZ67niDqoECGnf3ZauAqPaHAMBYGsTOm0A7xkS8W6t9AOycR X-Received: by 2002:ac8:550a:0:b0:3b6:3022:688e with SMTP id j10-20020ac8550a000000b003b63022688emr13049340qtq.53.1673986637973; Tue, 17 Jan 2023 12:17:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673986637; cv=none; d=google.com; s=arc-20160816; b=d9bFrNqu+ozdCJo+JvgbDwJ9ETyMiufBQLmbolNaZnDXRQN0V38g7mE8DH7Zjx8p3S BIPdeOwvjtJrlAw1xTfkqP+RCVYNN65x9kSpPaqKnxGimNCTy01antIw0ERygxiMTHIO u2v9v6lJJzIhtdBorA6iJXDgbI+3y1+jfdRILEApfqYsBomktknXqUy0eTQXJc+1W/VR gspLAoKYp35CYNcMPMCVRzoUVoeiZTtFJbA3pMVSH200SS+e8r/lMk+9AzRcOb1/WQ+G A1r/KJKzmaueBcCRaEOX7SicBUFqSRZRUXtPbhMPojaCEAVRdYEixaTiA2aZ/PS/roSI ii9w== 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=Y1QJd+rtKI9Yp4M7PcmRUuQ+kdiatTf3Upm4rybElsY=; b=ST9+81/PMsrUYaV7vWFkUJYCA9iwEPnQ70FHeniPXa4SymjmitWgrpX23rH0B8bW+L d6n6o38CCymD0LiGVj1yisIJMnC8+3AdYTNQxPXZan4Qf5yyJ1EekCEDAK3+nmfv81Tz HWjLutN8Wkp5ZR31QRQCFiUmKbYw4HLprCl4EOxEauvFG4NY3OM0i5Os+xzQF63hALcs 3e+jHiUHCkWEqmQpxTotOW2CLN3HwVcQgEe6ULBV/tQA/dPxAXxzc524jApGQlc6vTXp TnLvoom6wi7DnX2OqKgULV6VF6wl4QtyU3C2Kpx9DeSqxnA7ghN2fb+okD9L8YBGxajs RQOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YIkufVph; 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 u13-20020a05622a17cd00b003a542aad5a7si4883700qtk.697.2023.01.17.12.17.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 17 Jan 2023 12:17:17 -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=YIkufVph; 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 1pHsNz-0002tE-RC; Tue, 17 Jan 2023 15:16:47 -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 1pHsNy-0002sW-8U for qemu-devel@nongnu.org; Tue, 17 Jan 2023 15:16:46 -0500 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHsNw-0006RK-JG for qemu-devel@nongnu.org; Tue, 17 Jan 2023 15:16:45 -0500 Received: by mail-ed1-x532.google.com with SMTP id v10so45514618edi.8 for ; Tue, 17 Jan 2023 12:16:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Y1QJd+rtKI9Yp4M7PcmRUuQ+kdiatTf3Upm4rybElsY=; b=YIkufVphlhsSHXEPU1AMP/pNqEuo9GtV4dHbgUoi2onJ6VJSu7C2hZQ0Kn4xnWc93S SItDHOJB/70HKmDiORbDnKAGI/ouWVfZXmyJVu8Ql1XWY8+cDrCxPxmgVWvDotVD/tFy 59P7XdiiPjO+Tlbca04tD0t74csEE8r9mFZbpghNK/xQnYG388DsRRPdlCTr5vvcVxjd XANemTieb7FnHbfFvDpjTuIcuptFH5sGKL/VZZ6PkC7YsxoRcMjME4G104+TXsB+8aFX qsDqwRZUHGpMx+6qceE8YeTrTHqNeMsD2+WHMMXlUEMw6sgmm/IoTosAsCJEt7nMM3cZ NM9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=Y1QJd+rtKI9Yp4M7PcmRUuQ+kdiatTf3Upm4rybElsY=; b=EyqGNCz2IZUfcq3x38R9IunPKD8uLsL+PihBk5s7xTVhP2Fx3S9UBy4URUl5kpWMB/ esLdexJNMttPWx1JLtGxYk0JpcfuCPTpvVH5GzCfdyfJYZFqEZSbPbCb9zIwI3ag8qss zrEujHNN4K2P0ao16Zyb7AH5CsvFzFFLwmbSXRbI4p5V3qct0BobU9UZmoRRUX7fsPNU oOP5OVeVd3QY++lDih2JakZ+80hpodZiOHHfXqs3bYWvMZY93xzq9lkVhrm/oTXF0Efl Ki1I7bxDXD1m93dixDndtjSgHWYFpGdAbl0oDpoSZjvI3zOlkTz0SPEDMaRyk8Qvx0E9 9lKg== X-Gm-Message-State: AFqh2kqAcvWUvn8usBHx/QUbtOGsTeVJmp8htQImm1PKPcV/Ssh3azpz wUtqno5NyWXYxC2quGv2B+S3CnW5EGuoyEw6 X-Received: by 2002:a05:6402:449a:b0:499:d1ca:6d83 with SMTP id er26-20020a056402449a00b00499d1ca6d83mr4348830edb.2.1673986602749; Tue, 17 Jan 2023 12:16:42 -0800 (PST) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id b15-20020aa7c90f000000b004615f7495e0sm13289056edt.8.2023.01.17.12.16.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 17 Jan 2023 12:16:42 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, BALATON Zoltan , =?utf-8?q?Phil?= =?utf-8?q?ippe_Mathieu-Daud=C3=A9?= Subject: [PATCH 0/2] hw/ppc/pegasos2: Extract southbridge creation code to via_vt8231_create Date: Tue, 17 Jan 2023 21:16:38 +0100 Message-Id: <20230117201640.88365-1-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::532; envelope-from=philmd@linaro.org; helo=mail-ed1-x532.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 Simple refactor to clarify a bit the southbridge device creation. Philippe Mathieu-Daudé (2): hw/ppc/pegasos2: Extract via_i2c_bus() helper hw/ppc/pegasos2: Extract via_vt8231_create() helper hw/ppc/pegasos2.c | 46 ++++++++++++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 16 deletions(-)