From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E05C4EB64DD for ; Tue, 25 Jul 2023 21:14:56 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 59BBA867EA; Tue, 25 Jul 2023 23:14:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="p6Z6xJlx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 33FAB867D9; Tue, 25 Jul 2023 23:13:42 +0200 (CEST) Received: from mail-ua1-x932.google.com (mail-ua1-x932.google.com [IPv6:2607:f8b0:4864:20::932]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7831C86377 for ; Tue, 25 Jul 2023 23:13:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-ua1-x932.google.com with SMTP id a1e0cc1a2514c-79a31d66002so802993241.3 for ; Tue, 25 Jul 2023 14:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1690319618; x=1690924418; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=2ZbMNqEbHr76I2jVwGpawrXS5SDIx3gYyvtYmYbeH8A=; b=p6Z6xJlxB0WSmvqdu6lIKJc/eE2fVFEnnzwtE2PIs/GK6aNoZWmH3Ay9C/w1VyNayx bYF/n/aWpmYOAGLBMHvndUfgodJHQDiY5jgRZ0MhUZTi8wOrBm4iMLSIi0aeJjaIo9Wv CAetGZUE926qUqyLjXIUvAomsOBzrd7yo/yAA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690319618; x=1690924418; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2ZbMNqEbHr76I2jVwGpawrXS5SDIx3gYyvtYmYbeH8A=; b=M7rI+ITlqYtsbJWXKW3c3tkM1EpJ00pYK31Q4csFGZV0e3+Il7rtfv0zibwBuSfiny UIX+ig/GXVxU84GFbjcVF+0bnGo6ehZ30yAImQxz/1Hy1r8n2ZPo3J5OntMFXJTMHoPF avRuqdXd1qck3TMb1EDB+g8VEu6ercKs9wg0VvpmFoswdc+X9Ra3TRNfiPTNQAxsYUMm fO4ynoXnsNnrTmkUkUA5xbUEaOrJcBxuKM4by2V0CRHD6aC92ndGvFtW/oauOK1poHO4 5Tebv9Jvoms19WVDgHIZK1crjFjXzfbqdZswkEhipdY6cnIOT1e7W14PB9TJgi6iP27Q TmJg== X-Gm-Message-State: ABy/qLbVvyYwcQhPGhSXJyKzQkVjc1WjEiciOoAYw+y2sKdoOJ8iKoom TbrUTnXaqlWTulr4HFhzjM8sHZscv/eiOMrAhVshCA== X-Google-Smtp-Source: APBJJlH9fz2tuttjW0iXtYVPSUEq8WLFh2CTWbCpbSBtxsuoUzWHOHkJ0kIToKN1+fw9vHViI0GAWg== X-Received: by 2002:a67:de8a:0:b0:443:68c0:44ad with SMTP id r10-20020a67de8a000000b0044368c044admr156314vsk.25.1690319618231; Tue, 25 Jul 2023 14:13:38 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-b236-e3a5-57be-379d.res6.spectrum.com. [2603:6081:7b00:6400:b236:e3a5:57be:379d]) by smtp.gmail.com with ESMTPSA id e11-20020a67e18b000000b004435c659092sm2065449vsl.5.2023.07.25.14.13.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 14:13:37 -0700 (PDT) Date: Tue, 25 Jul 2023 17:13:35 -0400 From: Tom Rini To: Heinrich Schuchardt Cc: Simon Glass , Stefan Herbrechtsmeier , Heiko Schocher , Tobias Waldekranz , Kever Yang , u-boot@lists.denx.de, "Andrew F . Davis" Subject: Re: [PATCH 1/1] part: eliminate part_get_info_by_name_type() Message-ID: <20230725211335.GQ3630934@bill-the-cat> References: <20230716113444.23238-1-heinrich.schuchardt@canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fupl8ZyKWEeVxlVg" Content-Disposition: inline In-Reply-To: <20230716113444.23238-1-heinrich.schuchardt@canonical.com> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --fupl8ZyKWEeVxlVg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 16, 2023 at 01:34:44PM +0200, Heinrich Schuchardt wrote: > Since commit 56670d6fb83f ("disk: part: use common api to lookup part > driver") part_get_info_by_name_type() ignores the part_type parameter > used to restrict the partition table type. >=20 > omap_mmc_get_part_size() and part_get_info_by_name() are the only > consumers. >=20 > omap_mmc_get_part_size() calls with part_type =3D PART_TYPE_EFI because at > the time of implementation a speed up could be gained by passing the > partition table type. After 5 years experience without this restriction > it looks safe to keep it that way. >=20 > part_get_info_by_name() uses PART_TYPE_ALL. >=20 > Move the logic of part_get_info_by_name_type() to part_get_info_by_name() > and replace the function in omap_mmc_get_part_size(). >=20 > Fixes: 56670d6fb83f ("disk: part: use common api to lookup part driver") > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! --=20 Tom --fupl8ZyKWEeVxlVg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmTAOv8ACgkQFHw5/5Y0 tyxpqAv9E6YEzQczBIG3LUPcxzXl2OMSO+rogMLwE5J/WLHcaEyM8AZZOsGRlyFA Y3jbflcoLOhzcSiDQ287BtSMLGw1IQSL/GLE39NuyIYzjPEgIv6ymmZzlu8tFWrA VCcao5u5vkI5u/lWBNuLpQdZqNfd0509tP5FMJlIeBYxyARrC4X7NFGrnlTUxIl9 OEIDnAXVhFTZWc9S0b2LBQthTvWlg/w7n6boC8RdLopHc4Oy1oswyYetUieVlaJ+ COA1Ec/8FuYcuuKCCGjBYhuxWLsh/78eJD2WGgYgxW0+IZyMd1fKeAZbDzSyfCFc ShHy50Q5Mk4QpRKHDcS/J4DcpTfTEIaZlL7RksrxzRQ8Y8pD4Ornfxv2x1Hwv7pM a7xnd8ehXMXgMGFdu4OAakYDc/yC7mU7xQ+WHL+qZrKqCrtoQjvAl07meuupyuE/ GnsqYHn1Sz7JyFDv/XguDPBca5SRZ9KHhHRSRQipB4GguBLDBcI07URVE1Ps8NE+ b/jau0U7 =P5yy -----END PGP SIGNATURE----- --fupl8ZyKWEeVxlVg--