From patchwork Thu Mar 14 15:07:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1056577 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="UPhc1H4H"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44KsXN56jGz9s4V for ; Fri, 15 Mar 2019 02:08:04 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727112AbfCNPID (ORCPT ); Thu, 14 Mar 2019 11:08:03 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:47063 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726889AbfCNPID (ORCPT ); Thu, 14 Mar 2019 11:08:03 -0400 Received: by mail-wr1-f68.google.com with SMTP id 33so6245341wrb.13 for ; Thu, 14 Mar 2019 08:08:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yLj+m0PQbx7O5SDwZocYe/74u39NFe3CIQFW29ukkrk=; b=UPhc1H4HrzDqO0aT/GnqD3u+UoLDffhQ0Aa1MJQ8G2T4kRkFKOo9vs6DBwN2X8EA/D /z42e9uR2azHSocrzIPei/8E2iiX4+Tf7S3mDAe1+NR1roqZf5KsiPs5QKg6rVibzdQp v2mjv4kasI83mpxg3ljwmLGoy9pCadx43ZmFYEEmmFYUupWoABzOdJu9N07iJrwMbqeL w2JcTY9Wb7k5alX3rFTJl5CrZscbxkToa4zztYqd62Q5MNw9E7NQ0VVeWEbjZR4Je7y3 VF4AgV8rFLa4L11TG7p7lYizugUcbOtCDFk9xRfvwBm697onvmWsuqyPgUmP8z4oqKSy uVJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=yLj+m0PQbx7O5SDwZocYe/74u39NFe3CIQFW29ukkrk=; b=SNGbZTsDAOtoLf/03ECgvIUANGvNm6L5yOEUc5xpeYGfo+fhyrmnAaA9t1ZXG0HziH efAWBt1HtDbl86wVvI4PAhI4Ka/tKQrSGoc6fAlmVDZa0oN/8whKEwpQCzZKokWsUXBx TZvllvrxBwWg3mUX1Vxpfw8BXzrTytxBaN9Hb/kWtuRHK3IC4TBuXBdDQNHaumAqjukg LO8myuhejBNezG6VhQLLGXu7p8XOCXD+dACsMuOMuF972BimvCqBmoRXMcHC9GIe1AFu bvpn0DNW3lacHGSuR4HTYrptRdUIaJO3UKWlYquRzEez9Z1Ttg4dCjhdc+yZLWAvnzDn dEgA== X-Gm-Message-State: APjAAAUqbyg/7NcGwLdZskraQYSstBmJuIW8Xf9dPTydcGzGngw9hpRV jtnpN20tHCS9OR49pQZh6p9YMw== X-Google-Smtp-Source: APXvYqza6+m/MtL34xZUQ5aXsmNnl64M2Fn8hDn/NcSxWnPAXrgcqLjEl4OJEZMp9dzAIpczT0aawg== X-Received: by 2002:adf:cd0f:: with SMTP id w15mr19614633wrm.267.1552576081547; Thu, 14 Mar 2019 08:08:01 -0700 (PDT) Received: from localhost.localdomain (aputeaux-684-1-31-143.w90-86.abo.wanadoo.fr. [90.86.86.143]) by smtp.gmail.com with ESMTPSA id p6sm42947662wre.63.2019.03.14.08.08.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Mar 2019 08:08:00 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 1/2] gpio: mockup: drop unneeded dependencies from Kconfig Date: Thu, 14 Mar 2019 16:07:49 +0100 Message-Id: <20190314150750.9371-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Bartosz Golaszewski The testing module doesn't need GPIO irqchip nor does it depend on sysfs. Remove unnecessary dependencies from Kconfig. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/Kconfig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 3f50526a771f..e9473e968d9a 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -332,9 +332,7 @@ config GPIO_MM_LANTIQ config GPIO_MOCKUP tristate "GPIO Testing Driver" - depends on GPIOLIB && SYSFS - select GPIO_SYSFS - select GPIOLIB_IRQCHIP + depends on GPIOLIB select IRQ_SIM help This enables GPIO Testing driver, which provides a way to test GPIO From patchwork Thu Mar 14 15:07:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1056578 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="a7krBakc"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 44KsXX4VS9z9s5c for ; Fri, 15 Mar 2019 02:08:12 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727162AbfCNPIH (ORCPT ); Thu, 14 Mar 2019 11:08:07 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:33988 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727104AbfCNPIG (ORCPT ); Thu, 14 Mar 2019 11:08:06 -0400 Received: by mail-wr1-f67.google.com with SMTP id k1so5743649wre.1 for ; Thu, 14 Mar 2019 08:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/6fuNqsQ+BOvEoXpno6EWlv6F6RdSdbtUvXoIjHVdh0=; b=a7krBakciN2OwiMBchmY9jcxNhB7cZPjD0V8bzqPocFfnSjzzGeAT6X/HWbBUIVGm7 j2QFXWIoi1kXJ9HXIf1l/clPmUf4lrhbnYSUYYmOy5+2XvdSaVTYaKe5CZuzfI56w3n/ ggF1qhhLAKyhCKn2kn7bzL6OMvwwLbsSdPrLzxW6hc08o9eQOZtRzyoPHd/sz1Wb+ul5 EIlnU9QIV6KSn6rg0uMYSkRCcNSrgiyjqJ6WvWuhim2ZWg4WbHcTXpiyRG36EcUmH2Vs 0bkX+H0/85xiZR0ycFtH5BRNQgz43dShR2XOwHSWdHVaa1OD4gaV98cLNChnYAq6UdQh oK3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/6fuNqsQ+BOvEoXpno6EWlv6F6RdSdbtUvXoIjHVdh0=; b=k4NY36jCsrYFSXYo1Z6NLxaFq670AlZbzk0YE7O3hcgMbzo3I4wzwl4xpsDSuVaLT6 6qpWyxs+f4o4bDpVymVuEjFmgS1U+rZOx5q/LlYGbwnWlCLxe06+3VueaXBEFacrjp5X uUN+OL6dZUvMtyyV/k+VzopPc5D9yC1gv16ZQpgKFL9S5iKkh5SQro6ljfL8Ja78lAFJ 86oJfXo/ltSwjYOhkB8QG7+1wsTRD6b3xQmhWISNeCCMezoXDOeqLv+phSrKsAuCRTVa mE9p0XJpsBQa8QuuswQZ+CkrswwN2olfcyKuR+XAqzQk8/NAztku7jHRoCG0kYMhZ+GI 131Q== X-Gm-Message-State: APjAAAXCSGIwQNPKj+pJuWt4e2riE1QhWZ2DO3AJcCu4F0WmsuFDM6hi ad8G/UZQDh/yrKGakWjCdPLE9Q== X-Google-Smtp-Source: APXvYqyXl65hU7NlqkkGkzGHl4jHfMg/wv0GfbVstxK5CLojU1SUfBCTabKcr+JRdf8s5HseG9SjHw== X-Received: by 2002:adf:b591:: with SMTP id c17mr33921681wre.195.1552576084866; Thu, 14 Mar 2019 08:08:04 -0700 (PDT) Received: from localhost.localdomain (aputeaux-684-1-31-143.w90-86.abo.wanadoo.fr. [90.86.86.143]) by smtp.gmail.com with ESMTPSA id p6sm42947662wre.63.2019.03.14.08.08.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Mar 2019 08:08:04 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 2/2] gpio: mockup: move the driver out of the IOMEM drivers section Date: Thu, 14 Mar 2019 16:07:50 +0100 Message-Id: <20190314150750.9371-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190314150750.9371-1-brgl@bgdev.pl> References: <20190314150750.9371-1-brgl@bgdev.pl> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Bartosz Golaszewski The testing driver doesn't really depend on HAS_IOMEM. We may want to build it for testing purposes on architectures not supporting IOMEM, for example: on user-mode linux. Move it out of the "Memory Mapped GPIO drivers" section. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/Kconfig | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index e9473e968d9a..474ab3f7f9ce 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -330,18 +330,6 @@ config GPIO_MM_LANTIQ (EBU) found on Lantiq SoCs. The gpios are output only as they are created by attaching a 16bit latch to the bus. -config GPIO_MOCKUP - tristate "GPIO Testing Driver" - depends on GPIOLIB - select IRQ_SIM - help - This enables GPIO Testing driver, which provides a way to test GPIO - subsystem through sysfs(or char device) and debugfs. GPIO_SYSFS - must be selected for this test. - User could use it through the script in - tools/testing/selftests/gpio/gpio-mockup.sh. Reference the usage in - it. - config GPIO_MPC5200 def_bool y depends on PPC_MPC52xx @@ -1440,4 +1428,16 @@ config GPIO_VIPERBOARD endmenu +config GPIO_MOCKUP + tristate "GPIO Testing Driver" + depends on GPIOLIB + select IRQ_SIM + help + This enables GPIO Testing driver, which provides a way to test GPIO + subsystem through sysfs(or char device) and debugfs. GPIO_SYSFS + must be selected for this test. + User could use it through the script in + tools/testing/selftests/gpio/gpio-mockup.sh. Reference the usage in + it. + endif