Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1932965ybg; Fri, 5 Jun 2020 01:04:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoAU15TMRIdVtTOz1kFadoVep9dgnEET458HhwDk1RsJqkQ0JbPlqb2tXAJWui3y0i/Oqp X-Received: by 2002:a17:906:4e59:: with SMTP id g25mr7371793ejw.60.1591344248502; Fri, 05 Jun 2020 01:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591344248; cv=none; d=google.com; s=arc-20160816; b=sNRVk741zOmSPcBk8amNkP96fBw0cSb605LdPjXPitInddXIHMc3o8ATpCYfbFwKgT zdUCkKC6LMtD7bRI4SLObFusqJFhfYijedDpXoXTG7XOqwKnotko6l7OKOaZOLYeTHZf c4w2Sxowzx1h0f2kJhP8JBcpEoTSiZij5bBAlyHr/MBUEKdK9YjGJL4ljsP74jTOInmA HO49cUsXHo9U8Aiw4StxfMjeIcLeGPf/krUA03N0lzGeBYMDXGFGYMh7jWl4/MEaEOXM tDb9CO7lIslSJX1PxOCER0ma5Qw47b7e8tObF9Dl2zHUU0IrxFHMZ/lSC5Fmt2IPywCX rCMQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=CA32MQ/+vRGTpFh4UZx8UcD1pDZn/aqTDePABuFsMhA=; b=gHnq7Exuo6yuQBDD3thIGEJ4pC7SiP0I0zef4fm/Z+V+6kufX0cRUbh6cXCA0LZBIF MxDjzEWgSnGwo+O3yaHPqwrI5BNyfg8pYULueOTkLdH9B8BL7KChBtWa82xQEBWDmO+3 Hc8xa8Koq/iQmK2pWZLoUqTcu8opYfrg0f7FfIefS956ZrBJNA+6Va9yUoEka5kfv+to +DQc/jpqCgABQL2axGBLQTaDOQk4Qigy0+CfYWN9YRrWryYNGAL7qR4CGYVvWXUGpZ7X 0xWjEqYlOuMALp5uiAtv8BV6XwyMQ8GPz45H3BVS8HlMSnu4SvsCP5l4+tMX12QOI0Q7 SBFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SqGNdaF0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o22si3174760ejh.73.2020.06.05.01.03.45; Fri, 05 Jun 2020 01:04:08 -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=@gmail.com header.s=20161025 header.b=SqGNdaF0; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726154AbgFEIBq (ORCPT + 99 others); Fri, 5 Jun 2020 04:01:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725280AbgFEIBp (ORCPT ); Fri, 5 Jun 2020 04:01:45 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3636C08C5C2; Fri, 5 Jun 2020 01:01:43 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id x207so4563290pfc.5; Fri, 05 Jun 2020 01:01:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CA32MQ/+vRGTpFh4UZx8UcD1pDZn/aqTDePABuFsMhA=; b=SqGNdaF0A6Kq1TcOl0i/w+Mz7gpK3TvBcCVsNXyvakLq/sI1vjH9Gydj55AfUfH9jJ aYs3QqCXt5c3d1k0qq13+K2Uv7JyTxshU0RSzrKBrz5OjsFwkKdnw4sOp603IEyQPiDd 89zCC+yqpR029H2Ew2FnHd4D2aGfwn/ByuodHV7MbX0fUOLBcC+L+d0HKpwtalFHrOEB W7zFBO+bNIGPoxHEJ/pt/cjKbfnFtArfKZN1q4p+7CwBZixuqzsXECf0yASthSfR1qP4 x6e0fswV/QzEtzr5wGL8Fg0je0o+1sIX9ltX0sGRUyXhtDgaDVshsZ/AE8O/vX1i2sQc l3Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CA32MQ/+vRGTpFh4UZx8UcD1pDZn/aqTDePABuFsMhA=; b=tQhZBL41IM3w8TpWbrNo0thO3xjQCM4/3bS4TtQRkQmPR7DCXghWYcx/tMs1Nw+Hlq ClCkVI3+Xo7cO3ng4pY3g8epbAiKE5K1w/GbllySasXS4xihir76yR49fLC5DWSn2AbR 9bIIvg5JX+/WS0pN0xHaOB2fJ+/NUL5/fLOl3o/YvD9VU3D4MFYFIqNfWLAmgJg8b1kA eTUothXbD7HyktMKwUNhMvFyzxeFuohorLl1G3k76owzWOBCtM5KGREJO7UIa8mOKgTu oTqO/qi5ErEPala2uj7tBphNY3Pz0FQxbg8+LkfdfXqGMUL5kY4huJsfiX3/p6aIueox pfBA== X-Gm-Message-State: AOAM530UkXph9iB3w0lE27/d0XFD3yd9QOFJw/PhYnexb02TgxXEwJAO H3IKwZkaMAwiEKTWYRzI5p3/iOcxtPrZLyroYBg= X-Received: by 2002:a62:1792:: with SMTP id 140mr8576341pfx.36.1591344103178; Fri, 05 Jun 2020 01:01:43 -0700 (PDT) MIME-Version: 1.0 References: <20200604211039.12689-1-michael@walle.cc> <20200604211039.12689-3-michael@walle.cc> In-Reply-To: <20200604211039.12689-3-michael@walle.cc> From: Andy Shevchenko Date: Fri, 5 Jun 2020 11:01:26 +0300 Message-ID: Subject: Re: [PATCH v4 02/11] mfd: Add support for Kontron sl28cpld management controller To: Michael Walle 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=2DK=C3=B6nig?= , Wim Van Sebroeck , Shawn Guo , Li Yang , Thomas Gleixner , Jason Cooper , Marc Zyngier , Mark Brown , Greg Kroah-Hartman , Andy Shevchenko 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 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? > + depends on OF I didn't find an evidence this is needed. No Compile Test? > + select REGMAP_I2C > + select MFD_CORE ... > +#include No evidence of user of this. I think you meant mod_devicetable.h. ... > +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. > + }, > +}; -- With Best Regards, Andy Shevchenko