From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752351AbdJ0JF0 (ORCPT ); Fri, 27 Oct 2017 05:05:26 -0400 Received: from smtprelay.synopsys.com ([198.182.47.9]:59711 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751719AbdJ0JFY (ORCPT ); Fri, 27 Oct 2017 05:05:24 -0400 Subject: Re: [PATCH net-next 2/2] bindings: net: stmmac: Add documentation for TSN parameters To: Andrew Lunn References: <23152048-09fe-2950-e1ff-8cf90ca3f465@synopsys.com> <20171026090308.GD20299@lunn.ch> <867d6d43-9df7-4097-db5a-f2049236394f@synopsys.com> <20171026215629.GB8489@lunn.ch> CC: Florian Fainelli , , , , "David S. Miller" , Joao Pinto , Giuseppe Cavallaro , Alexandre Torgue , Rob Herring From: Jose Abreu Message-ID: Date: Fri, 27 Oct 2017 10:05:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20171026215629.GB8489@lunn.ch> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.107.19.60] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, On 26-10-2017 22:56, Andrew Lunn wrote: >> About my patches, what I think would be better now would be to >> drop the configuration by DT and integrate the remaining >> configuration, letting the EST parameters be populated by SoC >> specific wrappers. > Hi Jose > > The problem with SoC specific wrappers is that you are going to have > to remove them once the real interface is defined. Anybody who uses > your SoC specific wrappers is going to have to re-write their code, > when it all gets ripped out. Yeah, I agree. But what about just merge the implementation and then construct the interface? I mean just creating the internal parameters in stmmac and then the configuration functions. > > You generally don't add device SoC specific wrappers. Imagine if > everybody did that. Lots of different ways of doing the same thing. > My suggesting is to keep your patches out for the moment, waiting for > generic support to be added. I think we should take advantage of the fact that this is working and ready to be merged. Its just HW configuration but maybe it can serve as momentum for other drivers to also integrate this? Best Regards, Jose Miguel Abreu > > Andrew