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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5ED4AC07E9D for ; Tue, 27 Sep 2022 20:19:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231783AbiI0UTy (ORCPT ); Tue, 27 Sep 2022 16:19:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230296AbiI0UTO (ORCPT ); Tue, 27 Sep 2022 16:19:14 -0400 Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [IPv6:2a01:37:1000::53df:5f64:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1ADC4C60A for ; Tue, 27 Sep 2022 13:19:05 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id 667CC300BA6FC; Tue, 27 Sep 2022 22:19:01 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 4815E2E576; Tue, 27 Sep 2022 22:19:01 +0200 (CEST) Date: Tue, 27 Sep 2022 22:19:01 +0200 From: Lukas Wunner To: Mark Brown Cc: Yang Yingliang , linux-spi@vger.kernel.org, Geert Uytterhoeven Subject: Re: [PATCH -next 1/2] spi: introduce devm_spi_alloc_controller() Message-ID: <20220927201901.GB24652@wunner.de> References: <20220926142933.2299460-1-yangyingliang@huawei.com> <20220927034525.GA32253@wunner.de> <703c43ca-ab47-bfd9-da26-d435aaf236e5@huawei.com> <20220927133129.GA29821@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org On Tue, Sep 27, 2022 at 06:01:39PM +0100, Mark Brown wrote: > On Tue, Sep 27, 2022 at 03:31:29PM +0200, Lukas Wunner wrote: > > On Tue, Sep 27, 2022 at 07:57:05PM +0800, Yang Yingliang wrote: > > > Do you mean to introduce two more proper wrappers to instead of > > > devm_spi_alloc_master/slave() ? > > > Honestly I don't think there's room for (or a need for) improvement here. > > The issue here is that we're trying to get rid of the master/slave > terminology. Converting drivers to use spi_controller everywhere in lieu of spi_master is fine, but drivers need to specify whether the spi_controller is a master or a slave and Geert's design is to specify that on allocation. Which makes sense because that's the moment the spi_controller comes to life, there's no earlier moment where one could specify the type. Thanks, Lukas