Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp586401pxb; Tue, 15 Feb 2022 22:58:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyo8oTRApjKgO2WVDuz5eH4GU9mVq1PKucyjZC97eK9qXyOTfkRJkuSLF+kvge6v1WsKopK X-Received: by 2002:a05:6a00:150a:b0:4cc:f6a6:1bc6 with SMTP id q10-20020a056a00150a00b004ccf6a61bc6mr1357797pfu.74.1644994721504; Tue, 15 Feb 2022 22:58:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644994721; cv=none; d=google.com; s=arc-20160816; b=wJ+tah6HN4nPFEZHK4fFrAbdAmna+ymunfJ5xvGh8PutKmjPWbEsP0UKy2qXacmP7O kKDnJB7r16SKAZu8oQPaBpWik1+TjBJgow8tFo5wPwM87jWkDeJ/Jg4ali5nEjtqHvrF 1HzE6BIAAW0ZkM9qpTS94XJ23ayfesSbC+sJRqlzC7XR2cFmAXXn2Rgphwt9mKUsIi1R s9IQarOZC3HYH/BUQhTWTOu/4xvNIS2pgRutnqtp8T/D/ZnWfzGq4/vGWSjf8iuUF2lC WPfSl5knf3A8JS39TKT9CYXKxDpK2peucwm1t9EfpnWoPSbG2veB9BTi65QF1wL6Ug5R M/FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=R0kZYuJZbdqjU2MhVLg6cTjo0WK3NRkG42w5SRhp0kg=; b=d5SL7dSHb9I1fxuQUN8KZUzbEL1TFZ1MZkFgKKtvoAgfeAOztuj+7FcBQr5DjDt/5J BGH3gsDkGXs9Hv6Wwg6TOjZJRfuyO5bj++nBnkXOjmuziiHesHMMLSeXgu/sb5oNkMb5 xc+Ff4tPdRZNvg6pWUwbnE47v1Fv5qmpOMLX1wdQEvQBHPXt1BtplSt7CGvvVYhZ78t+ giPV1i9Fl15Rxq8Iw7pkSvB2Hnqfc+vZf181w0v0j3eWTBifGl8NPXcYYW2DzIEPzZy3 pxZ2VuIIpPF1WJKl1VW/bnOIrlqNF/xZ0Vyyy85JtHuFWKK5Wf2WfiN05oC1B6pYx01A B2dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@conchuod-ie.20210112.gappssmtp.com header.s=20210112 header.b=yYGXGlyz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d1si21493731plh.495.2022.02.15.22.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 22:58:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@conchuod-ie.20210112.gappssmtp.com header.s=20210112 header.b=yYGXGlyz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=conchuod.ie Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2F50223811B; Tue, 15 Feb 2022 22:40:45 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240614AbiBORhS (ORCPT + 99 others); Tue, 15 Feb 2022 12:37:18 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:39518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238214AbiBORhR (ORCPT ); Tue, 15 Feb 2022 12:37:17 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADF704704D for ; Tue, 15 Feb 2022 09:37:06 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id d27so33372865wrc.6 for ; Tue, 15 Feb 2022 09:37:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=conchuod-ie.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=R0kZYuJZbdqjU2MhVLg6cTjo0WK3NRkG42w5SRhp0kg=; b=yYGXGlyznw09WQ/xKzvhgMUv6g3x7Sv9cBOqEdecKRX2B49o9XZ0lC4nzZHMFpTsOY B6tj2aG5sJpZGsjSXhWRoY8Rz+VoGQ75wFlWyq7b6k2LMxs4aJmO1Gt0SnKlK+0Dkwy/ LLxKKB3WaGRpQjE3yO8iPqBSqjXXFdbbA7tluuHWi63Kk6cQ1UEQ3NZXQ7Cd0rvQSHFZ N+k2lpEAIpNSeItcDEH1qrJIKMBAgHfWEUN8wRN+L3G5BO2+VFXLBOUVejXt1iF+q1fu BAEhVgt5Jhuppf3sE2I1VXLJWyXm+pL2squPa0bR6MkL8Y+KtLLXVjNP5Gm+q0FtdpyS TK9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=R0kZYuJZbdqjU2MhVLg6cTjo0WK3NRkG42w5SRhp0kg=; b=cROyd//mzbTX5ICHh0D/yfCm9dQverfHTge/YzWX6QdF/f9d+TohsvwQ+DAetCTa+y FaCYHTywzWgzQ64QI34J9+b2e4Dx7d/htxefNL7FtdFRPNCjAed8rPvH3x+j7kL0SvcT q2jXNPOPUTGIWxouyIqf0S2ghmKSDNzgoCkbcJeoZmvTCZH+q01D2PytLUft5MrGex/K xX4tGnX/qRfMiW3HrDzfs7dxN770yfz/mJVhEZJTMtfI23osu1mZwyfWtK3TmkablQuA EpgnPMJ2pnwdl2l/VzkNW+LxHX+j3QjqvB06OzWD7BVgZlUnqyFLrh0DwDQ5c79gPSOX 2Hiw== X-Gm-Message-State: AOAM532yG0PsoKm0wq4Iy/Q4jCztmqNuaKOG0SVvBRt4H8S6LYlROljy efbVnkz3SUSd7MrgTOMlnDJgP++SyeTdHlZKK7k= X-Received: by 2002:a5d:4941:: with SMTP id r1mr57735wrs.644.1644946625283; Tue, 15 Feb 2022 09:37:05 -0800 (PST) Received: from [192.168.2.116] ([109.78.72.167]) by smtp.gmail.com with ESMTPSA id c9sm13422503wrn.51.2022.02.15.09.37.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Feb 2022 09:37:04 -0800 (PST) Message-ID: Date: Tue, 15 Feb 2022 17:37:04 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH v2] fpga: microsemi-spi: add Microsemi FPGA manager Content-Language: en-US To: Ivan Bornyakov Cc: mdf@kernel.org, hao.wu@intel.com, yilun.xu@intel.com, trix@redhat.com, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, system@metrotek.ru References: <20220214133835.25097-1-i.bornyakov@metrotek.ru> <20220215115853.26491-1-i.bornyakov@metrotek.ru> From: Conor Dooley In-Reply-To: <20220215115853.26491-1-i.bornyakov@metrotek.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hey Ivan, Firstly thanks for the patch(es), stumbled across them today. As you may know Microsemi has been acquired by Microchip, so s/microsemi/microchip/ please. This would make the correct vendor prefix for compatible strings "microchip". While you've said this is for the PolarFire FPGA, there is prescendent for using "mpfs" for the PolarFire SoC FPGA in the kernel - so if you could change the uses of "polarfire" to "mpf" that'd be great. The current item on my own todo list is the opposite side of this, reprogramming the FPGA via the system controller acting as a SPI master for PolarFire SoC. I will get back to you when I have a better idea of what (if any) code can be made generic between both modes. In the meantime, I will get together a setup to test SPI slave reprogramming of the PolarFire (SoC) Thanks, Conor > Add support to the FPGA manager for programming Microsemi Polarfire > FPGAs over slave SPI interface. > > Signed-off-by: Ivan Bornyakov > --- > Changelog: > v1 -> v2: fix printk formating > > drivers/fpga/Kconfig | 9 + > drivers/fpga/Makefile | 1 + > drivers/fpga/microsemi-spi.c | 366 +++++++++++++++++++++++++++++++++++ > 3 files changed, 376 insertions(+) > create mode 100644 drivers/fpga/microsemi-spi.c > ----