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 2B499C433EF for ; Thu, 30 Sep 2021 04:11:38 +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 AC2AD613A9 for ; Thu, 30 Sep 2021 04:11:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AC2AD613A9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org 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 3854F80F8A; Thu, 30 Sep 2021 06:11:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="kbWSRgF1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8757280EFB; Thu, 30 Sep 2021 06:09:22 +0200 (CEST) Received: from mail-ua1-x936.google.com (mail-ua1-x936.google.com [IPv6:2607:f8b0:4864:20::936]) (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 30E1880F1A for ; Thu, 30 Sep 2021 06:09:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ua1-x936.google.com with SMTP id 76so999129uau.5 for ; Wed, 29 Sep 2021 21:09:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=j7Qg9vG0Itq+AJw04CleYhgzHbizSFmhcNjK14hYgq4=; b=kbWSRgF1uR7eXVgCTel6lwUjyXZg0jIz+a5pcXgY4U2NZ5gCN70VdWFd1EBnr/zB08 AYB+FThRnGMr9oPadAR5NEFsfbmhE7YUf0v90dI1s03/h+sdoly/kv8DAKElsdlLRL/K Na6Mg65qZCMtz3Er6AMc8TgJX6DOhI4k3f2/o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=j7Qg9vG0Itq+AJw04CleYhgzHbizSFmhcNjK14hYgq4=; b=ZlV/UawX+vl3V6c3SoJ+CTH3+KECVkCWLV4fEIr61tu0d+JLdQCq8TBkYafKtuWi54 89XxZaNC8CvMTgbiGpHoUbAscLjQ1V63eSgRWPdTu3FyCaSmt4mb8WTv8XKEhIu4tjSa OdPnJD1Gh3xexAKt0DErwiUqdyVDGFBJJJ1qSwOUaCHBiuzeOBtd1BD8glnl3v0CpVry FJIWhZkLL9M9WYlzWU0rmjtYZjfUHuZF/pUwrVAv5u0A8nfJbCixFaYBUo2Ksx3Og3tP Ty2TVAKphEGkMrYcVUgF1+9VaWO+TSJuT4mJRBOOStAee+terpjzV7gPRFKr2W9wv0sK BnSg== X-Gm-Message-State: AOAM530szG+OY/saoHnkht4ucvioE9G4n1Q6UYUBSBbtVlrCvSyghshf 53eY48585hnSQA6unZYFo0wNhr0qxHpHzKVKKjAmtg== X-Google-Smtp-Source: ABdhPJxkE4Biwlz+zUsosGDUXPrPfsuBgaMYEB5v793P0H3tMnWBcjRaW0V5mASUhazF89aha5xwom5OHqI4TfuBfU0= X-Received: by 2002:ab0:14a7:: with SMTP id d36mr3733546uae.96.1632974943751; Wed, 29 Sep 2021 21:09:03 -0700 (PDT) MIME-Version: 1.0 References: <20210911220553.9427-1-samuel@sholland.org> <20210911220553.9427-2-samuel@sholland.org> In-Reply-To: <20210911220553.9427-2-samuel@sholland.org> From: Simon Glass Date: Wed, 29 Sep 2021 22:08:52 -0600 Message-ID: Subject: Re: [PATCH 1/3] gpio: Verify validity of pin offsets when looking up names To: Samuel Holland Cc: U-Boot Mailing List , Dario Binacchi , Jean-Jacques Hiblot , Patrick Delaunay , Pratyush Yadav Content-Type: text/plain; charset="UTF-8" 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 On Sat, 11 Sept 2021 at 16:05, 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. > > Signed-off-by: Samuel Holland > --- > > drivers/gpio/gpio-uclass.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > Reviewed-by: Simon Glass test?