Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5612172rwb; Tue, 9 Aug 2022 00:33:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ycVKyN8hGFDt26doSSsyBMOqbigrNavS/kC/7lHa6mFHZral3CCGNw/KdXP6HkKu1RNz+ X-Received: by 2002:a17:906:938a:b0:730:b3b5:54f4 with SMTP id l10-20020a170906938a00b00730b3b554f4mr16139363ejx.433.1660030436295; Tue, 09 Aug 2022 00:33:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660030436; cv=none; d=google.com; s=arc-20160816; b=ABGcAizcECHHmlNWcg1xaIlAZEobstw859oNihnoD28lRNxAO2WrZV89sWYzhA0aEn uvzrejHHSjt6t2pYmD4GwCswEogvhmWxwKDtRMvw0OWax0xMR30vSr89Jb/vfYXdkg78 OlG+AHp7ZvjuDAW3WtgAmOKy8GpmHaZNIMVhYfC3eH/YiqQIURgjy7IqJ0ApM595oD9u CW0xQw17pb14tFbAlmIiPSgA30RsENW0ndGj3oFYN1N9Zide3x3k7P1n/mPWRejVhOJC +1KLnL7VnfJrxcOrDHXV/I3mW8/wRgc/DoF2iu8MES78sIhnMuwh2VbhYHTw+0yIuvA4 Mn/A== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=S9nxkScXdgvsOswmsUDO4e5yw1OZt1LqXIzYBYRS2N8=; b=WAk4GW2qd/Eq5YHl70OkbmudsKsf98Ax852KOpFikaf7bygNRdT4r1dCq5xbUXdm7V NQi7hfEOZ5KXsLP18vsv2A7qtRjFqOsN6WfEl9LSzdu/TuayUjVNUFvt9vfa8O3nKrv1 UiYDStowkMvUAdSjilmAJ0lCfNNccH0px7/3ihnnEDO923fQozSbegPsc32dNmsv7s58 A5QIkYS0pKsgF//LJ1SbHt8csivS7pZCOW01ni6VStL4U7snzjlzJWfW8/zGhoYdYv4h u10BzKrHHL6h3MSdDkI2zmTREiyDDD/XFkyUxtwMwxs1gbn7NJBLYdrgBFSCKuhDTy4M HhUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@metrotek.ru header.s=mail header.b=VuAB7BbI; 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 m19-20020a056402431300b0043d2f04a703si9409803edc.40.2022.08.09.00.33.29; Tue, 09 Aug 2022 00:33:56 -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=fail header.i=@metrotek.ru header.s=mail header.b=VuAB7BbI; 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 S230519AbiHIHUa (ORCPT + 99 others); Tue, 9 Aug 2022 03:20:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233392AbiHIHUZ (ORCPT ); Tue, 9 Aug 2022 03:20:25 -0400 Received: from mail.pr-group.ru (mail.pr-group.ru [178.18.215.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7833DB493; Tue, 9 Aug 2022 00:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=metrotek.ru; s=mail; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=cC9HTDFYURx/NMwEKphEdNhFO++q3yjpjJZDYvPvhWA=; b=VuAB7BbI6tYWGusjvoPanRiPvR6nAupNGlzXx5gID3+eObOdgoeX1sR7BRfj824bl1IXdMIdu3Qq5 uEhtsBUITXW1us+Uu7ZKXpum/OaBRVFcvKCwJhjBcYKEIj++jwMTCNLM67OvIuYTGRYkj5sRuwT+og ZYr2Ab7E69xcm0o4hSDWDN8dquT+n6a3Wtfl8ucX9f4ukGvXMSgpG9mduVXKpkwigjFNIGqBKHVWQ9 R7PVG+HDWNZhZOOviIX20o/4gL/Bp+nuiI0kGDoA+iTL+3KFKoug4ZMaJEh18JrAY20BqSAjCfysO7 4EmpPhngoGrSTidI0UrRqa4HrCVC1TQ== X-Kerio-Anti-Spam: Build: [Engines: 2.16.3.1424, Stamp: 3], Multi: [Enabled, t: (0.000009,0.005356)], BW: [Enabled, t: (0.000013,0.000001)], RTDA: [Enabled, t: (0.074412), Hit: No, Details: v2.41.0; Id: 15.52k0ad.1ga0nisot.3s26; mclb], total: 0(700) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Level: X-Footer: bWV0cm90ZWsucnU= Received: from x260 ([92.100.85.134]) (authenticated user i.bornyakov@metrotek.ru) by mail.pr-group.ru with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Tue, 9 Aug 2022 10:19:52 +0300 Date: Tue, 9 Aug 2022 09:54:31 +0300 From: Ivan Bornyakov To: Daniel =?utf-8?B?R2zDtmNrbmVy?= 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: <20220809065431.nbfopsvx6teja37i@x260> References: <20220719112335.9528-1-i.bornyakov@metrotek.ru> <20220719112335.9528-2-i.bornyakov@metrotek.ru> <20220801072448.GA11993@homes.emlix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220801072448.GA11993@homes.emlix.com> 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 Mon, Aug 01, 2022 at 09:24:49AM +0200, Daniel Gl?ckner wrote: > 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? I confirm that INITN stays asserted while PROGRAMN is asserted, just rechecked.