Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7981161rwi; Tue, 25 Oct 2022 00:26:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6VMhvRKnjuGftILs/J5ZjQ0DG2MkoEU/HY7RUEQpjcFufrjBTWy11Tm7sBjh3Is8wX3l8H X-Received: by 2002:a17:906:5d04:b0:77f:ca9f:33d1 with SMTP id g4-20020a1709065d0400b0077fca9f33d1mr31213260ejt.526.1666682815317; Tue, 25 Oct 2022 00:26:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666682815; cv=none; d=google.com; s=arc-20160816; b=BZBVpifVYrA7hc6RaT/cOBjGybIq58G3wQyXPvUjWhGKDFm8yfwGmZEi6Va05fxKNu 2RXxAch6k0exGDQfcsp1NvjDj68/BYTHBV+FTemnoEBfsW6QeDzCopCaYyq21qPqvbL4 GdHRAsn03KmXMilk80TdQAenTrMG/lsfShaOj5lDctVi0ZA0oAeJ28jTMegF9xkiRzly MRg4kH1f4e0GyeqT1fD0A8UHgJVlfO/4Mq2UtrPGYICDRUrYKnNc2dvin4bnU/tmc68V EnrDe3SN0IE7lEsHu7z7ag1G1daO16zm4Et0sw47BgKAxOwMCOzRkkVlh672HQfcmVSY 6+8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=d7qO3dpJ8HvdIyXiTumgBZvdOVevld4et5N2keCzHRg=; b=j+dl7BNWqWVfyeTZHxzoCBSfa1B+lj9xxS/0wcz6tTbxnka6irlXlAtS35SmVDQfrb oNRmJnWuoCmdz6f7k6J7wBiMH7Hu0smXEk9JsuQfspE9LHlmCrqmHVo+WZpeJcjnOxyY K1nuzbNimsCJGIzrGCI2EEo4zJtffCHsKZe+IUeC705H7DUVYmbYY/KXPBjqvaXRcvPf Rxi4qS8jmToQWG5BaQ/hVRzxwroP5R/ArUGWADqLpNXmE545htgwP+AlOoTFtwnh4p60 oZ6qoykOh5iUi2qVla0gMkFi3Zr4fNjciM+VVc6pVhSQPUx92HpfFtKOd9W3Lirzgxq8 FrWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=h7cq5Lmi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x11-20020a1709064bcb00b0077eca9fa444si1693762ejv.187.2022.10.25.00.26.29; Tue, 25 Oct 2022 00:26:55 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=h7cq5Lmi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230470AbiJYHDu (ORCPT + 99 others); Tue, 25 Oct 2022 03:03:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231464AbiJYHDr (ORCPT ); Tue, 25 Oct 2022 03:03:47 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3650FB56C8; Tue, 25 Oct 2022 00:03:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666681426; x=1698217426; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=IdGt3/sVdQCrkszY6V9UyvuqPthfUwGWvmfdyyXo7/w=; b=h7cq5Lmiaor1uh87PYbicyG2gOym1MNG0UME2FspV0/+aeU6FUe+eiYl GcI9nPfZNrAQc6Z7rex9aR/WcD/WsWAggrE8e/KiCMyfYjzLC/xhQ4Z0h LT6n6oROc8lCR0zGJTJUjmtlB8QJneUuTQ8jqQQUEonqq2wSAG0hrbUEr ns7W7o8qHwxx5voAvgXgXmtJ/5SqwPkITqgPCMP6sEq5xVoUGU2XnjsBf /K/UD6MdbZaPtSbREob4mSBwDSJ4B/Kceyb8NqWV7JyI3fG8Onlq1Ecgd diguoO9oC6/xJAbMfks88zN0bVXYTANbT1t2aKQHaST3pVznXeumD7wJb A==; X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="288002177" X-IronPort-AV: E=Sophos;i="5.95,211,1661842800"; d="scan'208";a="288002177" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2022 00:03:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10510"; a="626328772" X-IronPort-AV: E=Sophos;i="5.95,211,1661842800"; d="scan'208";a="626328772" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orsmga007.jf.intel.com with ESMTP; 25 Oct 2022 00:03:42 -0700 Date: Tue, 25 Oct 2022 14:54:38 +0800 From: Xu Yilun To: Ivan Bornyakov Cc: mdf@kernel.org, hao.wu@intel.com, trix@redhat.com, dg@emlix.com, j.zink@pengutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, system@metrotek.ru Subject: Re: [PATCH v20 1/2] fpga: lattice-sysconfig-spi: add Lattice sysCONFIG FPGA manager Message-ID: References: <20221025053947.2737-1-i.bornyakov@metrotek.ru> <20221025053947.2737-2-i.bornyakov@metrotek.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221025053947.2737-2-i.bornyakov@metrotek.ru> X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED 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 On 2022-10-25 at 08:39:46 +0300, Ivan Bornyakov wrote: > Add support to the FPGA manager for programming Lattice ECP5 FPGA over > slave SPI sysCONFIG interface. > > sysCONFIG interface core functionality is separate from both ECP5 and > SPI specifics, so support for other FPGAs with different port types can > be added in the future. > > Signed-off-by: Ivan Bornyakov [...] > +static int sysconfig_spi_bitstream_burst_init(struct sysconfig_priv *priv) > +{ > + const u8 lsc_bitstream_burst[] = SYSCONFIG_LSC_BITSTREAM_BURST; > + struct spi_device *spi = to_spi_device(priv->dev); > + struct spi_transfer xfer = {}; > + struct spi_message msg; > + size_t buf_len; > + void *buf; > + int ret; > + > + buf_len = sizeof(lsc_bitstream_burst); > + > + buf = kmemdup(lsc_bitstream_burst, buf_len, GFP_KERNEL); > + if (!buf) > + return -ENOMEM; > + > + I removed the second blank line and applied this series to for-next. Thanks, Yilun