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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4AD87C433EF for ; Tue, 5 Oct 2021 22:02:56 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C278E61244 for ; Tue, 5 Oct 2021 22:02:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C278E61244 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 13B8C832C6; Wed, 6 Oct 2021 00:02:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (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="DHlpXFhF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DF30A831DB; Wed, 6 Oct 2021 00:02:18 +0200 (CEST) Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (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 587E78329E for ; Wed, 6 Oct 2021 00:02:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82e.google.com with SMTP id z23so590642qtv.9 for ; Tue, 05 Oct 2021 15:02:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=vW8hDEsAxwXLqik9cSqiZo4huS5GfirF9oNyFP9pDEg=; b=DHlpXFhFlV0gAuCXQ2rXAfm4tVxBirY1MVDGG/evV1yHw+Wr1bDtPuhdeKPHYu7xhP TfMCFOdUr1ZG9W7n2MzoO2l4lNskytuTiWyjS7ufIX0BuhH2hAnsEz3LSP7VxpUA2ZSn oxjeT7hr2/hhiXKmb6S7MRYJMBIs2sIdzzfz8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=vW8hDEsAxwXLqik9cSqiZo4huS5GfirF9oNyFP9pDEg=; b=DkcZuGCcyEmgDtZqHgG9WGKlBnihOR5ye63MCN/pgG3xNJ8QS+Zq95O1sNtzsHQHdh qvjPV4DOAinS3g8Spgp2hhwEpyxrXJDIr05ePdPj14mcoZ1hvg3tD+KgLefg5L3aP3r6 8UPMYu7fxD2leA8eZwJ8l7BwLU0e+OtddifnZsHgnzr7x1I3oSpvnSP/6PGqrFOcpUe2 fIkxVH+/h1PIta+vQPh1MYMjCUXVOWj5QxvDsJ1Gaegl7dwQuhUfPH9KAMJOVzQzvD3t h9Y886gAwnnRgyPxZgrUb7nPhf19hjlWfpCFyiTzeDa3vYo/Bay/WtE54ZvL8qLl/ij6 1z0A== X-Gm-Message-State: AOAM533IIW6p5vpvMJ6zqmR5xuC3ye+S4EWFLc+s1ia+GJwJS9hVAd2L 02/4CbxM8YVIyWVXCZzMWpUsZQ== X-Google-Smtp-Source: ABdhPJyOdWmzox8FX9Cl0hlaIDuQ46zAi63WDD/59Vmb4HMgdjr64P21v7vPJeYmc/SWPXrDhoh/XQ== X-Received: by 2002:ac8:6143:: with SMTP id d3mr3785734qtm.172.1633471330224; Tue, 05 Oct 2021 15:02:10 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-acff-2c31-c6db-812f.res6.spectrum.com. [2603:6081:7b01:cbda:acff:2c31:c6db:812f]) by smtp.gmail.com with ESMTPSA id s20sm10357294qkj.116.2021.10.05.15.02.09 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Oct 2021 15:02:09 -0700 (PDT) Date: Tue, 5 Oct 2021 18:02:07 -0400 From: Tom Rini To: Samuel Holland Cc: u-boot@lists.denx.de, Dario Binacchi , Jean-Jacques Hiblot , Patrick Delaunay , Pratyush Yadav , Simon Glass Subject: Re: [PATCH 1/3] gpio: Verify validity of pin offsets when looking up names Message-ID: <20211005220207.GG31748@bill-the-cat> References: <20210911220553.9427-1-samuel@sholland.org> <20210911220553.9427-2-samuel@sholland.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mnRbTohuKv9GovM+" Content-Disposition: inline In-Reply-To: <20210911220553.9427-2-samuel@sholland.org> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --mnRbTohuKv9GovM+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Sep 11, 2021 at 05:05:51PM -0500, Samuel Holland wrote: > Translation of a pin name to a device+offset should fail if the offset > is larger than the number of pins in the GPIO bank. >=20 > Signed-off-by: Samuel Holland > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! --=20 Tom --mnRbTohuKv9GovM+ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmFcy18ACgkQFHw5/5Y0 tyy2WAwApHrZlBYBXEmXmJEf3NLFB456HqFprokfcZm9AqMvIFCaC8HGz2jMVlN4 GT5s3GxookC7YdHZr4WXEoAj7Ji9+9WYR6+M2nwMd0O6QlTAHPgspVrQez4klnKA KSL53+UdJ5PboZ+eG6FHVC+yFs8MUnfsT3/R9UNU3m4aH7gX3EBqP+LcSHQeuQvT Qh9rnoMv87vpgNwyEsJJLbxRq1A/EM0PBQRw2j0FnP3o0yOra61FbN8oM5nNvGRF sxambsql/feJ+s8XEqYWDZyXqLib5W0UlgYmnXCHVmD/yhxqUPhLa7Ch5HGqoMbO rJkXrWEKiAW4IdcyLU88uY6KAnBN8VWPgoy/3+05FdquqeTF88i5GlmybYN0PAyy zT1HzGUDCtXzqk05h+A/5N6NhlnyIbNWvh+UmN12M4telCFVm0ivAuCt1wqk7cSQ Tr2h5gt9A2skM02aAxnljZuQ7Wgfnep618XG4wJ9Ej6BOoivVOpqVJbrOcnggnl0 GaBKQHKc =JU0R -----END PGP SIGNATURE----- --mnRbTohuKv9GovM+--