From patchwork Tue Jan 28 10:45:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 860385 Delivered-To: patch@linaro.org Received: by 2002:a5d:6b8c:0:b0:385:e875:8a9e with SMTP id n12csp286933wrx; Tue, 28 Jan 2025 02:48:38 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWB+kg3V8CcyEZaJ28tSZZIR4g60aieQ89RoY+Vp742uT7yFGGaMEOIkqwO2KMxM+aK7pczQA==@linaro.org X-Google-Smtp-Source: AGHT+IHDsciwGRNdVhYeWgcMQhABX6jtLM8t6pDsRuyo6R6GjzlbkDnUlQjtqCKZQ7XkGi+yduhI X-Received: by 2002:a05:620a:2485:b0:7b6:d435:ccf7 with SMTP id af79cd13be357-7be6328903amr7461941985a.50.1738061318573; Tue, 28 Jan 2025 02:48:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738061318; cv=none; d=google.com; s=arc-20240605; b=BeZnI0jtJ93ldLgikUHp3JyFWpoNsqXD2nfJvaS/KkwkCl570FA2CQto7DDQGH4dwd Xz8hCcnv5vNx59FAy86C/Yd8IgpAbejrTeOIDR3EKUsIUn/raJNTA+R8uWZBdlpJ0d2M zwzbXR/WJh/k8c8tFQ3NJSLN7N0Stsa1LU9mEIR115ZTpioYStYXVpN002GtKcWvj+mS bbjiqVFtzgbAz6dlDGLNuK81VlRTlVV+v0/8rj448qxvDAokK2heJDe4GIn+uBr73Jx9 U/E9/ehF0/YoaSzSS8ZKMFXRPstZH2A7Ix4NfpXQVA7R40CQQeVGBBKXPCnPRpYavX1x dJgQ== 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:date:subject:cc:to:from:dkim-signature; bh=dRwvcaraC/scDv+rDmHLiP+gKuIdNL5huOLcky7sR+E=; fh=VyVs/Sq6oqgpmbNI4vf9jbG6f0sCJBUsLOR3v6izziE=; b=AEDL6k47rF0yRN6DpxeqUNr8lTbew72dco+7J1a+Yo/fu2Hw0mON1UCosKvpdBAIMU 0tksP5p1TJuUW5NDjBNaKvozrQ+yqwSx6RzbTCm0gLc5sk9YrwVFEG6wVfCH8FMbbgTk l+wEfynHVkSg5zQrW1tsIHki5zvjsD9Ib8L53NZqTiqCv7DRZNZZvmfZooTDw0ol6qil 8b+5Dhcb7JpnRolBCunJbUzGpMH0+gs4lr5c0dmdwcmznFjnYsDxicHuDf4/bYS/w7MJ fn7unqI675v0KCnmnZ/nzA5afFx44XXZjHZpr5UwkeCm4QyE9bNENOmaLLW2+sSrd0EI obKw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lTjakx5n; 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; 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-7be9af1296fsi1209044585a.568.2025.01.28.02.48.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Jan 2025 02:48:38 -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=lTjakx5n; 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; 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 1tcj6X-0001Ha-Qj; Tue, 28 Jan 2025 05:46:01 -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 1tcj5x-00017L-E7 for qemu-devel@nongnu.org; Tue, 28 Jan 2025 05:45:27 -0500 Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tcj5v-0003Uk-1D for qemu-devel@nongnu.org; Tue, 28 Jan 2025 05:45:25 -0500 Received: by mail-wr1-x432.google.com with SMTP id ffacd0b85a97d-385d7f19f20so2778318f8f.1 for ; Tue, 28 Jan 2025 02:45:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738061121; x=1738665921; 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=dRwvcaraC/scDv+rDmHLiP+gKuIdNL5huOLcky7sR+E=; b=lTjakx5nICWKTRkb8z9V2KAVdlWVmGkMzcYgj2znIz+SoKAROjxY5njOew+3npW1tX cZeKSFK+rrCDJ2ClxvdSm4RH9EzfG/wzGWN6leC2s14SMFu93uXQQGz7YAFoelPpxVD/ gZIYcr2pEnBb1YtqXUcwj1EaH2tSgEDrLvmmuiClfCeYU+v99BLXqfgXW2znyao46wSx OkqFK3wHvVbKDhfjPHQeV3chTsVxuGOWb1AY7euy56gqpmhR+jYICAqICbdmkdacaU97 Bx27MxHou79kC2f8zjrjI3gS9fXWbdUp77y46SpPH4CAZx5Cfwa190X5lBtjtyIKMUlG j2mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738061121; x=1738665921; 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=dRwvcaraC/scDv+rDmHLiP+gKuIdNL5huOLcky7sR+E=; b=u5CAR/m3MbzMJYJTasm6lum08sJamp4bK/9rHPtHM5/pVSn+4p73JMgz22DIjRCjEk mR16yy8ZS/bXvyCNUqBC6wI/PyH7n1gs+3f2Z2jzS7QlKujIMkouLIvcn5v63ZbtA3U3 f7LZR4KTdYi6MnP1b+3O3AD45+r6PfgxZC8QEJnqkATPkh6/qw7sBXxV5PPyKuof2wQI x9sVpeMongMLD69BmlSLcSGzqpsPPdlPAKluK9YP0A8KPrUbm5ZOI0wzaTeYJ/k1AAC7 tzDUZzhoHQeE2uGCpIlq/4Lj1BHjh/2JV29hAZvZTwkvub0/WD6ZGFPT952m4J9QCCJI FX2g== X-Forwarded-Encrypted: i=1; AJvYcCUjmtnb58mK2avEZH4zADoi3bONv5rdh1Dwubyc3ARRQNRWJY2DnpfwN2K+XDyojt7gVtRtrOyRDus/@nongnu.org X-Gm-Message-State: AOJu0Ywlg0pAY41Gckvf/eBZOO+gEBJwIXnxMfPNii6ZEp9DPYOKExDU HS/3oNXO/y1rW8rI1X4ra+R4rkj+fitEOUB5Gmq88hmr5hRqCPYfBSouV/NASo0= X-Gm-Gg: ASbGncuDFp7jDwf27/2yQzLgH6faYO/wX5gYMxdbXDV2QJdnsY/vsXBFZrgZUKPVgtA iraKclxYE0HZzCM7yoGwmnBcBTc2Eiby3RN+gJXBcK1f9oylWnjCwx0BduAh2lAeXsJN0/4L3qh WIiw6sEcpIvIt15yYrMVga2mXv13gRl2Cc/iQLMmGYyVxFTpDLpZHKtmxtP0tsborROmS0ZBD2K GJKt4GEdkXCBi4Jbr7hvLlyWJrFberNNnr0Ah/AioJcneV9QXj5zqutXYsCkxAoOXkdrFsmiDRX 43YO4OyrsbfoG4KF783Z X-Received: by 2002:a5d:490b:0:b0:38b:ef22:d8ba with SMTP id ffacd0b85a97d-38bf57b3fdcmr32477971f8f.44.1738061121318; Tue, 28 Jan 2025 02:45:21 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38c2a1c418esm13920133f8f.95.2025.01.28.02.45.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jan 2025 02:45:20 -0800 (PST) From: Peter Maydell To: qemu-arm@nongnu.org, qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Bin Meng , Bernhard Beschow Subject: [PATCH 00/11] hw/sd: QOMify omap-mmc, remove legacy APIs Date: Tue, 28 Jan 2025 10:45:08 +0000 Message-Id: <20250128104519.3981448-1-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x432.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=unavailable 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 This series QOMifies the omap-mmc device. The main reason for this is that this device is now the only remaining in-tree user of the legacy SD APIs defined in sdcard_legacy.h. The first 8 patches QOMify the device and do some minor cleanup on it. Patches 9 to 11 then remove the unused legacy APIs, deleting sdcard_legacy.h entirely. This includes letting us get rid of the me_no_qdev_me_kill_mammoth_with_rocks codepaths in sd.c. thanks -- PMM Peter Maydell (11): hw/sd/omap_mmc: Do a minimal conversion to QDev hw/sd/omap_mmc: Convert remaining 'struct omap_mmc_s' uses to OMAPMMCState hw/sd/omap_mmc: Convert output qemu_irqs to gpio and sysbus IRQ APIs hw/sd/omap_mmc: Convert to SDBus API hw/sd/omap_mmc: Use similar API for "wire up omap_clk" to other OMAP devices hw/arm/omap1: Inline creation of MMC hw/sd/omap_mmc: Remove unused coverswitch qemu_irq hw/sd/omap_mmc: Untabify hw/sd: Remove unused 'enable' method from SDCardClass hw/sd: Remove unused legacy functions, stop killing mammoths hw/sd: Remove unused SDState::enable include/hw/arm/omap.h | 17 ++- include/hw/sd/sd.h | 1 - include/hw/sd/sdcard_legacy.h | 50 ------- hw/arm/omap1.c | 26 +++- hw/sd/omap_mmc.c | 256 +++++++++++++++++++--------------- hw/sd/sd.c | 94 +++---------- 6 files changed, 190 insertions(+), 254 deletions(-) delete mode 100644 include/hw/sd/sdcard_legacy.h