Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4456415ybi; Tue, 11 Jun 2019 07:01:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxGjrIMqSoeV59ZuBPRNiBoR3uhYJka4tGrFiL1aYtG6ybRLzzHw6NzExtxoi/aXZjZTCEz X-Received: by 2002:a63:4e07:: with SMTP id c7mr20740272pgb.350.1560261673496; Tue, 11 Jun 2019 07:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560261673; cv=none; d=google.com; s=arc-20160816; b=vC4T/mIJdF/k7fJrPqv4k8DaBLKHTn55eW179je0zyi6803b+0fgoYtul5HhcGPRpR +wrfcgRPdZC9714bwFpG9SbO2xoRbJ6NHyhgwXpNfNW8xUngzPTksJ9N5LhrBVFOCGva J1ITmPgbUAybvpooojmDQgTm1tWS/CzxOwzIZXGWuGpUpYfazF1F73TV1b7BMMsIH97I CIDZXBWdnypHTBK54E5OxYsuvdOdBmlSYameA5JCNWXEXJ2CHnpT4+ZCwdz6lR4RbMiR TUJn4DPT+Bg2AlZPhwcx4KvJ3c8Ybx4esb+6x6tiBpJnVqnOrlov+zjSPE8fzgfBmvwm 18OQ== 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=KyYvnirAncfvqftH8b0du6PTVoUwek5hDeS0HicdvJ8=; b=tifyOGCdTYv3jf4BN4WP+n2fk7Mq+dut520HzME8JGeeW0XUZO5Tusasc/U8MBCeEp yi6KJhynlYEAs5X29826nW5b2VXMT/5EHszF6aJQjIKS6Ci2RTE2/MD8ToGiqY6cZcoG 7avkWpzL4YH+eWrpWR5sgO9IsSsafUYHMediWVHYP7kR1y/OtKmC3TFdGv5qeigQ+C0G sS4F2To9SUziOcDcFaiOQ7fE6u1csHP7JSgXqVuFEMhbCgmO0YM33jd5nl4Zb4VNh4Yw I+hjl3tF+tqOnT3danJ10POYOVylbcEe4/YY71mql9rGvRCayM+ufUtydtWs2o6EznUt xCgA== 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 o3si12741332pfb.73.2019.06.11.07.00.56; Tue, 11 Jun 2019 07:01:13 -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 S2390351AbfFKNMG (ORCPT + 99 others); Tue, 11 Jun 2019 09:12:06 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:36056 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390242AbfFKNMG (ORCPT ); Tue, 11 Jun 2019 09:12:06 -0400 Received: by mail-qk1-f196.google.com with SMTP id g18so7589101qkl.3; Tue, 11 Jun 2019 06:12:05 -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=KyYvnirAncfvqftH8b0du6PTVoUwek5hDeS0HicdvJ8=; b=a0gDpktX2fWf6Gi+wK6lT/F9VVIzl1ms/u98eTt4Gz7fp+vl73j+u+ZPuqBggcBE69 fCjIAEwJIvrODWmDMQwlpZMvqHQKaEydPGlHJ0saMvsjo2YnVA/HcvmyEaIikVA5+McR DMth3ZVgxSFtDZ6o1/4GQC01AVPdsz753Z7UiAkgHjCP+YT4V4FocO2ZlpHsd2eMHxft 2Ruy9qo4cuWMXQ3sbZ1P9IEFaCEm3zfjpLmZRgXiyiepypbMKX5qMiUAP3p873aqhi0g U7d+kS8ARmSvQCMqHAuMVLbx1uPg9F7+V+xIwZmUha5MQsXsXwUD+Pes6H7DKQNFH8g/ 3dvw== X-Gm-Message-State: APjAAAVggiqXGCaYc9kPIiL7aXP5FvhijUfzONkm9OKEJsgkIwN7eYgU 0DubTmDONT5Y2XChPD3FD2QBHYV3zo7dRvox0OA= X-Received: by 2002:a05:620a:16c1:: with SMTP id a1mr17486493qkn.269.1560258724850; Tue, 11 Jun 2019 06:12:04 -0700 (PDT) MIME-Version: 1.0 References: <20190610133245.306812-1-tmaimon77@gmail.com> <20190610133245.306812-3-tmaimon77@gmail.com> In-Reply-To: <20190610133245.306812-3-tmaimon77@gmail.com> From: Arnd Bergmann Date: Tue, 11 Jun 2019 15:11:48 +0200 Message-ID: Subject: Re: [PATCH v1 2/2] soc: nuvoton: add NPCM LPC BPC driver To: Tomer Maimon Cc: Olof Johansson , gregkh , Rob Herring , Mark Rutland , Avi Fishman , Patrick Venture , Nancy Yuen , benjaminfair@google.com, Joel Stanley , DTML , Linux Kernel Mailing List , OpenBMC Maillist , Andrew Jeffery , 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 Mon, Jun 10, 2019 at 4:19 PM Tomer Maimon wrote: > > Add Nuvoton BMC NPCM BIOS post code (BPC) driver. > > The NPCM BPC monitoring two I/O address written by > the host on the Low Pin Count (LPC) bus, the capure > data stored in 128-word FIFO. > > Signed-off-by: Tomer Maimon We've run into this situation before, but don't have a good solution yet: The driver seems useful and well implemented, but I keep having a bad feeling about adding a chardev driver into drivers/soc for something that is clearly specific to a particular implementation on the hardware side but generic on the user interface. The same user interface might be used on an Aspeed BMC or any other one, so please coordinate at least between Novoton and Aspeed developers on creating a common user interface, and review each other's patches. 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? Arnd