Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2189265imu; Thu, 10 Jan 2019 09:42:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN4GonjmWX0EHtIyKt4VDVW31pWreEYpNeOObCEWJ4wPw19TGwysF2WAmtzd1eF0VPUHbzX6 X-Received: by 2002:a63:134f:: with SMTP id 15mr104632pgt.19.1547142172417; Thu, 10 Jan 2019 09:42:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547142172; cv=none; d=google.com; s=arc-20160816; b=DfCqLPNqr7LV4xv/X9L761PSD2Vwde0xwEDSPQ9HPDvwsTJ+dcP11hmhVH1RT0EWpM yPzGi0GmBZLkKebo3+0qzsCfmLpPhaubVvHsESRLkQ20i+RtaV43GhmhcXsIdkWucC7p eiVHmBqY3RdIu9CGjovYK595utUgNPXsCTfWCLcXAienWV/BH99cLE5RFFHdR0hv48cy Pp8QW8ddxvlcwoSloXzjoD+wBWDSBJw5NhkwSbOlTrQ2CYEyLFgmkheLV2ahbU12aFab 1eG0D9h8fzgkr3D3q3cmw6kArljz9/gR+V5855HbHk/QcMoo9kk0/vuO1hzhO2hqYuWa ClkQ== 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=8EglagjgHRjqiKEl1aStRYWWxeOmncYa5YZWXHo+q0s=; b=k8WTsMQDp8m1MKIVMTnldNGeDqCnksh0ye2beNllEfvLTRMJ2apA2NLGKREbtmFYRh SUNYWcHDsxJq5tp36CPSTFFGr8pPt6JLNnyu4s1LkO53lykPL2+bPlb86Coe1+gCxvFy Zc2m4Ac+CDiC/cIjGAheiDQryYDK+6L/wsXpsgVmwzAI17HYXYuopYyl00eA79sm65jR WuadOtqOq9Dz6HjdjX1OVubDmivsCkvYaWMzsZW3bzU8xAvWNTivqywtiMjfSLSMe4zX R/b9KGn9/K0zHeN+zAhuDjHIeUugdHnTxcWqw9t27HNqXUQnab/1H9MM3hSt3eOAmoUC ny6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="kQYvjy/0"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d11si3759503pla.335.2019.01.10.09.42.36; Thu, 10 Jan 2019 09:42:52 -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=pass header.i=@gmail.com header.s=20161025 header.b="kQYvjy/0"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730576AbfAJRjy (ORCPT + 99 others); Thu, 10 Jan 2019 12:39:54 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:41626 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729890AbfAJRjv (ORCPT ); Thu, 10 Jan 2019 12:39:51 -0500 Received: by mail-pg1-f193.google.com with SMTP id m1so5110947pgq.8 for ; Thu, 10 Jan 2019 09:39:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8EglagjgHRjqiKEl1aStRYWWxeOmncYa5YZWXHo+q0s=; b=kQYvjy/0YWhgTWX47JgyaTGmIhbqQW5PWiVgOt0guZ8lHGz69/76TRHmpyJ/kEhmKc qM1ZF3zp5UsNd0dHLzhHwzQ/k8s23Y3cSoWqzJaKwiCdKwAirVWm8otgVi5uiFHJFPgo kBj2TYK5ybCuEIeL81ngI8dqJ7/Hu8pvP0WfdbpvKefsyIDDGDUt8yfUzIloJNxvfuhS uTCm68INE4xULI9QYqYgtFBKDG9F/OTrXKVmJbSE510p1uy8dPnEfvUf6ef4wxmMB6V7 bbRfcp+W2ZC3zXTRkdnycjkdKhkvxD1SPSxQR89dvmkai7EKzzdM0RCuZaVlYpfInyZ0 amlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=8EglagjgHRjqiKEl1aStRYWWxeOmncYa5YZWXHo+q0s=; b=MWSLiXFxIUnUC9edHq0HhTbB0rRASj+pu2bAeSk0cJqiAx1QGbjejOxFObKPlQMXZc +P+DQRL4bR47e8sB4Z8R6PBwNERDPdNyLrQ5FJM0fBQOKMWzaOrMCC9mHZRwM3QFUiBD RP1A5THFoFNZjzO7nePenKRUr2X27bawasvOa6OsA7edoVZlukVzEh3eEwfmi2pXjG7O HuB74y3bADKfZeXEtOSoxhwjfWP/Ihuc40EVF8OBQN+vfU/U7fa3SHO6cMFCbHjc46Cc vF5LszuDPtCMDCfK57giqv6Uz66VLrliH0YEy4b6jREJoUib9ubvLN6QIeuVVGaE7Kmn ePqA== X-Gm-Message-State: AJcUukeAOhDoVvbVMnJa9oVMDUDCsPYmBVuaCiG5gl36g18s7j8/kJsc mLzsx10LgK6GCtVSbIyOSJg= X-Received: by 2002:a63:fd0a:: with SMTP id d10mr10282850pgh.164.1547141990338; Thu, 10 Jan 2019 09:39:50 -0800 (PST) Received: from nishad ([106.51.25.107]) by smtp.gmail.com with ESMTPSA id r12sm91498740pgv.83.2019.01.10.09.39.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 10 Jan 2019 09:39:49 -0800 (PST) Date: Thu, 10 Jan 2019 23:09:42 +0530 From: Nishad Kamdar To: Johan Hovold 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, nishadkamdar@gmail.com Subject: Re: [PATCH v4 2/4] staging: greybus: gpio: Use gpiochip_get_data() in place of gpio_chip_to_gb_gpio_controller() Message-ID: <20190110173941.GB24566@nishad> References: <03b274a2b5777d67e9d9b6318b5b2f13ce5c2b66.1545488665.git.nishadkamdar@gmail.com> <20190109105824.GJ14782@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190109105824.GJ14782@localhost> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 09, 2019 at 11:58:24AM +0100, Johan Hovold wrote: > On Sat, Dec 22, 2018 at 08:21:00PM +0530, Nishad Kamdar wrote: > > This patch drops gpio_chip_to_gb_gpio_controller(), > > and uses gpiochip_get_data() to retrieve the container > > of struct gpio_chip. > > So this will break the driver, since gpiochip_add() sets the data > pointer to NULL. > > These kind of changes are getting too complicated to do without > something to test against. We had a module simulator at one point, but > not sure what the state of that is now. > Ok, I get it. > I appreciate the effort though, and since we already started, let's try > to finish, but please drop this patch for now. > Ok I'll do that. > Johan Thanks for the review. Regards, Nishad