Message ID | 20201130015402.2328621-13-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Simon Glass |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=PXRVKjFo; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CkpKH50T2z9sTc for <incoming@patchwork.ozlabs.org>; Mon, 30 Nov 2020 12:57:55 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B0333827BF; Mon, 30 Nov 2020 02:56:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="PXRVKjFo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DE14B82786; Mon, 30 Nov 2020 02:55:14 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) (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 AF63F827B0 for <u-boot@lists.denx.de>; Mon, 30 Nov 2020 02:54:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd42.google.com with SMTP id o8so10235502ioh.0 for <u-boot@lists.denx.de>; Sun, 29 Nov 2020 17:54:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ukZ8ROUwrj4B2P2++Eir0+sWtuENCVeHgMvAxyoPNZc=; b=PXRVKjFo+QWs9gFwG2uXjNrsi1ohO/Gnsd5CXZabCTrNcFXFqL8xgYOgQl52v707e9 GJkqMp1u//zaB82owSwbYihTkrYs3777rKlL/Bgr2uyxO/96gzUGrF5BGkO4yIfesfzr vQGO2yPWhu6B11WrrI4n+/F2QBnWzZze6RHhU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ukZ8ROUwrj4B2P2++Eir0+sWtuENCVeHgMvAxyoPNZc=; b=K1AD6o81267ak9yj+CyD110JoAMhmZPwUNZ4z5uXdHEkvWOwDfSjWEZr1lLL39FPWK VHyIlRzhg/Ev0saRtHiGPjSRjU3x93Lmy73khaj4uz7HH49X9WehqTeBOqhF8Vw+FW/B wMGFxgm4rFBwTaZ2NQtCKpeZMr4AvdZfyjY4M/iFkASh35YHU74fBiB3xmXRGBpKCYCy NNp6wfSVMDtb8zpLdw2ZIEgANtDMngx6e6mi4/k74tfVvPw/f621QJH7tS/+nxhryTP8 6f7i6kS6V5ZhitlCi1VliPI7X9RlYGluQnIz61OoLap53ESIXVklPbsQbUCN7zyPbaZK XZMw== X-Gm-Message-State: AOAM53205NPXKlk/3a5a/cO8l6xz+i4KVoPY3n+4jiNNWaWSiP9U6ZRT UP7QzKrVGdPWAaBg7pdIoEz+JQ9oSo4e/A== X-Google-Smtp-Source: ABdhPJxpqUqTAZQRde+osrVzLj27kjdxzDTELjy6fIfWCeVSGhmyI1H9633mPWgTyYD1G1H6OrgYpg== X-Received: by 2002:a5e:dc43:: with SMTP id s3mr8327235iop.101.1606701289451; Sun, 29 Nov 2020 17:54:49 -0800 (PST) Received: from localhost.localdomain (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id q5sm6543341ilg.62.2020.11.29.17.54.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2020 17:54:48 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Simon Glass <sjg@chromium.org>, Jagan Teki <jagan@amarulasolutions.com>, Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com> Subject: [PATCH 14/27] spi: Update for new sequence numbers Date: Sun, 29 Nov 2020 18:53:49 -0700 Message-Id: <20201130015402.2328621-13-sjg@chromium.org> X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog In-Reply-To: <20201130015402.2328621-1-sjg@chromium.org> References: <20201130015402.2328621-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
dm: Change the way sequence numbers are implemented
|
expand
|
diff --git a/drivers/spi/fsl_dspi.c b/drivers/spi/fsl_dspi.c index 71b045e04cb..67807b2e109 100644 --- a/drivers/spi/fsl_dspi.c +++ b/drivers/spi/fsl_dspi.c @@ -569,7 +569,7 @@ static int fsl_dspi_release_bus(struct udevice *dev) */ static int fsl_dspi_bind(struct udevice *bus) { - debug("%s assigned req_seq %d.\n", bus->name, bus->req_seq); + debug("%s assigned seq %d.\n", bus->name, dev_seq(bus)); return 0; } diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c index c5363c24190..3f71ec99b11 100644 --- a/drivers/spi/rk_spi.c +++ b/drivers/spi/rk_spi.c @@ -186,7 +186,6 @@ static int conv_of_platdata(struct udevice *dev) ret = clk_get_by_driver_info(dev, dtplat->clocks, &priv->clk); if (ret < 0) return ret; - dev->req_seq = 0; return 0; }
Use the new sequence number in all cases. Drop the rockchip case because the sequence number should be 0 anyway, and assigning to the sequence number is not permitted. Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/spi/fsl_dspi.c | 2 +- drivers/spi/rk_spi.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)