{"id":2228784,"url":"http://patchwork.ozlabs.org/api/1.1/covers/2228784/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-mtd/cover/20260427114750.2480900-1-fuchsfl@gmail.com/","project":{"id":3,"url":"http://patchwork.ozlabs.org/api/1.1/projects/3/?format=json","name":"Linux MTD development","link_name":"linux-mtd","list_id":"linux-mtd.lists.infradead.org","list_email":"linux-mtd@lists.infradead.org","web_url":null,"scm_url":null,"webscm_url":null},"msgid":"<20260427114750.2480900-1-fuchsfl@gmail.com>","date":"2026-04-27T11:47:47","name":"[v2,0/3] mtd: maps: vmu-flash: Fix build and runtime errors","submitter":{"id":92066,"url":"http://patchwork.ozlabs.org/api/1.1/people/92066/?format=json","name":"Florian Fuchs","email":"fuchsfl@gmail.com"},"mbox":"http://patchwork.ozlabs.org/project/linux-mtd/cover/20260427114750.2480900-1-fuchsfl@gmail.com/mbox/","series":[{"id":501632,"url":"http://patchwork.ozlabs.org/api/1.1/series/501632/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-mtd/list/?series=501632","date":"2026-04-27T11:47:47","name":"mtd: maps: vmu-flash: Fix build and runtime errors","version":2,"mbox":"http://patchwork.ozlabs.org/series/501632/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2228784/comments/","headers":{"Return-Path":"\n <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=W1D5PfeL;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=TnhmMjgR;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g42351x9Vz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 27 Apr 2026 21:51:29 +1000 (AEST)","from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wHKUj-0000000GpPL-1JoO;\n\tMon, 27 Apr 2026 11:51:21 +0000","from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c])\n\tby bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux))\n\tid 1wHKUf-0000000GpO0-31Pu\n\tfor linux-mtd@lists.infradead.org;\n\tMon, 27 Apr 2026 11:51:20 +0000","by mail-wm1-x32c.google.com with SMTP id\n 5b1f17b1804b1-488a9033b2cso108379425e9.2\n        for <linux-mtd@lists.infradead.org>;\n Mon, 27 Apr 2026 04:51:16 -0700 (PDT)","from localhost ([2a02:810d:4a94:b300:3c87:b0bc:8c35:1ba0])\n        by smtp.gmail.com with UTF8SMTPSA id\n ffacd0b85a97d-43fe4c221cdsm81399615f8f.0.2026.04.27.04.51.13\n        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);\n        Mon, 27 Apr 2026 04:51:14 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc\n\t:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=SG4ROyGeFTtTKbudjF0oKpKjPukS4bWP5EqKJzX8SIU=; b=W1D5PfeLla7O/B\n\tKd65eai4dTOj/Q8/bT2Y7eumOyA+i68lfdNqmEPQIvkYmxREPhQ0M8So36md4+3xqKyXNxLMukgsY\n\t+Usg4UczgtppzizI+MSBqZ5WB2zuvz7clPmcxfmJ4sWCrvmANqk0z/sET7sOCf/Zst3IIyQ54rZFd\n\tL9moml0wTYGmdIsiI/g2H+cwt3uXzNsVGCtlIZUDs+nKHuvDX7IQ+kKcbFJIA6+1NqGpf4xsAXg6g\n\tlFzOuo1BTCl0sOABkjDdTjyVGzd/4AqkrejV4utGzOw9A5zwIw5ydj2J+6JQGayISNPLP2hOE+ey7\n\tyrDsoA457Z/+BLHPn93Q==;","v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=gmail.com; s=20251104; t=1777290675; x=1777895475;\n darn=lists.infradead.org;\n        h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n         :to:from:from:to:cc:subject:date:message-id:reply-to;\n        bh=c9PGXNkAslwn5PF5hDFlY4Tr7da2SwHFO7xPTeUxuok=;\n        b=TnhmMjgRYZpFbazK0UY9HrFLsdogPpgUdL5Gxt2gL7IzatGSyvBqzpYW9sl9clE+ac\n         1ILNlOOD7ccbBB/pXaCk+GFlkIozxwxLhbV8RepYEfkvS+dqANnIdkN/72RhTdpaqU8v\n         j5KRos8Q/AoXbELnRa+xnwnC3KLWarexu6kdTMWUcYWBrdHVDT934+9c04sVraKZrf6+\n         VfFduD22vRHshjA8OaahbHWDU7SoOZueTwfMHcBqZrzi1rpR2f65GLDt6sMrj0k3LrWV\n         eSWlKiEC+rtLJgJpjcX8rm3J4+i8z1CrPNI3DfWR+AhYS6TSMAs92wdsaTh2Anx63Aqi\n         TvlQ=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n        d=1e100.net; s=20251104; t=1777290675; x=1777895475;\n        h=content-transfer-encoding:mime-version:message-id:date:subject:cc\n         :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n         :message-id:reply-to;\n        bh=c9PGXNkAslwn5PF5hDFlY4Tr7da2SwHFO7xPTeUxuok=;\n        b=ezNCaQupoF/tBXAQJLbL2jzdGtJPvrwXc2AbGlU1pucstMOOTqBG6DD9FdgJiLGM8c\n         BbPGK57pn+cC/8Cfhisa8lHQ8EFgsS348cO+hEDzda3U03Gh8CJtbZpUSDn1USZBnlli\n         G4sdFepj1wIl2hYPwx3AM8iQBV8IdIFoWJnEE1rNkWjOGCMBeBT4jRG1ZozbSkBUIKIQ\n         85RAZ71v9TcJefiugMNTlS/1cJz0MMZi0DCGEgNuDlnj98o9TDJ4sAoccOkSlSb/8jPu\n         kKdW7iLeehllWVOFRglUxivQlPUbzRzOGj8qiU82yuDj4fFrylJjUdx00EOPBT32Tebg\n         Ir3Q==","X-Forwarded-Encrypted":"i=1;\n AFNElJ+e6rAl8ECAljWVK7Zq4bh71R/Xs9MoykP1m9BCkmb+BTLUmTmAJO6g4efWtXYRQGHUuYwORIxqQ9I=@lists.infradead.org","X-Gm-Message-State":"AOJu0YxX3743B019B1a31dQGWgyZgLloPWtkqF4ii4JeYysDaUiBS+3Z\n\ttj74NHncW130E8CUlUzbzhOZ3EpCPywXJtIH71Zc8nK+iAcd/pv8HAY=","X-Gm-Gg":"AeBDiesW3MGo5UGk/KfRp/vsTSc4eJxckH0iA1jmCvCFfLqxnvll/JchplJZwzhVoEm\n\tVZI0iRBhdRcEVW0i4mNr5q1w358eMcvqT9NRa7kQCv7mOh3eYfL1GmbVu6WRbJMw7JO+iMvTNc6\n\tw6G5f62oQzzrECfWhtae+VvlcgNmCfNpD9AARcmQ13NlgkXW96Gl8ruWZeMqm94Nq0EnSoKK8+B\n\t0pm6rybbYkVls66QI/vTibW6PrCMEY/F9wEXCZph/pwkLEIDFTTCt7rcSjzIpNbRzIDx1nYeJ85\n\tK/Za27lbRjsetmlgUpkrX18h8onguQ/yPujrQ44iIS1gAM2k5nsuen2DWCFvQBHKOtB0VQxRnBE\n\t2X7aLTzRqsYIGcp11onjGuUYknU4z/gjXk+rR7mJ50rMLSbLeX25Rdb7JUqnFziUC5oLkZouY/C\n\thQXY7AmpzwTws5uqhQbJy4OuLvIZ/bWCn8B49CT1zZuHkg7NzKu2Fqel+ZxoUO8ZnJtkXUEenvN\n\tr4jLFFv01eo2L2j2bg=","X-Received":"by 2002:a05:600c:1f94:b0:489:1c2d:211e with SMTP id\n 5b1f17b1804b1-4891c2d2213mr476219715e9.5.1777290674926;\n        Mon, 27 Apr 2026 04:51:14 -0700 (PDT)","From":"Florian Fuchs <fuchsfl@gmail.com>","To":"Miquel Raynal <miquel.raynal@bootlin.com>,\n\tRichard Weinberger <richard@nod.at>,\n\tVignesh Raghavendra <vigneshr@ti.com>,\n\tlinux-mtd@lists.infradead.org","Cc":"linux-sh@vger.kernel.org,\n\tlinux-kernel@vger.kernel.org,\n\tRich Felker <dalias@libc.org>,\n\tJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>,\n\tFlorian Fuchs <fuchsfl@gmail.com>,\n\tArtur Rojek <contact@artur-rojek.eu>","Subject":"[PATCH v2 0/3] mtd: maps: vmu-flash: Fix build and runtime errors","Date":"Mon, 27 Apr 2026 13:47:47 +0200","Message-ID":"<20260427114750.2480900-1-fuchsfl@gmail.com>","X-Mailer":"git-send-email 2.43.0","MIME-Version":"1.0","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20260427_045118_133057_4497B64C ","X-CRM114-Status":"GOOD (  12.33  )","X-Spam-Score":"-2.1 (--)","X-Spam-Report":"Spam detection software,\n running on the system \"bombadil.infradead.org\",\n has NOT identified this incoming email as spam.  The original\n message has been attached to this so you can view it or label\n similar future email.  If you have any questions, see\n the administrator of that system for details.\n Content preview:  Hi all, This small series fixes build and runtime errors in\n    the vmu-flash driver (enabled by CONFIG_MTD_VMU) and the included maple.h.\n    These changes were verified on real Dreamcast hardware with a physical VM\n    [...]\n Content analysis details:   (-2.1 points, 5.0 required)\n  pts rule name              description\n ---- ----------------------\n --------------------------------------------------\n -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/, no\n                             trust\n                             [2a00:1450:4864:20:0:0:0:32c listed in]\n                             [list.dnswl.org]\n -0.0 SPF_PASS               SPF: sender matches SPF record\n  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record\n -0.1 DKIM_VALID_EF          Message has a valid DKIM or DK signature from\n                             envelope-from domain\n -0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from\n author's\n                             domain\n -0.1 DKIM_VALID             Message has at least one valid DKIM or DK\n signature\n  0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n not necessarily valid\n -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n                             [score: 0.0000]\n  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail\n provider\n                             [fuchsfl(at)gmail.com]","X-BeenThere":"linux-mtd@lists.infradead.org","X-Mailman-Version":"2.1.34","Precedence":"list","List-Id":"Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/linux-mtd>,\n <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/linux-mtd/>","List-Post":"<mailto:linux-mtd@lists.infradead.org>","List-Help":"<mailto:linux-mtd-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>","Errors-To":"linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"},"content":"Hi all,\n\nThis small series fixes build and runtime errors in the vmu-flash driver\n(enabled by CONFIG_MTD_VMU) and the included maple.h. These changes were\nverified on real Dreamcast hardware with a physical VMU. The VMU can now\nbe successfully probed, read and written with MTD tools like mtdinfo and\nmtd_debug. Previously, the driver failed to build or crashed during\nprobing.\n\n        bash-5.3# mtdinfo /dev/mtd0\n        mtd0\n        Name:                           vmu2.1.0\n        Type:                           mlc-nand\n        Eraseblock size:                512 bytes\n        Amount of eraseblocks:          256 (131072 bytes, 128.0 KiB)\n        Minimum input/output unit size: 512 bytes\n        Sub-page size:                  512 bytes                 \n        Character device major/minor:   90:0\n        Bad blocks are allowed:         true\n        Device is writable:             true\n                       \nThanks,\nFlorian\n---\nv1->v2: Rebased patches and fixed the hotplug issues in other sh\n        patches.\n\nv1: https://lore.kernel.org/linux-mtd/20251117224408.498449-1-fuchsfl@gmail.com/\n   \nThe original v1 was postponed to fix the hotplug issue and other runtime\npanics, that are fixed in the following patch:\n\"[PATCH v2] sh: maple: fix empty port handling\":\nhttps://lore.kernel.org/linux-sh/20260426212714.2286437-1-fuchsfl@gmail.com/\n \nNote that in order to use the VMUs while there are empty ports, it\nrequires the above patch.\n\nFlorian Fuchs (3):\n  mtd: maps: vmu-flash: fix build error due to missing include of\n    linux/device.h\n  mtd: maps: vmu-flash: fix fault in unaligned fixup\n  mtd: maps: vmu-flash: Fix NULL pointer dereference in initialization\n\n drivers/mtd/maps/vmu-flash.c | 7 ++++---\n include/linux/maple.h        | 3 +--\n 2 files changed, 5 insertions(+), 5 deletions(-)\n\n\nbase-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f"}