Received: by 10.223.176.5 with SMTP id f5csp2203079wra; Wed, 31 Jan 2018 19:10:04 -0800 (PST) X-Google-Smtp-Source: AH8x225eEMrpRg8pYu/P4S/UibqKfr74NfXE+ajU8d0d27wmIsiOrQInEnGcJbQxC4sJaQotsuhM X-Received: by 10.99.123.8 with SMTP id w8mr27862759pgc.201.1517454604744; Wed, 31 Jan 2018 19:10:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517454604; cv=none; d=google.com; s=arc-20160816; b=f+DxHc8gUKU4Yxku4xFYCabkMlHObpQYHOsP2HxcCRNhisQWOOSiaJi5lFOWhkf1y4 8lpAjVjVdC0wZamon893lgAIopDDGnrXQysch+JcKdZJ9lM8yFn20G4+leCiN3OiPVaK JoKilr94MgwzhhZ3zw4ryHBWuBEIGGLrywk33EvzKcxRQVvLNj09n59FjutvTW8deCrZ X4aQHv/OMSmMLbJc3M7UcaKNtWWvQ5i+LWz2IlyRRCQbJcgQqwQg67NZZe0diKCKKt8o r8TmvzsnWLBdxTBLZAI9yvCRZ5gUkJrOqHhjp7xg2eiJhG3WyvfLR0EuEzi3v1FDpzys i6oQ== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=lMMRX2y3eZPLm6A4hhq/FKOgnI8mC6EwFFAK2ANk53I=; b=IfsKz69zjC1OdE9A/k/hDHNZQOxn4yvDSUk3vwQozIGmrnk4pAZp1Dqx1AIrnCZv3T 8Qn+hDuU/2I75wxjeWqfo2dm1P9FoHL73eesQ2NfDsWd/u5HTmxIaU0VmxeJFVK2UR03 lZSwv3KqtM7hHSzENEo/G5ztr3D3a4E65nc/uf4C77AMjB4E5zsrobqGgVeSqE2z9VKa sUjxgKishLRgApFDd0eQsgy7ha8q9zbALigK9hofLK0XlRsDSGi6Z++HUqdkmRyu9Q2E WgjmheQ5mIjj/aVOaHUTklMGFDwC/pzRS+Lwa2/3CcM1PEaU/Wf7moy7DA1CtXR8S841 lRrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UdSAnsgx; 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 r88si1131956pfi.263.2018.01.31.19.09.49; Wed, 31 Jan 2018 19:10:04 -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=@linaro.org header.s=google header.b=UdSAnsgx; 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 S1751582AbeBADIy (ORCPT + 99 others); Wed, 31 Jan 2018 22:08:54 -0500 Received: from mail-oi0-f65.google.com ([209.85.218.65]:38915 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750866AbeBADIw (ORCPT ); Wed, 31 Jan 2018 22:08:52 -0500 Received: by mail-oi0-f65.google.com with SMTP id j188so10869295oib.6 for ; Wed, 31 Jan 2018 19:08:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=lMMRX2y3eZPLm6A4hhq/FKOgnI8mC6EwFFAK2ANk53I=; b=UdSAnsgxcWA78nBSIlbTcmYwfu8KwrmUIr6fjbMsL9+jJBrhdhHf2TV6efiUFSrxh2 zZtbAZQEpYN9Rq2Ronf2L/QF4oNBdvwYbYFFtQBUwCkMqPrSbbD8z9uxxcEgrj5OQG8L m94SWe1MdRjDeanOM81/5d58+Ggcl/kcsu+7E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=lMMRX2y3eZPLm6A4hhq/FKOgnI8mC6EwFFAK2ANk53I=; b=YqoioUCIkwMJ/8qAS7dSCsxvVh0VwxaNr5rDOyg226yWvk6lc+wYAYnSfttgUtPZIf D162FaLx0mk0dspT6VybzwhSf4JmDlHqoENYxWluJ5kI5fY7EJ/TOFBp7Og72kD64oYY F7k9CdyZd0olLXZ6hp8PR6XEkEaGfrA9F/2B5/zRlKw6XvqnHFrQX/7Os9IfDHL5fOUX eiiR4BWZRkZrV0LdTYVzSJc9lsfltmO8RccIQOzgUFMI6hYrtgCwBL89evFqSSBuR9t9 7SRKlCrCOELRGIXC8h/dXap0bebRqQPFDN53zrAFolg5MX69IauzCzQp0kW66lRq32dQ RxAQ== X-Gm-Message-State: AKwxyteXq/pjy7rlC19Mk7OgKE/E5uvJMnYchwFzfkJXInvYsSkvyWsA UoUbpl2BW5UDNa/HOCnPjQbavjcfdVW+gZIQ+XILxw== X-Received: by 10.202.85.5 with SMTP id j5mr5425213oib.1.1517454526536; Wed, 31 Jan 2018 19:08:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.28.174 with HTTP; Wed, 31 Jan 2018 19:08:46 -0800 (PST) In-Reply-To: References: <2834309f69a1ec37b84a33f153a3d0b90336bcc6.1517313987.git.baolin.wang@linaro.org> From: Baolin Wang Date: Thu, 1 Feb 2018 11:08:46 +0800 Message-ID: Subject: Re: [PATCH 2/2] gpio: Add GPIO driver for Spreadtrum SC9860 platform To: Andy Shevchenko Cc: Linus Walleij , Rob Herring , Mark Rutland , devicetree , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , Mark Brown 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 31 January 2018 at 22:23, Andy Shevchenko wrote: > On Wed, Jan 31, 2018 at 4:01 AM, Baolin Wang wrote: >> On 31 January 2018 at 00:48, Andy Shevchenko wrote: >>> On Tue, Jan 30, 2018 at 2:07 PM, Baolin Wang wrote: >>>> The Spreadtrum SC9860 platform GPIO controller contains 16 groups and >>>> each group contains 16 GPIOs. Each GPIO can set input/output and has >>>> the interrupt capability. >>> >>>> +config GPIO_SPRD >>> >>>> + bool "Spreadtrum GPIO support" >>> >>> Either you have to put tristate here, or remove all redundant >>> module_*() and MODULE_*() macros. >> >> I will remove module_*() and MODULE_*() macros in next version. Thanks >> for your comments. > > In that case you need to explain why driver can't be module. (And > don't forget to replace module.h with init.h). After more investigation, I found most GPIO dependencies can be deferred to probe. So I will change the GPIO driver to module level and change bool to tristate in next version. -- Baolin.wang Best Regards