Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1810805imm; Thu, 23 Aug 2018 09:06:48 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyO6JXlD/F2hNWfOyKNc85pWGkTIdNWoJxb2iuymZMCnORH7eOsrWpr8JbCKJd306P2fTX/ X-Received: by 2002:a62:d44e:: with SMTP id u14-v6mr31758641pfl.258.1535040408081; Thu, 23 Aug 2018 09:06:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535040408; cv=none; d=google.com; s=arc-20160816; b=jYs2ojyZTh7X9YGAP02nsGYnQtYMXutVYXfF4SAc1sbTTkRNuChoawqAbd25fYCCJx dzFEkd8uzpjnOSxvFs7ABQ4ypvhZd+FCOqXp1R2XF+6ZiNxtyllVWATCSCX3RdTuSN8g n4zNGqsrqeLYsUquP66qxiJ2J8HosHmcv3dBCOhJ57yzZpYIRAAGei6Ur+OA1+hJjbYt UJfpKtTMQC2+0bSJdaYFw7ICvMDyePVh85AedLMcGMH9Af5A87PqbWW2nMqaCVqrSwZ8 ag+ywgCKZRQsHFwh7RuPGuHihJiD8KPVTCX4W7TOcw1QMV2yrVxJRp6XUSk2YDJf9CYU 1lFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=VZm9LbAzfak1XHPD0HXhsOZFX9/+qXxcgrDmM+plvqo=; b=Axi9i8hbLEYWZP75PRc9MmifXyR4nH8r/XUT7i2uAvK2mTS49/o6e9LXhTx8/t2YxB c9FPCakJYHchZb+WD5vbXZUvkdx8fqJ01qXDUmy6gpQj70IovR3oosrpWFXXzZVSEAp3 z0gyVvxSuc2Bx03sUXaPEctejCAwHgqsT1g6SgsyjeWN9LaNminYhHu/zf29vFMcXvUY O+UTaUy/iYPkWhPjNVUiyFnfXZnwiMUISxJuNQJQ/hGkk7OyWtBXBQP0Wyb+Ou4rD7+t kkMWiDwSncrBKxXPz695BxOT7TpSzav20ROAuIqFw7m7idjTGxI3w+VFXwEbBhsat1Lm gE6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P2P3frIq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f80-v6si2363074pfe.291.2018.08.23.09.06.32; Thu, 23 Aug 2018 09:06:48 -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=@linaro.org header.s=google header.b=P2P3frIq; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729191AbeHWOLq (ORCPT + 99 others); Thu, 23 Aug 2018 10:11:46 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:38101 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728582AbeHWOLq (ORCPT ); Thu, 23 Aug 2018 10:11:46 -0400 Received: by mail-it0-f67.google.com with SMTP id p129-v6so5287162ite.3 for ; Thu, 23 Aug 2018 03:42:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VZm9LbAzfak1XHPD0HXhsOZFX9/+qXxcgrDmM+plvqo=; b=P2P3frIqnvv9fNID1nHuRnvv57YpHfVCboSegOnk7aPJyUlr1cA/74HYPiNzs0GjKq mPkOOROdqIKuvi0pfKfNCqvE3xvGVD3Omypt0A56w8cW01xPweD93eEfVtY+sN6wjAJG /ClkMd2wsL8prfvoUCYa7wAw8FERw+BFB3g1I= 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=VZm9LbAzfak1XHPD0HXhsOZFX9/+qXxcgrDmM+plvqo=; b=LGKK9vqdO54eK1PnHcHBz5vavhPR8M0i9ubUGEvWaqe5w4hQ2jF/6f/2wHwYZHm05A 1PfBRppW6tTl5RR7QJfoCLWS/1K/u2TZ9N7Tx1GfHJMGvcYvacAEa02PrKnUBCUVTy5U w8d4bG7U8BSwE28xluCSsZzBuB0slYx1xIN6Mi6VbYe8ZaeUJOsgzmoZUQgbFON5Q8KI xLFtp5nUBN6k6nDv9a98RgQQrlCPil+y4nv565gaDVhXaFKQ2tCrBBgLmutFn0QMOWZ6 AjzeY6DPUJRndHRjhvnd+aInokHpiRRk/0usFfs63t4Ih3EHowKK+jp5FA/kZbdRsj/K 8+OQ== X-Gm-Message-State: APzg51BJT/8Z8rOvm7nTu+7vIfL3VF7hUbdIFperDalpOEnk2kA8MbG8 4R5cg4M/ROWcsHylg6rrbGXt+qu6eHhx66+gjPfqwA== X-Received: by 2002:a24:6b0d:: with SMTP id v13-v6mr6664795itc.16.1535020959779; Thu, 23 Aug 2018 03:42:39 -0700 (PDT) MIME-Version: 1.0 References: <20180820181333.2527-1-jmkrzyszt@gmail.com> <20180820181333.2527-2-jmkrzyszt@gmail.com> In-Reply-To: <20180820181333.2527-2-jmkrzyszt@gmail.com> From: Linus Walleij Date: Thu, 23 Aug 2018 12:42:27 +0200 Message-ID: Subject: Re: [PATCH 1/3] ARM: OMAP1: ams-delta: assign MODEM IRQ from GPIO descriptor To: Janusz Krzysztofik Cc: ext Tony Lindgren , Aaro Koskinen , Greg KH , Jiri Slaby , Linux ARM , Linux-OMAP , linux-serial@vger.kernel.org, "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 20, 2018 at 8:12 PM Janusz Krzysztofik wrote: > Don't request MODEM IRQ GPIO by its global number in > ams_delta_modem_init(). Instead, obtain its GPIO descriptor > and assign related IRQ to the MODEM. Do that from > omap_gpio_deps_init(), where the chip is already looked up. Then, in > ams_delta_modem_init(), just check for the IRQ number having been > already assigned. > > Signed-off-by: Janusz Krzysztofik Reviewed-by: Linus Walleij It's a bit unorthodox to have the board files intercept and poke around inside the gpio_chip like the code in this file does, I prefer to keep it encapsulated inside the GPIO driver. However this is the lesser evil... if OMAP1 is ever phased over to device tree it will go away, until then it is just nicely contained. Yours, Linus Walleij