Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp629887imu; Wed, 9 Jan 2019 03:50:31 -0800 (PST) X-Google-Smtp-Source: ALg8bN6b/P0bv9tVP2x/TmF3+vpT2wLtAg9GuC1tRu+E9xJVE4oBE4pUBCP8HLaO1nBuFq17uBbR X-Received: by 2002:a63:2c0e:: with SMTP id s14mr5192912pgs.132.1547034630968; Wed, 09 Jan 2019 03:50:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547034630; cv=none; d=google.com; s=arc-20160816; b=UCHW6MhMTHf7eYxY5Y4Z94fPurHAd8ifObOi34T8KNMTlFG6bCtDlm5v4qVkN6L0s/ ztnWva9vAnnJ6W9lJyy+vRSSICGveBbUuUbndzcpDJAhriBqA8lZgN5pMxGCv5AWclzC qeQmkRFistji+Xxwl6skiGXcO/QIy1YqkCrsh5H+0LZejA301Qs8KJvMR0m/vFAPRUUR nLOpRd2ac3M1CNWZ28OadOZ7Ft9NMw0Dzd0svt84iYgTtT5MJBF7QiVK6srNmUEGFKNf /WQlOvIh/WcqKf86Fzvjd55P8BAM3uSH4SAuw1MUkZjglI3yo+5KDwB57Vp5c7Zjcxqb /LFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GCgCHkZmNPzpbR4hMIdvjS9XtBmeFhqn41FaprU78ZU=; b=K0fRvRzQpQEqyomzIAwqedrUPJFZNPFkMDcTgFYZzE68jnbPSZ2yXRoGOA+YY8Vb7E y1jMYik3i80xs0frUnTN0EDs/qTYfVyqbkA8wYCRNGt/gLsEPGu0JjTZnfg4VHmWch29 G8GmqSH+4Sz+S9lCfJr8Q2wuUlIvh9BKEH36AAB6jgho75hsGhcxtDIn7aXht8eUTYoI KkoEj0RZ8f4IB8g7gfNj9yrWBAq5ntzcUWyMtkjlMIW7jqHU/gyobBMfDSmG9j5K0BZz mroi+Ag0fF8MUzGKVm+fHulUfU2gUGVoQcua4W9gKiGLMcQI0z/Mc1ipCwm0g4JZIKI6 lKtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="W/46Towe"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2si23479497pgr.133.2019.01.09.03.50.15; Wed, 09 Jan 2019 03:50:30 -0800 (PST) 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=fail header.i=@gmail.com header.s=20161025 header.b="W/46Towe"; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729957AbfAIKoN (ORCPT + 99 others); Wed, 9 Jan 2019 05:44:13 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:44016 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726915AbfAIKoM (ORCPT ); Wed, 9 Jan 2019 05:44:12 -0500 Received: by mail-lf1-f66.google.com with SMTP id u18so5247802lff.10 for ; Wed, 09 Jan 2019 02:44:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GCgCHkZmNPzpbR4hMIdvjS9XtBmeFhqn41FaprU78ZU=; b=W/46ToweQYp1FJLqvpA+pNEO2TgVMMefaZ7R/fxABkDnlvWUkTsvI0kQJWhw/rhqXQ 4Qiqzz1WmefKZa95jE4Os2ucveOnGzkNTFmdca6MMKP7WtL1yPQD4EYQzOzfLJR46h3A 0Ns0wJF9qDEJ9MJB7fF9MSv4WUMuiJ//EWMc6g3K7VjiXxZ3Ga+zNKHQbxpcE8rVHsbP z8nDA9L9J4Rv3v/I1Bmpm9yA/1oNgKPU8C2bYIbJBixrw9H28N98oGr07CYSoQdvhyaW sK0Dk6Ct6z/0ZTGlGCr3pSc8i+83Em+S+UYPwmdUjRwNcU4l96I2l7eEmQTJmfBM9eRQ qPsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=GCgCHkZmNPzpbR4hMIdvjS9XtBmeFhqn41FaprU78ZU=; b=JydtUHqjiIDq1Tc+RU+ZfrRL+TqexR1co010rZmnyGjXtwJbtCZt9yk2JTVgpQHNZF V9J4GlWFQkLotuXtwowqaqy0PkWjk2ImPi9fiKZTwCmm0yzc0CteqTOoH0Dfy7kj6YaM /J6/2raJZg4hCH7ENHPZ0EXwWCG5wDYcPKam05bEBjIlgoqQk4LE7QMQmSYIrNr7O1Wb CugUT3AUxX7KA82sgIo8AjyIjeLfH/5/mmFxEjbU7tCvgA4/rcrFfyUChawI9EsEWnDj KRXADBl3q1NE+H/Ka4QQQlWL2b1YeG8726eoWZZTchAb2cmfu719ZhfLv6M2L+9cJQiC 7kJA== X-Gm-Message-State: AJcUukclF3871vKxk2Ap2qJIXdl9YwYbFuNPHQzTU/UGsYE5mXQRoIy+ Xzp6H7rChvv7V8ciokcpKtk= X-Received: by 2002:a19:a40f:: with SMTP id q15mr974101lfc.4.1547030650390; Wed, 09 Jan 2019 02:44:10 -0800 (PST) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id r29-v6sm14495007ljd.44.2019.01.09.02.44.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 02:44:09 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1ghBLK-0007y1-0k; Wed, 09 Jan 2019 11:44:14 +0100 Date: Wed, 9 Jan 2019 11:44:14 +0100 From: Johan Hovold To: Nishad Kamdar Cc: Johan Hovold , Greg Kroah-Hartman , Alex Elder , Rui Miguel Silva , greybus-dev@lists.linaro.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/4] staging: greybus: gpio: switch GPIO portions to use GPIOLIB_IRQCHIP Message-ID: <20190109104414.GI14782@localhost> References: <4a2b9c3439a806870e2cbc1f772bd97ea9448dfb.1545488665.git.nishadkamdar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4a2b9c3439a806870e2cbc1f772bd97ea9448dfb.1545488665.git.nishadkamdar@gmail.com> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Dec 22, 2018 at 08:17:02PM +0530, Nishad Kamdar wrote: > Convert the GPIO driver to use the GPIO irqchip library > GPIOLIB_IRQCHIP instead of reimplementing the same. > > Signed-off-by: Nishad Kamdar > --- > Changes in v4: > - Remove changes related to conversion to gpiochip_get_data() to > include it as a new patch. > - Remove the 'struct irq_chip' field from 'struct gb_gpio_controller' > as struct gpio_chip will have an irqchip whenever > CONFIG_GPIOLIB_IRQCHIP is selected. Ok, sorry for misleading you this. It seems we cannot use the gpio-chip irqchip, since that will register the irqchip automatically and possibly in an incompatible way. This new functionality is far from well documented, and you basically have to review the gpiolib code to figure it out. Looks like you need to add back the struct irq_chip. Johan