Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7033580ybi; Thu, 13 Jun 2019 08:27:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+Z6AJ/f0q29r2uQWelM5/ZhgvcJ7sNzCbt75szinuJPMDWDXTzpRLp+4yyHUHwzciG1jo X-Received: by 2002:a17:90a:24e4:: with SMTP id i91mr6451140pje.9.1560439674837; Thu, 13 Jun 2019 08:27:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560439674; cv=none; d=google.com; s=arc-20160816; b=Z/LqPxJRwwVZiiIwC79DPJeq+jM9Y8G0WqFTT0yKPUPWPByv31QqvpDV2YgFwyc1zy 0lwE1l1jogmACFfdc+5bB6WMoIaiRzQ3p41m0xxYcfxuOlrJ+xeutoqlF44Reu9HTzV8 GVyMLFDLd2CErmUpmWHbBgZLf23XMSJ6H3KyDD7Dw7I2lgxTba82b25EiqJxv1O2pM15 rp+Tb/GHj8iL76sePU6q0J2CB/RvPXfXfFlBJDpe+rWRJ8a+N+QoYqGrW7j86pBTqz1W TR2SOUWXhptHDNoMLlQxGLbmaNBrAl0ufkic3Wb4ub7DNwQToshXFCVlYjmy7BGJaWwn 0Bbg== 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; bh=S6eReS1tzSjL5Z2a0z+5t8DdvrnPFO8rpSM4WEkGBlk=; b=0+8nHNSa27TZBLmSgsP4zJx11n2iMKdLfufIkenou9w8nn1mdLuoeQc8s8TdnLwGxm fIFy3zEjvnOk2GwXwNPtyIIstsTcfRKoOlEjtmf2kZyejdGKw5MDaVX815ksmwWrUgC+ QfWSgFe+I2dpTt6GnmZEc0auLvp++PgazsG+bvoOSgTmH0Q/4T24mrbOvJ3hKHdHix49 i45tfS2a5JY9vrKqV+Q0W5dJWOFWBpyAIW6CtCRr28VZsBqsrdoFTtcgztZCwDqV7xqC LkKHrbqv2IlN5M/elmysWt1s1cWLcrImtPSHLpKaFIiOkT8GsAVmwzcPvaDOl/MjDjwL eWlQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q1si3344112pll.25.2019.06.13.08.27.39; Thu, 13 Jun 2019 08:27:54 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729471AbfFMP0E (ORCPT + 99 others); Thu, 13 Jun 2019 11:26:04 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:43276 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729433AbfFMLuA (ORCPT ); Thu, 13 Jun 2019 07:50:00 -0400 Received: by mail-qt1-f194.google.com with SMTP id z24so8894651qtj.10; Thu, 13 Jun 2019 04:49:59 -0700 (PDT) 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=S6eReS1tzSjL5Z2a0z+5t8DdvrnPFO8rpSM4WEkGBlk=; b=lZNkmxxLo4PkFFyCa9VMvzoH6FtYBO0hkJUrBqOJh+A3HtAQgrE9bzBL9ScvlvEm5D sTrbe0CAd317VaD+lGWTCyDhW5jlHP/EjJDldASekK8AOef7rR8S2uiBFjjrUhp4sjUC A6z5D7rpSsLq+oJTV/Fu0hRn2GK0Xq2NqKstqoSWk2syo31RHRugS6CX8Fmb2DK8TO2K 7q6HQ33w9m/5tNs7gwJc1iKFfEdZceLAO+9WCbeARXLAJdZCkdSJel8TWXqi1zQ7tow/ bvIvwya158Cc3WTcuT+MiFWNwugulwEuxGf45HOZ299/ETxJVcNfhe0sGh2npKW4/rmd 7InQ== X-Gm-Message-State: APjAAAWeiSzcplhI1gHPxmaoza3gN+t4sSRGZf82lVtGynoTuH+k/Xxg nalBlTc2uFccTvyEIYhnk+tYHRYVEvy3LzxFGXE= X-Received: by 2002:a0c:b758:: with SMTP id q24mr3141733qve.45.1560426599161; Thu, 13 Jun 2019 04:49:59 -0700 (PDT) MIME-Version: 1.0 References: <20190610133245.306812-1-tmaimon77@gmail.com> <20190610133245.306812-3-tmaimon77@gmail.com> In-Reply-To: From: Arnd Bergmann Date: Thu, 13 Jun 2019 13:49:42 +0200 Message-ID: Subject: Re: [PATCH v1 2/2] soc: nuvoton: add NPCM LPC BPC driver To: Tomer Maimon Cc: Patrick Venture , Joel Stanley , Andrew Jeffery , Olof Johansson , gregkh , Rob Herring , Mark Rutland , Avi Fishman , Nancy Yuen , Benjamin Fair , DTML , Linux Kernel Mailing List , OpenBMC Maillist , linux-aspeed@lists.ozlabs.org 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 Thu, Jun 13, 2019 at 11:18 AM Tomer Maimon wrote: > > > Probably the only vendors that will use the snoop will be Nuvoton and Aspeed. > is it worth to create new snoop common user interface for it, > if we will develop a new snoop user interface who will be the maintainer? One or more of you will have to volunteer to maintain the new subsystem. There are lots of ways this can be structured, and once you have a maintainer (team), they can decide how to do it, but I'm available to come up with ideas here. Generally speaking, you don't need a ton of abstraction. The drivers/watchdog subsystem could serve as a template there. This has both models, the old way in which each HW specific driver uses its own chardev, and the new model in which the common code sits in a library module, and individual drivers register to it. I think the amount of code for two drivers is roughly the same in either model, but the shared user interface implementation makes it easier to ensure that the interfaces are in fact compatible. The other thing your own framework can do is to provide some consistency between BMC specific drivers for different functionality. >> Maybe we can introduce a drivers/bmc/ (or even drivers/openbmc) >> >> that collects all those user interfaces with a thin abstraction layer >> and one or two hardware specific back-ends? > > Sounds good, Maybe we can move the KCS BMC from driver/char/ipmi to the drivers/bmc/? Good idea. Yes, please. Arnd