From patchwork Tue May 17 08:41:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahisa Kojima X-Patchwork-Id: 573442 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1f0e:0:0:0:0 with SMTP id hs14csp200128mab; Tue, 17 May 2022 01:41:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXJd8vZTHtQbnuiPrTs5OJfDB08MhdUQSo5ewUqddEGTQdwD/EZRqmSdo1Q8d2D8vdbWQP X-Received: by 2002:a50:c052:0:b0:42a:aac8:159d with SMTP id u18-20020a50c052000000b0042aaac8159dmr12414308edd.256.1652776898775; Tue, 17 May 2022 01:41:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652776898; cv=none; d=google.com; s=arc-20160816; b=ppK6IGka4c740TUdP+AQ/btkmFjllKizu5DvIajaIKDR3EDjUR9YfLMZsC+OLUgjQW f+LYzzjeeWzb9B5RwXgbPOhCmGjA1lyj7nhFL+3ZiDxwNT0YWIXGWLr+bYDC8alHY9Rl ucgYAGfwqKYwzJ+UlTT9kiYkUwFdw7l23UFVnFLn7jg7oAGKA4X4cDDlrftXSHpHsUof BGSjpKxO/M4QHvJEofk5kWNlhfY86mzSlsZkddaScE1rPPz0hpKTfq3j4TJT4ley9UJb HpG4bbfd2otfqALGJnK7M0igeiXu5ibKsrXs2GkyXDwZOda3jW0C5WT5/IVMmhelAMDY su0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=IOv1KPURPsFUrlUCW9YOYGKdYrGZqViRugRicHALPAQ=; b=bpmE/Fqd+IAoN4ZuTvi7kwCJB9V0BJIPN3k63cgSL52X79aA+OmoiCrUCmaWNxe3B7 TuS0OAvasRpHHdLR5z0mAn1AWO4vJW4EnKo+2QfSDgde1fYbGUBygbepBH0pcGGyrtrZ 5VTxT99Z+EJt8fPLYWHJ3qc0/iv27mRhIw9wwfE/7zzIues2UE3hseW03VNsnB8wrgZ3 TQVHe15bKp0phbJQqyXCr+9UjtORPIafzjOhOmFqGHH4JNsf3zuNT5JuwQEmuDINNeOj TQZvY8VkcQrXH6Z7AyjdUm3ntwYR8D65aiGDJWtLXmQfrQvvpc2qx+ISFwqEK/9cnHYN IpLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PPym6gRW; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id h4-20020a056402280400b00425e768e973si14793942ede.365.2022.05.17.01.41.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 01:41:38 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PPym6gRW; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4794984239; Tue, 17 May 2022 10:41:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="PPym6gRW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7A635841B8; Tue, 17 May 2022 10:41:31 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: 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.2 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 80FEF803C8 for ; Tue, 17 May 2022 10:41:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masahisa.kojima@linaro.org Received: by mail-pg1-x52d.google.com with SMTP id g184so16376711pgc.1 for ; Tue, 17 May 2022 01:41:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=IOv1KPURPsFUrlUCW9YOYGKdYrGZqViRugRicHALPAQ=; b=PPym6gRWdafHnTaIdtNlz9V+fWlr/CB0Bxmg1EvKeUxAWS9lS8f532sGp0A8X2tq3b 4bvTDWxctZFRpftfw8yCjk0PxECIzUMVAPnP7AjhmNK/RnGcHlXOvjBwdI3QxOzdXdWr iMBCXoeSosbi41wtvzfVml5CFlmxiw0bfM2RK0vHgzT+ZJ2nMrJrY8l7SraEkrppzeI3 XMNg3eeCTT5KTq5+dpjjPJgxmU+qeVpDksvtDoSyK+LlsZOPebwz/16rOBNr9vVxZLGq 0HDxooGkjxa7qdp88Thn1ujmRB1pGk+KEaMEzi4bl9+qUqHo6mi6JUorFHB6N74ZMWDO TRcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IOv1KPURPsFUrlUCW9YOYGKdYrGZqViRugRicHALPAQ=; b=cRHjlkw3edFoRL7nyXvmPEjJt+tqYLsKV7SsCV71xasDcybVHb7P7YhioGob33hONY 5p+FHLvGo2/8EvvBtmgDLZ6lUxasTjJaGJ2X8xwK0aHH9CIy1R4Ity8gpHSbAwJm0qKD Q7FGDT6ep1dyCfuvC4f4wChSUXreNpP1vIAnbLvedR77bmahjGr0NDHHm1FLnzj5ht6y ET3X7I6RiSt/qgTuHmLreihe3qHv7v61nIwQ8FrdfwrVpQ/aKMACb0YNEQj+ITaI4GYf oy8UMzgsOpA/00oJbKgKMBLkAp8HnTouz1r9hdOaiFKjIJJM1o3ouB0LM0KRXHD5aSBU 7GOw== X-Gm-Message-State: AOAM531shKxJFeW/9EzMC3lY9+t9jJxKSJomnC9wicvnidupf/jcfe0j rM4w3mNFZ4jsVukG5ihvX0VS1LlOj8E8Og== X-Received: by 2002:a05:6a00:24d2:b0:510:9f7a:3eec with SMTP id d18-20020a056a0024d200b005109f7a3eecmr21252028pfv.57.1652776886661; Tue, 17 May 2022 01:41:26 -0700 (PDT) Received: from localhost.localdomain ([240d:1a:cf7:5800:82fa:5bff:fe4b:26b1]) by smtp.gmail.com with ESMTPSA id s200-20020a632cd1000000b003f5912ba179sm741569pgs.58.2022.05.17.01.41.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 01:41:26 -0700 (PDT) From: Masahisa Kojima To: u-boot@lists.denx.de Cc: Jassi Brar , Satoru Okamoto , Masahisa Kojima Subject: [PATCH 0/4] spi-synquacer fixes and improvement Date: Tue, 17 May 2022 17:41:35 +0900 Message-Id: <20220517084139.6986-1-masahisa.kojima@linaro.org> X-Mailer: git-send-email 2.17.1 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean When we support SPI-NAND flash with spi-synquacer driver, we encounter several issues. This series fixes the spi-synquacer driver to make SPI-NAND flash device work. This series also includes some improvement and simplifies the implementation. Masahisa Kojima (4): spi: synquacer: busy variable must be initialized before use spi: synquacer: wait until slave is deselected spi: synquacer: DMSTART bit must not be set while transferring spi: synquacer: simplify tx completion checking drivers/spi/spi-synquacer.c | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-)