Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216448/?format=api
{ "id": 2216448, "url": "http://patchwork.ozlabs.org/api/patches/2216448/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/SLXP216MB11481D7B9CCB88EC10A5C4C9F056A@SLXP216MB1148.KORP216.PROD.OUTLOOK.COM/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<SLXP216MB11481D7B9CCB88EC10A5C4C9F056A@SLXP216MB1148.KORP216.PROD.OUTLOOK.COM>", "list_archive_url": null, "date": "2026-03-26T07:30:54", "name": "mmc: allow forward compatibility for EXT_CSD_REV", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "6f037629f5e4105113bbfd16245082f979df5a9a", "submitter": { "id": 92977, "url": "http://patchwork.ozlabs.org/api/people/92977/?format=api", "name": "박민우 (MW Park)", "email": "mw.park@telechips.com" }, "delegate": { "id": 12423, "url": "http://patchwork.ozlabs.org/api/users/12423/?format=api", "username": "Jaehoon", "first_name": "Jaehoon", "last_name": "Chung", "email": "jh80.chung@samsung.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/SLXP216MB11481D7B9CCB88EC10A5C4C9F056A@SLXP216MB1148.KORP216.PROD.OUTLOOK.COM/mbox/", "series": [ { "id": 497588, "url": "http://patchwork.ozlabs.org/api/series/497588/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=497588", "date": "2026-03-26T07:30:54", "name": "mmc: allow forward compatibility for EXT_CSD_REV", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497588/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216448/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216448/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=mytelechips.onmicrosoft.com\n header.i=@mytelechips.onmicrosoft.com header.a=rsa-sha256\n header.s=selector2-mytelechips-onmicrosoft-com header.b=b8FfPnEK;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=telechips.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=mytelechips.onmicrosoft.com\n header.i=@mytelechips.onmicrosoft.com header.b=\"b8FfPnEK\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=telechips.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=mw.park@telechips.com", "dkim=none (message not signed)\n header.d=none;dmarc=none action=none header.from=telechips.com;" ], "Received": [ "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\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 4fhPTR4bD0z1y1x\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 27 Mar 2026 00:17:47 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 1B01F83FA3;\n\tThu, 26 Mar 2026 14:17:24 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id B5B9D838BB; Thu, 26 Mar 2026 08:31:22 +0100 (CET)", "from PUWP216CU001.outbound.protection.outlook.com\n (mail-koreasouthazlp170100001.outbound.protection.outlook.com\n [IPv6:2a01:111:f403:c410::1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 307C780517\n for <u-boot@lists.denx.de>; Thu, 26 Mar 2026 08:31:09 +0100 (CET)", "from SLXP216MB1148.KORP216.PROD.OUTLOOK.COM (2603:1096:101:f::14) by\n SE2P216MB1688.KORP216.PROD.OUTLOOK.COM (2603:1096:101:fa::10) with\n Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.9745.20; Thu, 26 Mar 2026 07:30:54 +0000", "from SLXP216MB1148.KORP216.PROD.OUTLOOK.COM\n ([fe80::8f6c:834c:6cef:7be]) by SLXP216MB1148.KORP216.PROD.OUTLOOK.COM\n ([fe80::8f6c:834c:6cef:7be%3]) with mapi id 15.20.9745.019; Thu, 26 Mar 2026\n 07:30:54 +0000" ], "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none;\n b=xv2LDxpDWctX1LKjlWRZ0qQ+zttZulo4Mi30F2wWUar34SV4AnRhZGbCwntfitD4tZIpZaOIADFqxgWeCzA6AtNb1iyNpgVwS63YjItqGhsliBEBoFU/LbQKF/oIgTgN8NPobWMNjFO2DG+wEOP3PLnR5V5VQxiAymLlxE9V/WecBjEdqvFPzNVT1Fn/nTu6wzJ9vLDy0KFE4qKaZy3UAiskI7OQO22mMQe6b9I32WesSyNSj2xdnVpBqiyEsiwXw2VnsxIODumzt7zzirRHEVfM4fmJWbDORZZ+bjVzybK6sp0Sd1bMUtjnlSSWGWSUbm5QjHjydNgZddaLzXHn1Q==", "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector10001;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=hMnbLjr3suVOI7BMB2VAsW3WknajjxH31IddS9i7fyM=;\n b=lu/N4Cs+FwUmigdzS18IWgS4dNzeBXGUMttLnNZfukhq8k3SRLQsxN80Z1n510uOJCAKESYKKraDdAoE6jLb4LdB6QDptEI7yCCARd2s4GwFRJyHVzAS++S4tVcfUUcZ74iDofMe2uRCCpvKn8JqUzp1ZHwfJeG0cofr4h5s67LSqKUPkoN5s4uDoYx35er/e24D6VBqLj5BZi7z0lB+id93f26a3ZEsFDO7AOfz4zdKYwp5EzVOWlnW302bWUg5TNJxkorXKzgahku3Aa7F6E/N/ps6jGDS2nLEHbDES/W51/e+T9/yA3cKysH0PQgLOpH8M8WX3+ybe2Ik6EstNg==", "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=telechips.com; dmarc=pass action=none\n header.from=telechips.com; dkim=pass header.d=telechips.com; arc=none", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=mytelechips.onmicrosoft.com; s=selector2-mytelechips-onmicrosoft-com;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=hMnbLjr3suVOI7BMB2VAsW3WknajjxH31IddS9i7fyM=;\n b=b8FfPnEKg16YHvyrlJr3tqK/z6RnUw0KqT0/Abv0Q5Eju5sUg6DgSIfV2CZ43iudkFqkWRPtkzidlHyR3KVP9fqN/ZU+NqW0raramgHy2FwegTN0CyfE9YXIg0xgUItEDeUA9ZAHwGhFEecMXsxNCLGgYM93PLWhjljLtA1cgWo=", "From": "=?utf-8?b?67CV66+87JqwIChNVyBQYXJrKQ==?= <mw.park@telechips.com>", "To": "\"u-boot@lists.denx.de\" <u-boot@lists.denx.de>", "CC": "\"peng.fan@nxp.com\" <peng.fan@nxp.com>, \"jh80.chung@samsung.com\"\n <jh80.chung@samsung.com>", "Subject": "[PATCH] mmc: allow forward compatibility for EXT_CSD_REV", "Thread-Topic": "[PATCH] mmc: allow forward compatibility for EXT_CSD_REV", "Thread-Index": "AQHcvPIN5VsEyuEV0UekBd206Jv8Og==", "Date": "Thu, 26 Mar 2026 07:30:54 +0000", "Message-ID": "\n <SLXP216MB11481D7B9CCB88EC10A5C4C9F056A@SLXP216MB1148.KORP216.PROD.OUTLOOK.COM>", "Accept-Language": "ko-KR, en-US", "Content-Language": "ko-KR", "X-MS-Has-Attach": "yes", "X-MS-TNEF-Correlator": "", "msip_labels": "MSIP_Label_254aa743-8abd-4226-a04e-84db594c20b7_Enabled=True;\n MSIP_Label_254aa743-8abd-4226-a04e-84db594c20b7_SiteId=9ec49ece-9398-4634-9468-0ca88a890702;\n MSIP_Label_254aa743-8abd-4226-a04e-84db594c20b7_SetDate=2026-03-26T07:30:54.036Z;\n MSIP_Label_254aa743-8abd-4226-a04e-84db594c20b7_Name=General;\n MSIP_Label_254aa743-8abd-4226-a04e-84db594c20b7_ContentBits=1;\n MSIP_Label_254aa743-8abd-4226-a04e-84db594c20b7_Method=Standard;", "authentication-results": [ "legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=mytelechips.onmicrosoft.com\n header.i=@mytelechips.onmicrosoft.com header.a=rsa-sha256\n header.s=selector2-mytelechips-onmicrosoft-com header.b=b8FfPnEK;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=telechips.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=mytelechips.onmicrosoft.com\n header.i=@mytelechips.onmicrosoft.com header.b=\"b8FfPnEK\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=none (p=none dis=none) header.from=telechips.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=mw.park@telechips.com", "dkim=none (message not signed)\n header.d=none;dmarc=none action=none header.from=telechips.com;" ], "x-ms-publictraffictype": "Email", "x-ms-traffictypediagnostic": "SLXP216MB1148:EE_|SE2P216MB1688:EE_", "x-ms-office365-filtering-correlation-id": "c8a24db2-4ac3-4f51-5763-08de8b099d4a", "x-ms-exchange-senderadcheck": "1", "x-ms-exchange-antispam-relay": "0", "x-microsoft-antispam": "BCL:0;\n ARA:13230040|376014|6049299003|366016|1800799024|18002099003|4053099003|56012099003|38070700021;", "x-microsoft-antispam-message-info": "\n ef8pl9LIDXbdevZFk4LQRlAYGaq0ts1oqrZznBo4U42wp6ZqZwE7z2hl8wN7PLEtUlEXVfdhn85t9DsQ3/2Mhaqwy48bl+uDDeP6sbBH7zl593EGb109Q13hZykBgTNZ+3DyaecMy0+CwSyf/CBfbAxV1S0lcAR3SBaA1bB8NEdTwQ7GSTbrPbD0Dws0cd80eAGQwpWrmG/ff1cOK7VsPGh/7WlW2kP4kmR5axZGZUMWjk+MmVjdNcxTPhFNqgTSjCuho17Zrj8XkVZnsm+JbI8H6W9RLCmNOaFYaCfumYfKPfEXgZ45u7LQV/lHpSmwyWwHN0HlF80O4ytSX6GlAxHjcxTCMUCwhn+ttsJZmk/yc3Kkw2tRAkz2g4BowpLM5pIJWikqNWJfj7aZNPYBT6mZgZnN6YK/rJdtaVnAyzC370+ZHI9HG6uWYN1RfVTB5GB+OUULiPT1b/z8nWkiHB1ndyFlcR77592oLE2AxWh7Adm9H8Rl7zLPhEcFpwvZxH9nR4oLwyqnNQy/GGKByPKNzPwE9LDOkSmwlxmxsy2eBStj8oDE6eM87bmxeibs0E64QFlwWAJwFrDvsZXGIcQJ2gRpLBBfgfTPk7713rCJw0nDboqJ1aldztXGjU9A7HPC5/eKnm+RdqDyZd834cQ3cz8cIPzmh8fgrqoAu5mlUG8P3+WOurnCvT8tveag", "x-forefront-antispam-report": "CIP:255.255.255.255; CTRY:; LANG:ko; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:SLXP216MB1148.KORP216.PROD.OUTLOOK.COM; PTR:; CAT:NONE;\n SFS:(13230040)(376014)(6049299003)(366016)(1800799024)(18002099003)(4053099003)(56012099003)(38070700021);\n DIR:OUT; SFP:1102;", "x-ms-exchange-antispam-messagedata-chunkcount": "1", "x-ms-exchange-antispam-messagedata-0": "=?utf-8?q?2SUDfbZVX0/avGt/LRY+4BzfuG33?=\n\t=?utf-8?q?bRFulzMrw9KXJ/SxNof32ZAiEDIPUs2o712B6pxm4rB4So8lKNjJb3yLaJV3Q/QLv?=\n\t=?utf-8?q?WldthElGz9WYTHlKuOAzvujoN+KTEi4HHj2C4DhHE3T4zDzWiUSnfmzUPQe3oHlXC?=\n\t=?utf-8?q?RfpIaFOgXyqrng1RRjQVcJtFuh8eGSrKC3cC+FIU3Knrf81zTOmHjXh1I9aMGpWL4?=\n\t=?utf-8?q?yN1RGM4ZVF52aiQwo/Jm34LAZIlbTUK80/UsrDcXrOcGm8dm7khPQ6VJ6ZYXOdpJ4?=\n\t=?utf-8?q?J8FBH8pDpcT9nTH1yjSViRwIq6onuI0/Jo86HUkjUTEdk04xh/FuYbAkQznpD9luZ?=\n\t=?utf-8?q?Vt3kAHt+cbSq0jlIbdKO0pQhhZ6x1g19u3J4zZ4W3ItanKFVkZQPpHsMhyTy50mqN?=\n\t=?utf-8?q?ttuyEZDcZgHfyEZz7498g5HofSmIv3ikoV2n/oQM2OF/pshnkOS0Ny1eIMFLeR8Fp?=\n\t=?utf-8?q?JURkCQTLbLgUGSQvjC9Z+5EQFFktZFmYMHKTz2JI7dHxaQBj1aC8NK/Z46LKTO8Ct?=\n\t=?utf-8?q?Kq+rAu7yihqZuLN1o51OdU3UeB+pyHybFraFDQQIAgtkDFXLKMU6oju90zJUeDbYK?=\n\t=?utf-8?q?SkCp90D09yzmupTR1NcNlZI6BDU/n1tDL8H6D59C6pYtpKLWtsS3u2ukItD5qqpwj?=\n\t=?utf-8?q?JthNghQRn4z8MEJ/Px6Ag4Dt5vKUsToLkQwexBTrkaExCmou1KhNLzTAg0v80Wvzd?=\n\t=?utf-8?q?Lc/UMFB2F4fAkP4Mi3cTGgEb8ZKv7LrE8mtN98dv/VU/+3beDcVt98m3jqQI1NAbx?=\n\t=?utf-8?q?ORVPEby5DRBG0up2MKuqqAbWlSXADlQyjoyM8b099uDk1+LR1cL/PpSoxPF/YU/Po?=\n\t=?utf-8?q?9+rsbHkbGNaOeGLcTczDgVtWZgiq4K3Zqb+jK8qn3XSITWnQyssIVrU5N16D68nvw?=\n\t=?utf-8?q?COJ0y0+UqnY3Nrk9qiAII9nDBEquUV6e9X7ORuJk2R4tczTGTfQsvXK08I2GwZvUg?=\n\t=?utf-8?q?BQzOpTVWAZeYTdarJBZ7f5q9tM7KYqPp+CyQO6NWdzSPwtLk0mPrCY72P2eQKsJz3?=\n\t=?utf-8?q?89Ux6XdEXBg2/BwowJjW6YCezGOUmdu74xjA4imLdZnFkahPDHBx1TMu1H8N4It38?=\n\t=?utf-8?q?nA7KnMsQTLFYesDZlGMAs8z1W7gUn5zske7mkTS3HChWOd4lroxbHPq+R7iW/FR/O?=\n\t=?utf-8?q?3G7c4fDEh3vWli6YMv4GCwbiAvdsRVUdo/FLJIJ2BdV5NYwtV9LnSX9LoDdITBzGp?=\n\t=?utf-8?q?JgjkZ0+PuSvkxTan7gFLTwvsmuHzydxJZjt4AU3IItWWJPjGl3VLpVqW7QBg25RCN?=\n\t=?utf-8?q?rrxgdfcrQLQOx+YSdfnuln4xFX481fTk45NBuk1nV7TkpGxHpYERXDmZZBvZitsWD?=\n\t=?utf-8?q?Qx1UvtqgDtWQ89J1baaB5XuF5uzvCeU4afkae9MFcEbYncMJbeTErr0JBHK0GOXyV?=\n\t=?utf-8?q?ZLX8sg6a0F/IN7CqckTVeMswRcC9OahbJepHE7jZntVimXZCu+EroloGzyVNpKAlJ?=\n\t=?utf-8?q?0czZq5t41Pr/05q5llfzbAD4JH6OHKqEiPgjlTH2UgSsH0JQYXLHCmdo5q/k2zHsV?=\n\t=?utf-8?q?6Q50Ovrcb3pZ64Z7i62AvUHv+3dgsJOoI0v/pOV0QTNvDGB8dEQT5m476yX4D2DJe?=\n\t=?utf-8?q?cBa2+qHlrgXPmEn+tAe4jX22VklEm0sizvWFD2Z8ROs18hcVoLRpLf4ZoSORR/5i1?=\n\t=?utf-8?q?hUF8sRV1hHdqDdEJtVJhtXg3F/Zvo7wA=3D=3D?=", "Content-Type": "multipart/mixed;\n boundary=\"_003_SLXP216MB11481D7B9CCB88EC10A5C4C9F056ASLXP216MB1148KORP_\"", "MIME-Version": "1.0", "X-OriginatorOrg": "telechips.com", "X-MS-Exchange-CrossTenant-AuthAs": "Internal", "X-MS-Exchange-CrossTenant-AuthSource": "SLXP216MB1148.KORP216.PROD.OUTLOOK.COM", "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n c8a24db2-4ac3-4f51-5763-08de8b099d4a", "X-MS-Exchange-CrossTenant-originalarrivaltime": "26 Mar 2026 07:30:54.2744 (UTC)", "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted", "X-MS-Exchange-CrossTenant-id": "9ec49ece-9398-4634-9468-0ca88a890702", "X-MS-Exchange-CrossTenant-mailboxtype": "HOSTED", "X-MS-Exchange-CrossTenant-userprincipalname": "\n SloED5pW5eQaBOaV07XTQA0/i0xSQAtHptKmcaqaKEpA9Fgi+ss6//7wQpOxtB2idp5go7BuVSWN/EORBLdlYA==", "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "SE2P216MB1688", "X-Mailman-Approved-At": "Thu, 26 Mar 2026 14:17:19 +0100", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "[PATCH] mmc: allow forward compatibility for EXT_CSD_REV\n\nAccording to the JEDEC Standard, the EXT_CSD format is meant to be\nforward compatible. As long as CSD_STRUCTURE does not change, all\nvalues for EXT_CSD_REV are authorized.\n\nCurrently, if an eMMC device with a newer EXT_CSD_REV (e.g., eMMC 5.1B\nwith EXT_CSD_REV=9) is used, U-Boot fails to initialize it and returns\n-EINVAL because the revision is larger than the mmc_versions array size.\n\nFix this by falling back to the latest supported version if the\nEXT_CSD_REV exceeds the known versions. This ensures forward\ncompatibility with future eMMC specifications.\n\nSigned-off-by: MW Park <mw.park@telechips.com>\n---\n drivers/mmc/mmc.c | 18 +++++++++++++-----\n 1 file changed, 13 insertions(+), 5 deletions(-)\n\n--\n2.34.1\nThis email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Telechips Inc. If you are not the intended recipient of this email, you must neither take any action based upon its contents nor copy or show it to anyone. Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. Please consider the environment before printing this email.", "diff": "diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c\r\nindex c5705f4f215..dbec728a474 100644\r\n--- a/drivers/mmc/mmc.c\r\n+++ b/drivers/mmc/mmc.c\r\n@@ -2334,6 +2334,7 @@ static int mmc_startup_v4(struct mmc *mmc)\r\n u64 capacity;\r\n bool has_parts = false;\r\n bool part_completed;\r\n+ u8 rev;\r\n static const u32 mmc_versions[] = {\r\n MMC_VERSION_4,\r\n MMC_VERSION_4_1,\r\n@@ -2380,12 +2381,19 @@ static int mmc_startup_v4(struct mmc *mmc)\r\n return -ENOMEM;\r\n memcpy(mmc->ext_csd, ext_csd, MMC_MAX_BLOCK_LEN);\r\n #endif\r\n- if (ext_csd[EXT_CSD_REV] >= ARRAY_SIZE(mmc_versions)) {\r\n- err = -EINVAL;\r\n- goto error;\r\n- }\r\n+ rev = ext_csd[EXT_CSD_REV];\r\n+\r\n+ /*\r\n+ * According to the JEDEC Standard, the EXT_CSD format is meant to be\r\n+ * forward compatible. As long as CSD_STRUCTURE does not change, all\r\n+ * values for EXT_CSD_REV are authorized.\r\n+ * If the EXT_CSD_REV exceeds the known versions, fallback to the\r\n+ * latest supported version instead of returning an error.\r\n+ */\r\n+ if (rev >= ARRAY_SIZE(mmc_versions))\r\n+ rev = ARRAY_SIZE(mmc_versions) - 1;\r\n\r\n- mmc->version = mmc_versions[ext_csd[EXT_CSD_REV]];\r\n+ mmc->version = mmc_versions[rev];\r\n\r\n if (mmc->version >= MMC_VERSION_4_2) {\r\n /*\r\n", "prefixes": [] }