Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1814293imn; Mon, 1 Aug 2022 00:37:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR6PycLvm4JK1ldoXr6FhIokPP16JIuo46Lwe1DvfxFiO/uLjsnf1VVm4Zm8AHKsgbZMVVJP X-Received: by 2002:a17:90b:1c8e:b0:1f1:b5a8:330f with SMTP id oo14-20020a17090b1c8e00b001f1b5a8330fmr18037416pjb.179.1659339463888; Mon, 01 Aug 2022 00:37:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659339463; cv=none; d=google.com; s=arc-20160816; b=lQv6Qpbqx/islLFRt0/iEye1R88rBK24xmXKUVG9TqKjl24s5v2th1YnQYspmC8glY 9JoqEQ9Fu3KtzAQktz6NCZhN1g4ieCf/N0GrsIdsZUp+4ge3Ywh6vKnjOyapm0PvORnB FJfP6Dk1olo7p0u1Vp3YhLHNty+j3STrlEz+mP6/QjfgKH2fKqSFwUvjGMp0zczNCS5m MUL08JNiIFijvIG/egqX5xeTrR2Y2og+t5PQyxVT2x6+nnrh9pP3Rmce2iJzUC8anUaB bNyF0i/yxFSz8/+/ENDqXBk8sPxQJ3SdwmQCMqxUhf2lR4yKvTcjpfBOLCZke45jIKhS H9Ow== 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=c+lTgiEvck6oItDLVMzm+/QDqg56hUXhyZz3SxsGF4g=; b=zsiwQ9stR/4nOW45HjR/hCrHiaHnUxXFWpQTDRIazzhUATlOjpiK26bOf4hE5HZBZy kVUbGp4YGjOwmtAUNnmu68vUb2Dj/7rJm94wexJJWRXLujNWTYXlzdZ0NACDcieF1Z2m u1+to6eKqCUbIcV/1eEQrjm3ZDEb6hNyew0P2pvMz63sk0+ZGHDzd/s7zTBamSkYD4K4 3KJcdk1SQPxu1Px5w+gHe7QYsDrxeR+THb+RiYJQhkSuNVyz2CaAMjJyd7gc9ZSy+q9q 8Hi7c1Hdu/mF6oXUUY28kVaLi5r5qiz4KJUS/pyPwlWxe6aUINO9X36GbiBlrq1y1D9y JDJg== 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 a11-20020a170902900b00b0016cc0e4c7d1si9370674plp.43.2022.08.01.00.37.28; Mon, 01 Aug 2022 00:37:43 -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 S229623AbiHAHY4 (ORCPT + 99 others); Mon, 1 Aug 2022 03:24:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbiHAHYy (ORCPT ); Mon, 1 Aug 2022 03:24:54 -0400 Received: from mx1.emlix.com (mx1.emlix.com [136.243.223.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50B501151; Mon, 1 Aug 2022 00:24:52 -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 771665FC5A; Mon, 1 Aug 2022 09:24:50 +0200 (CEST) Date: Mon, 1 Aug 2022 09:24:49 +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: <20220801072448.GA11993@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: > + /* Enter init mode */ > + gpiod_set_value(priv->program, 1); > + > + ret = ecp5_poll_gpio(priv->init, true); > + if (!ret) > + ret = ecp5_poll_gpio(priv->done, false); > + > + if (ret) { > + dev_err(dev, "Failed to go to initialization mode\n"); > + return ret; > + } To me the documentation looks like the chip will deassert INITN after tINITL regardless of the PROGRAMN signal. At 55ns max tINITL is too short to reliably sample INITN while it is asserted when we have interrupts enabled. Can you confirm that INITN stays asserted as long as PROGRAMN is asserted? Best regards, Daniel