Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp248602imn; Fri, 29 Jul 2022 05:52:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1urAgkirKBQqN+rE6XCedkzD90WP0cucauBjMFO9bBommFx4IH/DGyDwB7K6/5ABDXtIIGD X-Received: by 2002:a05:6402:5388:b0:435:71b:5d44 with SMTP id ew8-20020a056402538800b00435071b5d44mr3341402edb.364.1659099148361; Fri, 29 Jul 2022 05:52:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659099148; cv=none; d=google.com; s=arc-20160816; b=k1g+C89ccPwbzVX9Sg8s6dwgskvOjhOAYa9k89deu8QKKJINzyA1f4BWwGMkr8x8aS GucK2mtgVEcdZ/u0Gp1KcCIT6bBBB8l9U2lYLvwcBcnStQz+IgUcOedR6WfbTgp6vQSZ 6Dj6K6X4IhwEHY93x5FoxUraEGAAF4bitJsFTbcGNrbtZmysUhseXTUV6AbmkIt4sIn2 Ujd07tHnhP6r/TvH98FxzWAIEIVm/SQdFsI/akIZx+aXmj4ujhzF2vrH8VJGTwNzsofY P1OSnCqOROCgiZheA+qiRYyM4mXLVOWEDQyoiaXrBTyM2UyvpW8yuLoWZiAU9DxeOkcF +3qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=1eQdpdz5LsjyX5M0Gk5OgEwZMcjpyop9SB7Sb44BdR4=; b=pRIXuoqbNTVnW4rbEHuZAXDTbqpVlrsyLuofTrNZqeUxe8Su7Axc04b6JQK8jyGSpw ZEtRp71nlbkuE+xUBcDe5yDewvqFhgeynnaLfjnYs8XgC4373WMDHNzOTeG5yhSp3DhX zeyLtYoaNSuc038UEAbi26gToqmxxJLRoKUPgt7E/HaHLkX8v/YKuGrblvPRcUSaRbuS edDSjwlxyCYBjMsg2dQoMdtZ9Qvmd8pfaX3RqkjIKESPj7EGFMQRxX8IX9E1B/xhXF+o rhvOKZTTPsjmCqa4rdQxid36Y433G3h/rDxd9sngMAc8GG0TgG1VdCRFakbS/ThZ45zv j/gQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c6-20020aa7df06000000b0043be98925a2si2233893edy.499.2022.07.29.05.52.01; Fri, 29 Jul 2022 05:52:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234434AbiG2Mlw (ORCPT + 99 others); Fri, 29 Jul 2022 08:41:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232085AbiG2Mlu (ORCPT ); Fri, 29 Jul 2022 08:41:50 -0400 Received: from mx1.emlix.com (mx1.emlix.com [136.243.223.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 052A854AFC; Fri, 29 Jul 2022 05:41:46 -0700 (PDT) Received: from mailer.emlix.com (p5098be52.dip0.t-ipconnect.de [80.152.190.82]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 3C8EF5FED8; Fri, 29 Jul 2022 14:41:45 +0200 (CEST) Date: Fri, 29 Jul 2022 14:41:44 +0200 From: Daniel =?iso-8859-1?Q?Gl=F6ckner?= To: Ivan Bornyakov Cc: mdf@kernel.org, hao.wu@intel.com, yilun.xu@intel.com, trix@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, system@metrotek.ru Subject: Re: [PATCH v5 1/2] fpga: ecp5-spi: add Lattice ECP5 FPGA manager Message-ID: <20220729124143.GA31715@homes.emlix.com> References: <20220719112335.9528-1-i.bornyakov@metrotek.ru> <20220719112335.9528-2-i.bornyakov@metrotek.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220719112335.9528-2-i.bornyakov@metrotek.ru> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Jul 19, 2022 at 02:23:34PM +0300, Ivan Bornyakov wrote: > + struct spi_transfer lsc_xfers[] = { > + { > + .tx_buf = lsc_init_addr, > + .len = sizeof(lsc_init_addr), > + .cs_change = 1, > + }, { > + .tx_buf = lsc_bitstream_burst, > + .len = sizeof(lsc_bitstream_burst), > + .cs_change = 1, > + }, > + }; cs_change in the last transfer of a message will not prevent transfers with other spi devices on the bus from taking place. You want to use spi_bus_lock and friends in addition. Best regards, Daniel