Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13854392pxu; Mon, 4 Jan 2021 06:21:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJykeoqncDInPvC4EH/xyeu+uxKip/sLgGV7s2nIZi+ZIl019ADkNSfn1EOUEbmpdyy0A0Bf X-Received: by 2002:a17:906:fb9b:: with SMTP id lr27mr68507761ejb.175.1609770114996; Mon, 04 Jan 2021 06:21:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609770114; cv=none; d=google.com; s=arc-20160816; b=aNbeYPbmU+Jh685l8XP6xUUjGZ9AEs0Xetl3G8SdeGdPQKj5xDGi5JPArOrVuTrpzz NHqQZ2b3K+JDiFRuTN145ln0Sfs8TCl9oGN9U5fcIQy5WsHgA0D2COH4wMygTcREf9Bs 1wRqdTcNqvVJoKDWYHsfKlqf+L3VlylbjUZUYhzJTDmDFpvR9tJs1/XpkZokvuK7bt6E cX73RzaAkWzXYXrKl7s4wdle/Z2rxuBceJL3QIwGl9LZvBB/pP2OaK/ORosK9AkBAn26 GlfhTtz+G0+eTnbb9JA/y9TwByPw7rPGx0BNfLC+V9jmv11+nUIdTv9Ts6yGmpv9Zfya SKYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=S3YGJhKq0HHQGucgmozYpZHntxUmH5DmRwVgK8AwGuI=; b=WpRShi9WV055XvSAfUFC383dSjIKem4/KxatuXNu/B/8co64x811BVEyPB3lPbJrQ7 /WKOvq/ZZHFtnU5P2mL9ZosXZp80BLPnY31cy8dl6uH0cR3r6k15//Hv51I0ZWm2Es9k 6ZrgMV8tRhAESLAoc+cUmVw0wCmB0/Jyy22Am68OQSkDTM2oPMkHOCL9MG9tILu1HExE niGUmFdg+s7LAH2uhY3HbN7NZi9L7BV3vsNf7TEfkgcWzvGNeXWedu99OqyCSlFFFNH1 bImgIb+dW09B+fKZcjuIY57Se5sCPvFlWzjR/iBY6SCVeAcx6eq0wGZ+ptCpapVIWBhs 3xIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="v/GwiUgY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si28031929ejw.701.2021.01.04.06.21.31; Mon, 04 Jan 2021 06:21:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="v/GwiUgY"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726308AbhADOSj (ORCPT + 99 others); Mon, 4 Jan 2021 09:18:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726246AbhADOSi (ORCPT ); Mon, 4 Jan 2021 09:18:38 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D1ABC061793 for ; Mon, 4 Jan 2021 06:17:58 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id j16so27487681edr.0 for ; Mon, 04 Jan 2021 06:17:58 -0800 (PST) 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; bh=S3YGJhKq0HHQGucgmozYpZHntxUmH5DmRwVgK8AwGuI=; b=v/GwiUgY4h1BjISOPH1/5Py5SLZxxMO5Oord6HX0IddfyiNTi/HqwkJ/9E7XmNPAdk nbcogLlSkct4rDD8cIGy4NXm3riFpNhQCuQsmhFgxIz1x6/Ug0ZUH1wL2ilZQ+V2DGsq vDgAaIaRXLLIweV9TmZ2EzpWIn53U8XhcyoPugzLudsGo+8Csx7Mlj1QDQL2i7TdNPAC CW4KqQCQ6ZhODerecqYLHs88o/K5mUew7G/Pt2zH+gy+MUA3HO39622EhjhhPXnVDGXp c1yGzJZb7wuOfOM55fOH/cEPA1eCXAJkcykuM7BnPFoP2MnbO6BkJnGLWk8p0cEbGr4p c+tQ== 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; bh=S3YGJhKq0HHQGucgmozYpZHntxUmH5DmRwVgK8AwGuI=; b=MN7zzYJSRtoX6R8S46qsRmTBxQv78FgOu2peHbLEyO3MhG/TIbEAGk+qMS5RL0ygG9 jFy6bU5gHat/g9ZRkqfDfETCIc1ujntGBiUvEX1Y4SSwL7rElq0VaSehaSIv4FUSrGDC wbNVfr7gHNd3ZFcIzYmir3ovPZQH77U2/J7viYpqXgZs40KpbLobkmWVV9mmftslh/4r ekvHWmN/gByo2yDDeexp/5BXNkbkB9X+2PKd8NdTmGiCNGjvCRM5agggwUjhejFd/9Np DDSLA1wasN+aHxYOn5LxLGrcBEThiLnoIFE2GttKRRZXe8kmgR8lSFJ1zljeO+VvX1mc bUlQ== X-Gm-Message-State: AOAM530XHLOnbotktHHR7DLKrqCNjFlb/BDDTZaG0UkuuChjipvKamfv PzkI/uU0q6roExr7oMVJ+KKr/+IV0x9F2UpNzScj5w== X-Received: by 2002:a50:bac4:: with SMTP id x62mr69994137ede.59.1609769876975; Mon, 04 Jan 2021 06:17:56 -0800 (PST) MIME-Version: 1.0 References: <20201224112203.7174-1-nikita.shubin@maquefel.me> <20201224112203.7174-3-nikita.shubin@maquefel.me> In-Reply-To: From: Bartosz Golaszewski Date: Mon, 4 Jan 2021 15:17:46 +0100 Message-ID: Subject: Re: [RFC PATCH 2/3] gpio: ep93xx: drop to_irq binding To: Linus Walleij Cc: Nikita Shubin , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 27, 2020 at 10:21 PM Linus Walleij wrote: > > On Thu, Dec 24, 2020 at 12:22 PM Nikita Shubin > wrote: > > > As ->to_irq is redefined in gpiochip_add_irqchip, having it defined in > > driver is useless, so let's drop it. > > > > Also i think it is worth to give a gentle warning in > > gpiochip_add_irqchip, to prevent people relying on to_irq. > > > > For example > > > > WARN_ON_ONCE(gc->to_irq, > > "to_irq is redefined in gpiochip_add_irqchip" \ > > "and you shouldn't rely on it\n"); > > > > Signed-off-by: Nikita Shubin > > Reviewed-by: Linus Walleij > > Take out the suggestion in the commit message and implement it, > but I think WARN_ON is too nasty, just use dev_err(). > > Yours, > Linus Walleij This depends on patch 1/3 so I'll wait until you resend with issues addressed. Bartosz