From patchwork Thu Feb 15 17:35:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 772923 Delivered-To: patch@linaro.org Received: by 2002:adf:9dc2:0:b0:33b:4db1:f5b3 with SMTP id q2csp953846wre; Thu, 15 Feb 2024 09:38:10 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX0WRizFjcHH97PTzTmSaEuWOhRDB4vB3owGFSBx4dWzZX4RUoPQgUvGefRwwXGj692FGAEy3YzEpIEICpXt0a1 X-Google-Smtp-Source: AGHT+IHt4sQMclOw+YBEGG3WIWeZMRHVyW6W3RGzGchl8zXpUYSvN1CKikQPl9xvw3RkQ7Ls29ow X-Received: by 2002:a0c:aa16:0:b0:68e:e9ae:c44f with SMTP id d22-20020a0caa16000000b0068ee9aec44fmr2446937qvb.23.1708018690073; Thu, 15 Feb 2024 09:38:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1708018690; cv=none; d=google.com; s=arc-20160816; b=wWFWKYYWMKStGcC1CSPvK8TCZDXS5vr7rjQsBxgUGj3OBtSAYQWQkXOp+bEbjMFYoh IzlcPJC5c4wHKxB7KhGQrhcMDM+N530U66jTTqy9e1Db6C6odq/ymOlYYBgxhOMDKOE4 NWWB3k/G3N6uhDRwpdGAKLelWN2U1rqJD9Fd329HsDrgC3lgUeQbsXKseuZP7xkeh1ri B22NRsGdXg7Vii5VgCtg+aDQNCLAd1GwPK+Zbiq5gCoWdYuoAWIpvu8LdcLKw3AqhfqB Vmuv7FKDKISkskUE05xLUsSzGS0OG++0AvTbi/uMio3KC6feftOOUktEshs+j9x5bLr2 AWkg== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=pnWE++gx7MRP5kpOVN2tye4nGgQTNdzxPucfDmj9R2E=; fh=PnYt+qEB9tAfMKoqBm2xjKOFpYyFFGPudh5cVIoieJM=; b=d+SJLtrLeFp17Wo7TYkD72ZvHRQZa79nV8PDrvUkQyiUe9eQyP883SJ9H+G43q9sJ8 LJdp/4Raa5H4Lmllk45Yt1mXTJkxvN2JKVIgJMdlx34V5zm+AU0SGAyVfKjYbYJC6cvi YQq7WPQN5s3up9UW3Sk48bETp2dEN327/MwQCtBQORDTWeD+w4/83RoEGavy932SklL4 jGUHwXdbcmHf0kRk6jt7iqyDTGYWUFxOFjbUtkHCw/O8rVKhkCemgLTnbmkEkoJ3W637 JfY5B5FydIEvm2bCxRxQfP3FplCHUQG+TnMN0Ba+vF9x9TG0/CTdPbP5y0afcCqSIJ0A UGWg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ftyh7a5n; 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 fv1-20020a056214240100b0068f2edfdaf8si74277qvb.273.2024.02.15.09.38.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 15 Feb 2024 09:38:10 -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=ftyh7a5n; 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 1rafeR-00082t-Fc; Thu, 15 Feb 2024 12:36:00 -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 1rafeI-0007xj-KM for qemu-devel@nongnu.org; Thu, 15 Feb 2024 12:35:50 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rafeF-0003ws-8q for qemu-devel@nongnu.org; Thu, 15 Feb 2024 12:35:50 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-411fc50e4e9so8886985e9.0 for ; Thu, 15 Feb 2024 09:35:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708018545; x=1708623345; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=pnWE++gx7MRP5kpOVN2tye4nGgQTNdzxPucfDmj9R2E=; b=ftyh7a5nU7N46CiArvyJfR2PB2okYBUCs9GQ6GsGHaotF4n730MEt1+bumJVPzRBJk 0vGlcsBATOzINyH/PMSpd6z6mlWjwnfJRbQ5fwlttqD+FokAlHp/jMfPL3jrbB5YCe1h Rbdtqs53uyLKUT7Fe/FGo8kjDP2PhyMkP6ASntiLFzo4Jz30yfXDMYsXubftUPfUV9f6 sjlgfRRjaaMGZzpPww61BKl/af4xi1pZglsiGasOp4sE8cTscDA2vGZUej3O96WPXH6j Le/zw1fWAloxh/Vln2+Qqoh0ipRQ59hTKkPtJU1iygjhxtkOB5/2vEfJZ1S+6ie78Wg3 rkgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708018545; x=1708623345; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pnWE++gx7MRP5kpOVN2tye4nGgQTNdzxPucfDmj9R2E=; b=i8f3s47TL0eNRMiGeiSg74lNIUJR1E17Cf9WLRcpKFWL3WYTJCiwqIXLEmxhV7W7ix Qyp427LvbcmsAA1lCfPSiVcvxBy1Fw6MlxPoFxNRlW3AhYAWGZP/KY8gB+kUqVUscVtr qP1MnMYm5qGGRi0pl/F8cvSPjBuejUWWDf23o7mqOfHZMBKwyal5ivsqwxUIQCFwQJkv Mrdda43u0H2FtCuw+P7qTQK06FzrV+tDRczbxVn2GXH/ibpNKT6xjhnUFfw15VUMjKIX cIgHgs2QvfGBAQQADE2F6klURjMqrXy9mc/Oz7c/Tggaj25gJvS1RMEpa5OonwrCDLPy hZ1A== X-Gm-Message-State: AOJu0YzXJVhHcEXTkrB0l3mxSVTW4Asj3+invAcYckV0rsF3/6SQHuzG ZhzcBQuUab/nlUi3kyC1unq9g8ADl+qzjgfpJfzuu7TvH1P14upOkXDddEuDzTMz+EpWoxfW1XJ O X-Received: by 2002:adf:e741:0:b0:336:6a76:40cd with SMTP id c1-20020adfe741000000b003366a7640cdmr2071789wrn.62.1708018545593; Thu, 15 Feb 2024 09:35:45 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id q16-20020adfea10000000b0033cfa00e497sm2384129wrm.64.2024.02.15.09.35.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 09:35:45 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 14/35] hw/arm/npcm7xx: Call qemu_configure_nic_device() for GMAC modules Date: Thu, 15 Feb 2024 17:35:17 +0000 Message-Id: <20240215173538.2430599-15-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240215173538.2430599-1-peter.maydell@linaro.org> References: <20240215173538.2430599-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x333.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 The patchset adding the GMAC ethernet to this SoC crossed in the mail with the patchset cleaning up the NIC handling. When we create the GMAC modules we must call qemu_configure_nic_device() so that the user has the opportunity to use the -nic commandline option to create a network backend and connect it to the GMACs. Add the missing call. Fixes: 21e5326a7c ("hw/arm: Add GMAC devices to NPCM7XX SoC") Signed-off-by: Peter Maydell Reviewed-by: David Woodhouse Message-id: 20240206171231.396392-2-peter.maydell@linaro.org --- hw/arm/npcm7xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/arm/npcm7xx.c b/hw/arm/npcm7xx.c index ff3ecde9043..cc68b5d8f12 100644 --- a/hw/arm/npcm7xx.c +++ b/hw/arm/npcm7xx.c @@ -710,6 +710,7 @@ static void npcm7xx_realize(DeviceState *dev, Error **errp) for (i = 0; i < ARRAY_SIZE(s->gmac); i++) { SysBusDevice *sbd = SYS_BUS_DEVICE(&s->gmac[i]); + qemu_configure_nic_device(DEVICE(sbd), false, NULL); /* * The device exists regardless of whether it's connected to a QEMU * netdev backend. So always instantiate it even if there is no