Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2006211ybg; Fri, 5 Jun 2020 03:11:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWz9BUCs8opr/pOOh3QPsHtj8u/tgN6xcuS2rCPk5QckGdroNjyxUtP2qQsu3KiT+vgFYk X-Received: by 2002:a17:906:a881:: with SMTP id ha1mr7815923ejb.178.1591351911880; Fri, 05 Jun 2020 03:11:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591351911; cv=none; d=google.com; s=arc-20160816; b=lvR1Ak/+Mj2snUlB2edjvzXk6W1NG0n26tfVLX7bIFteFC8C2Q9fWOySSNY57+yG/z jrk17KNYlwyk0OQq/agwYMfRyzpZ8iV3SMqalqlUKSdg+fhEI6YQgbz4JLKDTxNVXlAf PI4WUi/k5GNFaMuzoYpRey7MUSTmEY2eHfffIyBAF7Ee5+G5brf47ZnUPXkk1aRZpkMk 5a1S4vNx0dJ93iqDAhI5WprAJIIuVog1jsR9x7VJJNhK8sLwm6vml2YRdKiVHrsnw/Aj M9SjoKIKqUaW8g+9dspl8vb2bDMWwSS1eLlc0zyy6HX1NKnKqbzG60CyLKuXngW9OCc8 2i7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=MsgwKzto2IoOJjvjTzGrigwCXuk4v4Z5kvEN1IzyNVY=; b=nHFkpsddR2shDzDHSazoPbS2z5l5wwsKsmfZWCTZr5ZXnj3/F0hu8s75AxsImwJHLl deDzaVD0eUmR4Smo+bibn9hPCVTxlQPyL1yWSHAgpxZF5fLOJv0NOD8SzMdRmYKEjVE/ H/ps6eHK5yDA5akHj7j/ApmBr2jPhSUxYNAdazeXXwrNmqtwFy/9r6AnGqA8bAsuLqzA rp+Xd2aHEjbhdzU+74O8ZHcsaRxsXpmEY4zqN83Ro7T/SymEckRCzypAa0eDuhUXlAni 8KE+vk7Jxyd2ePriYE1T7D34Bw2VZkXzFHVVAv7X7+CIoLJuhFK6MJ4gNNk+pytJ+PhS 2mFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=YOz7DoaZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si3605293ejb.233.2020.06.05.03.11.29; Fri, 05 Jun 2020 03:11:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=YOz7DoaZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726374AbgFEKJW (ORCPT + 99 others); Fri, 5 Jun 2020 06:09:22 -0400 Received: from ssl.serverraum.org ([176.9.125.105]:33177 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725926AbgFEKJT (ORCPT ); Fri, 5 Jun 2020 06:09:19 -0400 Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id C88EF22EE4; Fri, 5 Jun 2020 12:09:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1591351756; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MsgwKzto2IoOJjvjTzGrigwCXuk4v4Z5kvEN1IzyNVY=; b=YOz7DoaZopOBIiCVRhTaDmoHMSotqFUD1klTT5xzP/DYKwRApaTqVpxiFqUj62wQlkCeso rmShm/jyM0iW0HJQFp/yx0Rrr4/4YkFrd+I1dZGiEUATTJIfds6yt2ig9EK80aeePTx5yV JdQmMvjA6eyQ/Ls2P9eum9CkF6m0QN0= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 05 Jun 2020 12:09:15 +0200 From: Michael Walle To: Andy Shevchenko Cc: "open list:GPIO SUBSYSTEM" , devicetree , Linux Kernel Mailing List , linux-hwmon@vger.kernel.org, linux-pwm@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-arm Mailing List , Linus Walleij , Bartosz Golaszewski , Rob Herring , Jean Delvare , Guenter Roeck , Lee Jones , Thierry Reding , =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Wim Van Sebroeck , Shawn Guo , Li Yang , Thomas Gleixner , Jason Cooper , Marc Zyngier , Mark Brown , Greg Kroah-Hartman , Andy Shevchenko Subject: Re: [PATCH v4 02/11] mfd: Add support for Kontron sl28cpld management controller In-Reply-To: References: <20200604211039.12689-1-michael@walle.cc> <20200604211039.12689-3-michael@walle.cc> User-Agent: Roundcube Webmail/1.4.4 Message-ID: <8ed988b3e0bc48ea9219d0847c1b1b8e@walle.cc> X-Sender: michael@walle.cc Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, Am 2020-06-05 10:01, schrieb Andy Shevchenko: > On Fri, Jun 5, 2020 at 12:16 AM Michael Walle wrote: >> >> Add the core support for the board management controller found on the >> SMARC-sAL28 board. It consists of the following functions: >> - watchdog >> - GPIO controller >> - PWM controller >> - fan sensor >> - interrupt controller >> >> At the moment, this controller is used on the Kontron SMARC-sAL28 >> board. >> >> Please note that the MFD driver is defined as bool in the Kconfig >> because the next patch will add interrupt support. > > ... > >> +config MFD_SL28CPLD >> + bool "Kontron sl28 core driver" >> + depends on I2C=y > > Why not module? There are users of the interupt lines provided by the interrupt controller. For example, the gpio-button driver. If this is compiled into the kernel (which it is by default in the arm64 defconfig), probing will fail because the interrupt is not found. Is there a better way for that? I guess the same is true for the GPIO driver. > >> + depends on OF > > I didn't find an evidence this is needed. see below. > > No Compile Test? ok >> + select REGMAP_I2C >> + select MFD_CORE > > ... > >> +#include > > No evidence of user of this. > I think you meant mod_devicetable.h. devm_of_platform_populate(), so I need CONFIG_OF, too right? >> +static struct i2c_driver sl28cpld_driver = { >> + .probe_new = sl28cpld_probe, >> + .driver = { >> + .name = "sl28cpld", >> + .of_match_table = of_match_ptr(sl28cpld_of_match), > > Drop of_match_ptr(). It has a little sense in this context (depends > OF). > It will have a little sense even if you drop depends OF b/c you will > introduce a compiler warning. ok > >> + }, >> +}; -- -michael