Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp374091imu; Mon, 26 Nov 2018 12:08:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/XA6BYPeZaLsfQvleNoBNpAuHpuYGNdWyzeoL2X0149v3nX7ka8vEVnzMsmBrjrbHFUO2bq X-Received: by 2002:a62:1043:: with SMTP id y64mr6888489pfi.78.1543262920858; Mon, 26 Nov 2018 12:08:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543262920; cv=none; d=google.com; s=arc-20160816; b=a9iR+YJrsXhzAOHpd7lhgvCpvJmkTnEK484PQ3P6KdnZxHSPA+mRSOHYU/Pz6OsbmQ WwQe8W86BC3NyWaH11MMKUBMhReFI0R/KFXP+p/QtcMqa6GjXzkeZZv9mnh2MVKpoCNW 5wC5s8j3ZwoKmWt+dvCigZlswEDrvYitrHDnWWIFaRUog6ZS7MihF2x9/55GBRYO2KBN KDyAAm1qKhYKE7rFC3mZcV9vZsila9AqkY2Tzjt5WCEFUGiVRiotesLvPqJmhJGmm6aM YOPs94KpBr6T6E5hRo4FdqphuTBu88u5YMxROflEmttmdzMIhXl6kNPklMeg7JJHBoSv +aYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=xznUyDTnKU5S9aadDMWdPMKfkSPYY5EptdR0q24jliI=; b=FgF4aNKPsyOEU0McRsvZviY1kvwTIGsCMbUkvQGhO0Czx+A5wjVyFMjK5iC1+RW7hj JNXWFOQuoAaPCv3DYsLowjpN+v2jhlmVUbUMV6/k/Klqm7iUSyk7f1FvIjz98NHBmlGN Ucbz2lrz+kiPdfGspIUrdw9xlAWMA6z4aQTqCgPv7Yb4HKvZGlrPyPdXFnNHH1BeXQ/p idvYSh7EtEb6ITQVccHZlxQIfLHCIcxpTEFaqnOz/IPy6BuGV2asnNODdLj81gYau/eu SBp/NGRxb4islEQnpujf2sT9WVC3Z5fDIwdVv1Cn1ubAk0nCgUXZ4NiD3+Zp9X5lnJBQ WGCg== 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 h5si1194624pgc.237.2018.11.26.12.08.15; Mon, 26 Nov 2018 12:08:40 -0800 (PST) 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 S1727257AbeK0HCi convert rfc822-to-8bit (ORCPT + 99 others); Tue, 27 Nov 2018 02:02:38 -0500 Received: from mail.bootlin.com ([62.4.15.54]:41826 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727234AbeK0HCg (ORCPT ); Tue, 27 Nov 2018 02:02:36 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id BC1DC20D2E; Mon, 26 Nov 2018 21:07:20 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id D4A6C206A1; Mon, 26 Nov 2018 21:06:38 +0100 (CET) Date: Mon, 26 Nov 2018 21:06:38 +0100 From: Boris Brezillon To: vitor Cc: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH] i3c: master: dw: split dw-i3c-master.c into master and bus specific parts Message-ID: <20181126210638.0b8c4ee8@bbrezillon> In-Reply-To: References: <20181122210202.6af50fcc@bbrezillon> <6d513e04-3a57-1989-429c-64631101c5a2@synopsys.com> <20181123135004.7fd1cd58@bbrezillon> <83115f47-1326-cb33-a7dc-4bc8ff95befa@synopsys.com> <20181126133550.51469816@bbrezillon> <4e9c0461-02a3-80b2-c9b7-2e9ea9b38f8b@synopsys.com> <20181126195618.352eafb1@bbrezillon> <20181126200855.0caa45b0@bbrezillon> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 26 Nov 2018 19:28:02 +0000 vitor wrote: > On 26/11/18 19:08, Boris Brezillon wrote: > > On Mon, 26 Nov 2018 19:56:18 +0100 > > Boris Brezillon wrote: > > > >>>     - for the others it will easy the SoC integration avoiding > >>> duplicated work and doing things from scratch. > >> What would be duplicated? You want to support a new SoC, just add a new > >> entry in the of_match_table and you're done. When you need to add > >> SoC/integration specific stuff, create a struct and attach a different > >> instance per-compatible so that each SoC can have its own configuration > >> (or even init sequence if needed). That's how we do for pretty much all > >> IPs out there, why should designware ones be different? > > To be more specific, I'd like a real example that shows why the > > separation is needed. > > Ok no problem. We can delay this for PCI and other rules support. I finally understand what this separation is all about: supporting both PCI and platform devices. I guess I've been distracted by this sentence: " This patch will allow SOC integrators to add their code specific to DesignWare I3C IP. " which for me meant each SoC would have its own platform_driver. In any case, I think this is a bit premature do this separation, unless you already know about one integrator planning to expose this IP over PCI.