From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3504C55ABD for ; Tue, 10 Nov 2020 22:53:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 78BB3205CA for ; Tue, 10 Nov 2020 22:53:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732544AbgKJWxr (ORCPT ); Tue, 10 Nov 2020 17:53:47 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:47184 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730254AbgKJWxr (ORCPT ); Tue, 10 Nov 2020 17:53:47 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kccW6-006MY8-H1; Tue, 10 Nov 2020 23:53:34 +0100 Date: Tue, 10 Nov 2020 23:53:34 +0100 From: Andrew Lunn To: Sven Van Asbroeck Cc: Andy Shevchenko , Heiner Kallweit , Jakub Kicinski , Russell King , "David S. Miller" , netdev , Linux Kernel Mailing List , Mark Brown , Linus Walleij , Frederic LAMBERT , Gabor Juhos , Jonathan Cameron , linux-spi Subject: Re: [PATCH net v2] net: phy: spi_ks8995: Do not overwrite SPI mode flags Message-ID: <20201110225334.GN1456319@lunn.ch> References: <20201110142032.24071-1-TheSven73@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, Nov 10, 2020 at 12:06:37PM -0500, Sven Van Asbroeck wrote: > PING Jakub > > On Tue, Nov 10, 2020 at 11:30 AM Andy Shevchenko > wrote: > > > > I see that this is a fix for backporing, but maybe you can send a > > patches on top of this to: > > 1) introduce > > #define SPI_MODE_MASK (SPI_CPHA | SPI_CPOL) > > spi->mode &= ~SPI_MODE_MASK; > > > + spi->mode |= SPI_MODE_0; > > > Jakub, > > Is it possible to merge Andy's suggestion into net? > Or should this go into net-next? I would keep with the minimal fix for the moment, it keeps the dependencies simple. When you add a helper, it should really be somewhere in the SPI code, not the net code. So we need both the SPI and the net maintainers to cooperate to get the helper merged, and then this driver using the helper. Andrew