Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp330061imu; Mon, 26 Nov 2018 11:29:31 -0800 (PST) X-Google-Smtp-Source: AFSGD/VKyqgNeagaefwTWHJNEFxAkFStFxcJgxtxyQv6RRyFhbhPcdQJL3/++r44YgX1N9HUC81s X-Received: by 2002:a17:902:b7c7:: with SMTP id v7mr29235450plz.75.1543260571642; Mon, 26 Nov 2018 11:29:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543260571; cv=none; d=google.com; s=arc-20160816; b=dBVI+8ipZ/+vKZDsCFeoAugFOka4EexcS63GAoTSRhvoxK/4z77G6yP+CSlWALTWbn OKZ5MyYfhLgi83uz0/kuPX+070HylskN2u+49JVx0JECDNjkOEV6TWsgjObb4Q+13Vzq SXHQWizlCuUpRvAxG37R1cMkr6oHjdbbO9Du4jTY82MM9J2mwIF6R1qTt9jNPaccRWVe 3+0m9yMXRUVR8aqVxS9/bWIB8Oui1S6Of9Xt+I18JmWTF4weq/qT6y+xscAOzJXcGVlV 9r5Zy+YYMyBbCyWsDOaOctbMGGDzcwSUlqfQAVyqspRlAleP4n91W1buepHixWobZDZ9 JqWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=nQpFNAzvlygDJNuClDxP9DptTSrO1p1AkbVtGzPC3bk=; b=G6W2E5hZNmbmcyETobATK/seGSFixC+eAf9CVk/vD9p6KT3wHagSBtFTVF90niAP2A xvy0xwG4N3c5DfY8ugvYDjrogo8aBtNr+L8oxPaWxBvY90k0AMEWWtRIuxiABLUB/sok HRuefHWiK76ogonwK67ja8R9yg42lOiLrbOvrc9HBY0ERAy2va5x3cfCbfVRg3Vz4gIz SplbsK8jEIfTALkUvTLH1K7GDXHGVMJvV2wiTkf4oHFYeLb7kZRQejfvboODoYF2JqNl VlEDXD0XxN54rfTDDPkI7cGsGqf13O77JKYQVCRfkVXhFERFj2Pzeb8MzaKGz6VGPnU2 yp6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=PsTFnbc+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13si1088901pgh.583.2018.11.26.11.29.05; Mon, 26 Nov 2018 11:29:31 -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; dkim=pass header.i=@synopsys.com header.s=mail header.b=PsTFnbc+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726810AbeK0GX2 (ORCPT + 99 others); Tue, 27 Nov 2018 01:23:28 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:60576 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726251AbeK0GX2 (ORCPT ); Tue, 27 Nov 2018 01:23:28 -0500 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 3304824E083B; Mon, 26 Nov 2018 11:28:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1543260501; bh=wftyrKsUmroNh89usYtNK2o903693/PJTlzIUE+2TQs=; h=Subject:To:CC:References:From:Date:In-Reply-To:From; b=PsTFnbc+qp/2GKyBv84W4jYozcbj7upt+o1wP+cfwrzH37v37G1K5A9G7UrPuCox7 d6SvPVc6eiSh9qLOg9cwf41SK6JxbTosNCd7dAHnexvhpr29YFpU+SFtnjDSvXmF1M A+jBmVu62NfKTeyXBNzQJlcmvQI+5/5fa3BJz6CSTr7pmFJrIZKEdzl5vErGt1/hzs TRAWkkmozL//qqVCwX7Jx36Cu8i2bXleG21YMwYTbg6TxvlKgwJ0Xb74QpuZn9tEv7 b0ZZYHXjg2RtvXD54sj1YPg2vIZ9ko4MzZWor3dgfasysX6oTGXUbp75xbkEx0Ic46 SzrqcLJvkQ2uw== Received: from US01WEHTC3.internal.synopsys.com (us01wehtc3.internal.synopsys.com [10.15.84.232]) by mailhost.synopsys.com (Postfix) with ESMTP id 2D297392C; Mon, 26 Nov 2018 11:28:19 -0800 (PST) Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by US01WEHTC3.internal.synopsys.com (10.15.84.232) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 26 Nov 2018 11:28:18 -0800 Received: from DE02WEHTCA.internal.synopsys.com (10.225.19.92) by DE02WEHTCB.internal.synopsys.com (10.225.19.94) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 26 Nov 2018 20:28:17 +0100 Received: from [10.0.2.15] (10.107.19.169) by DE02WEHTCA.internal.synopsys.com (10.225.19.80) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 26 Nov 2018 20:28:16 +0100 Subject: Re: [PATCH] i3c: master: dw: split dw-i3c-master.c into master and bus specific parts To: Boris Brezillon , vitor CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 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> From: vitor Message-ID: Date: Mon, 26 Nov 2018 19:28:02 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181126200855.0caa45b0@bbrezillon> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.107.19.169] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.