Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753064AbcJUJ4e (ORCPT ); Fri, 21 Oct 2016 05:56:34 -0400 Received: from smtprelay.synopsys.com ([198.182.60.111]:59619 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751583AbcJUJ4c (ORCPT ); Fri, 21 Oct 2016 05:56:32 -0400 Subject: Re: [PATCH v2 3/4] Device bindings documentation updated ACPI-enabled platforms not currently supported To: Wolfram Sang , Ramiro Oliveira References: <36f4b1736e36b039af15b13645df0de492f1b6e1.1476462204.git.lolivei@synopsys.com> <20161014173014.GA26269@leverpostej> <20161014182045.GA1509@katana> <55cc91af-8d24-8aea-f74f-2ef40cd8ea5a@synopsys.com> <20161018151706.GA1433@katana> CC: Mark Rutland , , , , , , , , , From: Luis Oliveira Message-ID: <76ab13e9-9aa5-97c3-2328-928bbcef9877@synopsys.com> Date: Fri, 21 Oct 2016 10:56:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20161018151706.GA1433@katana> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.107.19.90] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 682 Lines: 17 Since practically 90% of the code is shared between master and slave, I was thinking if it will be acceptable to use the same driver for both but differentiate the master/slave mode by the compatible strings. Thanks, Luis On 10/18/2016 16:17, Wolfram Sang wrote: >> This is needed because the configuration is different and the i2c-designware >> cannot be master/slave without a reset. To resolve that I added this property >> to bind it as a slave when needed. > Aww, pity that the HW can't do that. Do you have details why? > > If that is really a HW limitation, then I'd suggest having a seperate > driver for slave-only mode so we can differentiate by compatible > strings. >