Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp262445ybh; Thu, 12 Mar 2020 01:24:03 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvXIpZzCEcdmY5foYlXh9oyzokCI6b07s2FgOKlmk7kkG95IQsz7p+VYGQC7x5olnZF0e9c X-Received: by 2002:a9d:4508:: with SMTP id w8mr5770303ote.154.1584001443757; Thu, 12 Mar 2020 01:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584001443; cv=none; d=google.com; s=arc-20160816; b=LQVhGnApeKNmXoFNuVpOG8OUjMIxAJ99KBHjZx4GIlksfi2XVIJB3fw5kMsx3EVdyA FAijoK5iABdoDLgcV7WmN9aG8U52CJRlKZQ7SRFWwIh6x5FqRHwwWIR3yZx26rx92gBj skZD3dQ1Fu+11WjEozwYmb2TFoFqo1rGwrAUQWAuhuYTuDJUv39t8oM/2mmERHg61X3R fBWCqYl75tW7b4+5Ww5i1kNrjFLGY1IBGR9VKFOFk5GvHxfA4V+Efn9DIyUgwTYCuqXq Y9UrVJRoj3Bfm6MusCxEZxV51Nbbq6uElm1PQ+iJXVsp9Uvf0CanehCLaBH8abUNMVZ/ zheA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=P9izz9GwKEkmwA2CN2dI9HFL+pLvd99ZgSLtApoaeDU=; b=VTCWGwlHv02pGbT0KZBtqDiPaQA6RMAFfnoJUdkgTkDY+9sN536WDXroifxx+BJWpM HxCFP1JuQNabduk5c8b6M4Wzb67fw1Kq83K1QZ4gx4Bl9vje1y/DHbns+1CQFqoQkaJK GVtzhrEqXjnS8KH0uIBQoxTh6jg6kO3bY3rjeCi4A0wp4bQfXttAZYeMbdqq587sj4xY H4y+4sqH4CpajkyGSpGEcmDhyL1xnup37bNBAK84fn+zDmPNPXeH2JnLomhp/CSPrWLA WzKCmJcsmWSa+csc8PLSpCuOH+3lbADfjHzKFh8udNKSOOprn2cWWgtJ16okqwZkq1ZP AWgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=XdThVGVL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7si374946oie.164.2020.03.12.01.23.51; Thu, 12 Mar 2020 01:24:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=XdThVGVL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726539AbgCLIXA (ORCPT + 99 others); Thu, 12 Mar 2020 04:23:00 -0400 Received: from mail-qv1-f68.google.com ([209.85.219.68]:41132 "EHLO mail-qv1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725980AbgCLIXA (ORCPT ); Thu, 12 Mar 2020 04:23:00 -0400 Received: by mail-qv1-f68.google.com with SMTP id a10so2168929qvq.8 for ; Thu, 12 Mar 2020 01:22:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=P9izz9GwKEkmwA2CN2dI9HFL+pLvd99ZgSLtApoaeDU=; b=XdThVGVLJ8fCTlPp04bt767nww/R0JNiDAgMPRu09nMpRox4DHlFpxcQWyDiIzhi4l zPVbbL4xp6o5xCpctS7Jp/3wRpRJ0j2+c141ucsFPPZ3W/hCO0WyUNj59CUWyKWUbpCr ceV9QtJMukXVzTgsXjnC0BIyprWSiwrhx5yp6mZbqXTFDAYTZ43cmbHSTcodDP8d1Y/K u1Kv5F3EC1oaAjdZLlagq368xSL7t3dTHl7DcezV1iAJSdaZ4v0Epmd4C570b1Ec2YZi /Db/T+9bJl2eydi+gBR8XLQvTZ7bd020wd8IQb/8d11ruupX0FCBQYpAd3ggUotu2DJd W7IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=P9izz9GwKEkmwA2CN2dI9HFL+pLvd99ZgSLtApoaeDU=; b=RXxPFZxcbH6k5kaj0ek+W0lqI/NUNco+3D34EhLWAzppc9F6IMVkNWDG1FHTYo53AY pspRHzog4SE3Wjk4epsOOEZ72RX4zSlth47IWAF9Wj842AU/5bv1RocTG9qJP3sHKmLt IW8+5ZH3kut5eXkFWX6Cvxl7PzJSV4Da3xatRcEU3kPHRsQHbdYr/6TCkCTOg4pE+cRH YTeXh32Pj1uQT0Z+rORll1D/DI0zwL+XofZ8c1nLa18DhhpeajU9OV23cjGKxDDd0pxO MOsMqkATvaKuRlwX5pWNKj9XqXk62VpTTwRkf7yGMxP+4U8GCNyfipEFMZshi/Ll9dhf EgwA== X-Gm-Message-State: ANhLgQ2p6AzNDd2TXICGwKd9tR2auDy3q+Rtf5baJlKEc081Y4YBb2kb H6Z8x+Cgu67wAnhCQTpaKZoqwYysZHzVQh82QMe2AqRq X-Received: by 2002:ad4:5429:: with SMTP id g9mr6058767qvt.134.1584001379162; Thu, 12 Mar 2020 01:22:59 -0700 (PDT) MIME-Version: 1.0 References: <1583780521-45702-1-git-send-email-opendmb@gmail.com> <7fcc5cb2-5fdb-d1cf-e55b-c0f2d407e072@gmail.com> In-Reply-To: <7fcc5cb2-5fdb-d1cf-e55b-c0f2d407e072@gmail.com> From: Bartosz Golaszewski Date: Thu, 12 Mar 2020 09:22:47 +0100 Message-ID: Subject: Re: [PATCH V2] gpio: brcmstb: support gpio-line-names property To: Doug Berger Cc: Gregory Fong , Linus Walleij , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, linux-gpio , arm-soc , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =C5=9Br., 11 mar 2020 o 20:03 Doug Berger napisa=C5=82(= a): > > The label names are viewed as a convenience for the user and are not > necessary for the proper functionality of the driver and device, so we > don't want to prevent the driver from succeeding at probe due to an > error in the gpio-line-names property. The bank->gc.names member is > still made non-NULL which is what we really care about to prevent the > misapplication of label names by devprop_gpiochip_set_names(). > > In fact, it is expected that the device-tree will only include label > strings up to the last GPIO of interest so the ENODATA error is > considered a valid result to terminate any further labeling so there is > no need for an error message in that case. > > Other error results are unexpected so an error message indicating the > consequence of the error is appropriate here. > > I'm not sure which aspect is confusing to you, so it's not clear to me > how best to comment the code. I can hazard a guess, but if you have a > suggestion I'm happy to submit a v3. > > Thanks for taking the time to review this, > Doug No it's fine, thank you for the explanation. Bartosz