Received: by 2002:a17:504:3c0d:b0:1be9:327d:8ee3 with SMTP id y13csp946403nji; Wed, 16 Oct 2024 14:45:15 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVfrFrH93KVZ2KgLYjAWvzLBkqWhOFq0q1i+Bz8yqUr7ToSkTqff3bcPdTBvntlDAntBL91eM76VO3a6Q==@linaro.org X-Google-Smtp-Source: AGHT+IHpvWosUmG3J9Wu41XJz+bKuvf/9dpJlPIJMfXignuJp3oPhn3Y+iD0cnRz2U6tA83Fe+V9 X-Received: by 2002:a05:620a:40cd:b0:7a9:c24e:4df8 with SMTP id af79cd13be357-7b141875805mr884224785a.44.1729115115259; Wed, 16 Oct 2024 14:45:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729115115; cv=none; d=google.com; s=arc-20240605; b=eQUpJFzNXi4CT8Pn1IKyoJt2lqCDgAOFhw6dOs5jDaEFGSP+cTQNE4RxFozhsWhP4A jP8gJboQCQ+CrA/sLohKpepOBOxaMHqO/cRwLyQ8MsBWaPYzA3GjPEubHVUc65QJK+rL jmyM9NI+6vS2tBCytldym058kES2AArWwPm0k1+0GkOJg/XgF0eHEhOEzPEeBpcy7lgJ /xs07HD6g86tmQAE3CZqigels7X6w+8SnVQHt6mA18ejC/sJjZPGPIQO9cI25iOWg3dB q2j9M1dFyIAxDQ+zSarr4tNUTVr7BxsAwzztn/FCWQZ29nokFUbQaH/nBaFUzRx1iylR f5Wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:references:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=WX2mI6ppfQWfDYmTu1E1XXHsE0s/s0kydxM7yOP659k=; fh=s2tPfBUCFLTNjxJeN8Dy1TXjl6V0k89N3u6u5SgDWV8=; b=kNAN/bsCc6swAaXqxllh0WUwhaEuIIBNGX3swfp4l0KnAFip9KRkkPAhbDaGlmuJIq hYbv+CaNStZxSzT507L0nYjVN+CQtA1gzV5kKxhTO04FFp7+8wYWmccTW/RZTXGnklRt CH6AjQ8JAuEGPdDF7HqfCiYa6tc5i6xdCw1l/Bo9qSaTb+r0iZy6sxiogA3Y8bCJKTd5 xWZ6ZhJ6itqLdxbKHq2CoYMCPgvdqmm5d2efKj0ARAZo3AKk2thk0iz1QozckwhEAxeU Ev5dFZl6svsqP2RDmbGwzxj693j9IEdyIgBE4qqQp8Nc9T2VvO/EL8MH/X00KTXj1J5f 3zEA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=A4llCo+2; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b148d6f45asi160845885a.372.2024.10.16.14.45.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 16 Oct 2024 14:45:15 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=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=@gmail.com header.s=20230601 header.b=A4llCo+2; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t1BpM-0001bj-Cw; Wed, 16 Oct 2024 17:45:08 -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 1t1BpB-0001Tj-7d; Wed, 16 Oct 2024 17:44:58 -0400 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t1Bp8-0003eC-D9; Wed, 16 Oct 2024 17:44:56 -0400 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-43117ed8adbso3852555e9.2; Wed, 16 Oct 2024 14:44:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729115092; x=1729719892; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=WX2mI6ppfQWfDYmTu1E1XXHsE0s/s0kydxM7yOP659k=; b=A4llCo+2xXeVzzbgHj4QCRmBy3F7x15fmOuhdPuu6Qn1W5NUAN8hZbKphngZLRf2v+ Lktk8GP6JuH/X5vgy2IqfXdW60jgU5+2W5O6XZGN4iJdfYHgDZHLrlSObYPR/R2oghNQ jGfflKIemayZlIcKaTuphpWTNf08KpqrqeQ7GPgISTZVzOZ20SURqw6PzPeNwKmzza0B Py425FYjDSsdHu5K3aSxP82F9+V6TQXQ7WcjKW5a6C3EvL3opsdoZE9BzZv9et43WlNy eJqFvlfO5JU0Z83hC2qoR6X3z2uaaHktOvXMNsQ/4XzrhiouFGSMCkEucjpAe+KzGigY 6tzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729115092; x=1729719892; h=content-transfer-encoding:mime-version:message-id:references :in-reply-to:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WX2mI6ppfQWfDYmTu1E1XXHsE0s/s0kydxM7yOP659k=; b=o3vjjaO2iHiMU4GsNwtpLdERx/kBnfA+r2WRlg2gN7J1FPiiio00LP6pwoYhOU5D72 3kLfB5ZAsBWGRQuaVdh+6IrHU5ZUBh+4Tilxbr724H0YzxU9CnKxuoMZnfDlaN7p/gSQ CXlWZATsrPyvih3etKL5PPIaTgmIa/NlpS9x4T7Uju4Yd+D8Btucng1cURe3nHI+4iS3 C5oGWGJMlC3GG056GtkIq50NfsOiwU3SKutcgjJ/SBGPymfNvSfEYDnuT1Hel8Bm6t1l QBb6Q/wqtzglIx1KI8XfA9yuQU4uB8AFHafjbc8sEaa96evcdIJ4qvPci2QMzDEnlD6q Fw8Q== X-Forwarded-Encrypted: i=1; AJvYcCUMLX8QTcF1hSsYCGmNv+/9QBZwMsjxlCdTAFCly5dgTvY1M5MossiA/LWwlfAd4FJprC5dwTEFCA==@nongnu.org X-Gm-Message-State: AOJu0YwHNSN8XOCW+zEiYiLewJ28sXzIJRSye/6UBAv1j3gKKc6P6JMo ZuwXomVJdwhem/peMaG+kvCF8ZySpjpeYmiFgylTezPQ2wmvt2H5j6w5+g== X-Received: by 2002:a05:600c:1c07:b0:431:555d:e184 with SMTP id 5b1f17b1804b1-431555de292mr25738435e9.25.1729115091784; Wed, 16 Oct 2024 14:44:51 -0700 (PDT) Received: from [127.0.0.1] (dynamic-077-191-025-143.77.191.pool.telefonica.de. [77.191.25.143]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43158c50f85sm5564815e9.43.2024.10.16.14.44.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Oct 2024 14:44:51 -0700 (PDT) Date: Wed, 16 Oct 2024 21:44:49 +0000 From: Bernhard Beschow To: Peter Maydell CC: qemu-devel@nongnu.org, Jason Wang , qemu-arm@nongnu.org, Paolo Bonzini Subject: Re: [PATCH 1/4] hw/net/lan9118: Extract lan9118_phy In-Reply-To: References: <20241005205748.29203-1-shentey@gmail.com> <20241005205748.29203-2-shentey@gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=shentey@gmail.com; helo=mail-wm1-x32f.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, FREEMAIL_FROM=0.001, 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-arm@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-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: cbVeB8F8WF08 Am 15=2E Oktober 2024 09:27:40 UTC schrieb Peter Maydell : >On Mon, 14 Oct 2024 at 19:50, Bernhard Beschow wrot= e: >> >> >> >> Am 14=2E Oktober 2024 12:47:52 UTC schrieb Peter Maydell : >> >> +typedef struct Lan9118PhyState { >> >> + uint32_t status; >> >> + uint32_t control; >> >> + uint32_t advertise; >> >> + uint32_t ints; >> >> + uint32_t int_mask; >> >> + IRQState irq; >> >> + bool link_down; >> >> +} Lan9118PhyState; >> > >> >This takes state that was in a QOM object, and moves it >> >into something that's kind of a device but not a QOM >> >object=2E I think we should avoid that, because at some >> >point somebody's going to have to QOMify this=2E >> > >> >Making this a QOM device is a bit awkward for migration >> >compatibility, unfortunately=2E >> >> Do we care about migration compatibility here? Or is it >> sufficient to check the version? In the latter case I could >> QOMify it=2E > > >Doing a quick grep it looks like the lan9118 is only >used in a set of Arm boards and none of them are ones where >we care about migration across versions=2E So I think we're >ok to break compat with a version-bump=2E We should mention >the affected boards in the commit message=2E V2 sent: Best regards, Bernhard > >-- PMM