Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754077AbbDIW0g (ORCPT ); Thu, 9 Apr 2015 18:26:36 -0400 Received: from mail-gw1-out.broadcom.com ([216.31.210.62]:63020 "EHLO mail-gw1-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750785AbbDIW0b (ORCPT ); Thu, 9 Apr 2015 18:26:31 -0400 X-IronPort-AV: E=Sophos;i="5.11,552,1422950400"; d="scan'208";a="61887475" Message-ID: <5526FC95.1000500@broadcom.com> Date: Thu, 9 Apr 2015 15:26:29 -0700 From: Jonathan Richardson User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Mark Brown CC: Dmitry Torokhov , Anatol Pomazau , Scott Branden , Rob Herring , Pawel Moll , Mark Rutland , "Ian Campbell" , Kumar Gala , , , bcm-kernel-feedback-list , , Rafal Milecki Subject: Re: [PATCH v2 4/5] spi: bcm-mspi: Make BCMA optional to support non-BCMA chips References: <1428516275-12819-1-git-send-email-jonathar@broadcom.com> <1428516275-12819-5-git-send-email-jonathar@broadcom.com> <20150408200306.GM6023@sirena.org.uk> In-Reply-To: <20150408200306.GM6023@sirena.org.uk> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1646 Lines: 33 On 15-04-08 01:03 PM, Mark Brown wrote: > On Wed, Apr 08, 2015 at 11:04:34AM -0700, Jonathan Richardson wrote: > >> - A new config for non-BCMA chips has been added. >> - Common code between the BCMA and non BCMA version are shared. >> - Function pointers to set read/write functions to abstract bcma >> and non-bcma versions are provided. >> - DT is now mandatory. Hard coded SPI devices are removed and must be >> set in DT. >> - Remove function was unnecessary and removed. > > This looks like it should be a patch series in itself - for example, the > move to using function pointers as a read/write operation looks like > something that could easily be pulled out, as could the removal of > unused functions. Having things split out makes life a lot easier for > review since it makes it much easier to check if the change is doing the > things it's supposed to be doing. > Mark, thanks for the comments. I think we need a new driver instead of trying to re-use the existing driver that requires quite a few changes and that I also can't test. Having both drivers in the same file doesn't work well either. Common code isn't desirable because we're likely going to make changes to it anyway. It doesn't use interrupts currently and I don't like the polling for SPI transfer completion. Once I make the changes I'll submit a standalone non-BCMA MSPI driver for review. Jon -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/