Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp1047999lqs; Wed, 6 Mar 2024 05:04:12 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWGISn6NjZzYKM+FNw03DuS5/vrHyigeDm1VscCARb0glUVg9+ykBoUAn24JvisL9OD8atmh3K+Crp5en3iW+E+CnCko2+zyC7Rdu9VWw== X-Google-Smtp-Source: AGHT+IHPQtlIZ1BJGoAnL+yTum1VG3MgTtDiD9AXTXKIksCvZtzPZS0GtZtAhAfwq1V2EXsyg/ED X-Received: by 2002:a05:620a:f81:b0:788:1178:195f with SMTP id b1-20020a05620a0f8100b007881178195fmr4674030qkn.18.1709730252605; Wed, 06 Mar 2024 05:04:12 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709730252; cv=pass; d=google.com; s=arc-20160816; b=j2KkOW/Wu/TtDf3i7WpnETHiLz3MqUlYtOWaKgnzw+QfUzY4spRQlX/BC1ZzEQy6wP CmUxbPgYFunHsmtLJtetjEzV+7Z4lcnDN13mQ7s/dPP7erb4jF0585ApwIXucNeurVVn 8b5MlBxZiHDbw8i1e6NtV2mIxX52I0O76zs7cmtVEl9RIE9I442L/DKlNh2ER12lI97Z KGuFd1TN21mZslRLLF3I1TVRNSZ/+ZnWyE8Aps85ti2lnneCdyKocU9q6vt5mFPvExR1 twHR9NqTBJ+Ap0ZH3s882nKnolLUZ1kIf+UV6fZ6pvEZnku8oqp2fH0rwFiOULopW6yp 9KOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=gBiDejV3EtOMJmuMxDeh773rkjpBFgTE/mtHVi8J4f4=; fh=18CCtHGOSmZtvaQdo85QrbVQ0kJZI02JHpYd9Ja3XC4=; b=KQ4/UBiA5c0Ret+ML0E1ETjIHH8D8orWJDPkHaJypYkWqPcZzL7tDfIjfZDgtcc2hs 2mBcY5XlH2z/fAN25tm2tJBkM+bzq3XJYBtPn+vV9RGDAnTbUEL3JQDqOzHyBHgKv+C3 w0trc8D1w4MVQ9SXV9va9UNY4LFNEZ0tT4+iowfrBViMtsbj5kAuWP/UNgnYn47esmnT QuPFMK6wZErNw3gLKZ06MdkryxH65Ic4dBLfdmfgmtc04HISS3jiqgUiC0J/mHvVXmk6 SkQJuQX3O5qpM0W8GBwkwRUiIHZCCN0i7nHyqLDUpqH3sEEP8nNUUkQXr1x2USht0ogw seIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D7rLAIdH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-93940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id c30-20020a05620a269e00b007882a0a457esi7244607qkp.226.2024.03.06.05.04.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 05:04:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D7rLAIdH; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-93940-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93940-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 536E61C215D7 for ; Wed, 6 Mar 2024 13:04:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E944130AE0; Wed, 6 Mar 2024 13:04:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="D7rLAIdH" Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com [209.85.128.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DDD2E126F1C for ; Wed, 6 Mar 2024 13:03:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.170 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709730241; cv=none; b=g5XP0qu86+STxXmNlKWay9GP1JCGE44h9KPOycmluvUEr0DAcUE2wDOcc0T6i6KkGNrMJKtS53XU2iqwU0cgBCjfjxOjK2JUUhP1GPXS33BS2XLj+5w+WirULmXCiFLazOpKqPl7mvwqb5cQxeIIGpUxU8eEClQuHID0h415jvk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709730241; c=relaxed/simple; bh=0SzVCSc+6IVgdLQjBVikpTpZ5IdNQX3I6EMVPlgDMbA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=psE/oHcL6iGjfoY/mfNZPFi+Hrfx1/y2ufb5K2J4PhD/boLc3t6SLjhO1ju6Q6F3LtcLPKWA1CXCLMKnz6+zoP/Bq2dS2BMsESjX223/IWF5uicI9Mtw4ZfS4y3KYAdKhWLARzkQfMpwVkdwbxC359mouphjUzhKVXYgYpUEtV4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=D7rLAIdH; arc=none smtp.client-ip=209.85.128.170 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-608c40666e0so65209797b3.2 for ; Wed, 06 Mar 2024 05:03:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709730239; x=1710335039; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=gBiDejV3EtOMJmuMxDeh773rkjpBFgTE/mtHVi8J4f4=; b=D7rLAIdH2G5/jUCqjM1rkWiWQLQ/DgFRDS9MXjPcuiXudanm5mQJErhiDT5dmExSbV YujPOOJFWTrri1ZrgDugdTp6kok3Jc7fGS5TcSmbmxxfu+c1TlZS/0fbmjTGG0/NF4uE PGLF47GjeV8T6C8YUAwrigc6HoRj4s+Ow31mBHqkPse3AL603YBp9PsJbNZ7fpiWAZSS HZ9kiUiEEZhbWoxZI48MgycEXqAItAvM4T4sh/9sccibVTRGhcqVCEqhcaCVXylpHQVr R7/4OheYnaRSRi10ygpsaWTl4xwYL8x3FJKYpw1X5bTl4CyE2tQIhszFnZsGzNtByWZv dCSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709730239; x=1710335039; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gBiDejV3EtOMJmuMxDeh773rkjpBFgTE/mtHVi8J4f4=; b=YrG7lPMW53FykXqcREpN3Ulmub4nkSjyL+8+ik+q2t58cxHS1Fj1vlSjY0XVatr5N1 z44DzUEzUGPXhJWvTAHFkv6zK7KWTLR4WfufY6U+viD3GBD7C+C0oJVxpHI5aDyBlNsm N2xtutOEwBAF6/sQNhFQqgWq8seTNhQeLhuhwFJdXt8qIDuKJYO8+mzTYLnSffBOJ69w eGnoQRdCLgROADitPArPO5sai1h2CQR2xMB2SbrrnvS+TKvGZ52pdNUGswGNimhVWzQm jwMDLrtjkHuyRmfIrlzIFXzezRkaH25NHX+2zIbB1QwwuIHdZTeqjefRdiNQVfqXnCSn 8Xag== X-Forwarded-Encrypted: i=1; AJvYcCV/TzuLgZzqjD+Zp/+PrNKgAzt3JWwvYojFdB+MZ0fd6+ANmFSgMjasjQcnP0qm6LlhTCH3IMSX8ZcLrFR2D50XgObsIPyD3IYj2wU2 X-Gm-Message-State: AOJu0YyKpB46XZAIG9JidvM0ijEu7ld3/BmcsEUEJTnz42i0I9Po8r2x D6ife9yhVjZKOQZrA9YVXoUV1uxMSznLH8KP2tdeW3vvDLTT3FEQjZk8nT6aymGoRrBH5nBZd1T 6SOnYi6dlkg7YckNJQWlSfXkCddozy7wAvpugSg== X-Received: by 2002:a25:290:0:b0:dcc:2da:e44e with SMTP id 138-20020a250290000000b00dcc02dae44emr10903650ybc.61.1709730238839; Wed, 06 Mar 2024 05:03:58 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240306-mmc-partswitch-v1-1-bf116985d950@codewreck.org> In-Reply-To: From: Linus Walleij Date: Wed, 6 Mar 2024 14:03:47 +0100 Message-ID: Subject: Re: [PATCH] mmc: part_switch: fixes switch on gp3 partition To: "Jorge Ramirez-Ortiz, Foundries" Cc: Dominique Martinet , Ulf Hansson , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, Dominique Martinet , stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Mar 6, 2024 at 10:05=E2=80=AFAM Jorge Ramirez-Ortiz, Foundries wrote: > That looked strange as there should be support for 4 GP but this code > kind of convinced me of the opposite. > > if (idata->rpmb) { > /* Support multiple RPMB partitions */ > target_part =3D idata->rpmb->part_index; > target_part |=3D EXT_CSD_PART_CONFIG_ACC_RPMB; > } > > So if we apply the fix that you propose, how are multiple RPMB > partitions (ie, 4) going to be identified as RPMB? Unless there can't be > more than 3? Sorry for writing bad code comments. This comment means: "support multiple RPMB partitions [on the same Linux system]" not: "support multiple RPMB partitions [on the same eMMC device]" Yours, Linus Walleij