Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3302755yba; Mon, 8 Apr 2019 15:55:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpiUOXSOpXT6GjqLg/vo6bEewrQkvlb+RHmuWllNrhAy9j48qXWB9pWEnMDIjIT03dapFl X-Received: by 2002:a62:5f84:: with SMTP id t126mr32550197pfb.185.1554764102714; Mon, 08 Apr 2019 15:55:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554764102; cv=none; d=google.com; s=arc-20160816; b=G+Zsw0onozXZ90P8QmqlFjuwImGYBO8qJzNeh/oaa0LN3Y47doFgREun+rU59dKmgx 6ppn6yNwPb6t3Oy+lVOtm5Q923FPwn0RD/MHNoK1qZYxhVAFaFlH+nQ8i+bBrPOJ1nVb DKWL4SZPL9QaK+dFwn93AAdBbu/xBV3mOABS+6tIo0Zy1QN+wOAMDaq2p+OB7cwWArIu CGNmP0WJjQk6eQfBL/aVgwMAmgpYe8gddCVTCTiUIR7Nzd2hKE8vm8VGihRcaedy1Fcb XzJrCmX/vlEdJjAAmz3jyrjKRAs8H2+KXG5pnfDBeJGkxAiPQjDcgGSgrf5j/RZp9QQT wCXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:user-agent :references:in-reply-to:message-id:mime-version:date:subject:cc:to :from:dkim-signature; bh=V4R+3dQh95hwJSsO8hhhpWrQd2X7Bmm0cjMWwjqnvJ8=; b=fIlj2OndqjqLwTJ/QiBVKT3dMlUGJKaxixPrKInPuMVg0AXcQiyZQTWv3HjLnW2y6f 4FJLypWEuGgT+98lJbWceC3snCjNMRAoj3IYOy9GYmoxmBtfOCxyGC0d/n2U7QstVB4k FOmgITXaCZUp2aHPeJ32rLjbtQEjT9TVr1Ct9R7hQWWr+9BJf2N6iBgij2FaeqPMkJhY xjbEGntgOcKpFid9k+bBAgl7/ddY5fscR2VDuD5PRrJQ5QIj5e0Dm8A4FevRtWVIBqra hGSvKJSOmh87vrowEDJSXgW2kIrauZcL8hY9aUPWWcWXVeYbDAfFUI7StB3ic6h7qGJe y2zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sxOwvrKI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2si20574763plr.1.2019.04.08.15.54.47; Mon, 08 Apr 2019 15:55:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sxOwvrKI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727891AbfDHWfj (ORCPT + 99 others); Mon, 8 Apr 2019 18:35:39 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:44871 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726842AbfDHWfj (ORCPT ); Mon, 8 Apr 2019 18:35:39 -0400 Received: by mail-wr1-f68.google.com with SMTP id y7so2677373wrn.11; Mon, 08 Apr 2019 15:35:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:mime-version:message-id:in-reply-to :references:user-agent:content-transfer-encoding; bh=V4R+3dQh95hwJSsO8hhhpWrQd2X7Bmm0cjMWwjqnvJ8=; b=sxOwvrKIS900T1u1lm3jZY276LdWVTUY1BPwZffMexJmer4DItZPL1rNrboROzzazh 8nHWp7BPxSrjVU6UArVxNu2Qna5wV1RWR6gZ6XwzW3h8J1MRcLexE14h2Np3WWn1nm/G StDqZIeMeN89X69QFdblaX/zzlEdlkrQrVjB3qbZgajE0TCTDrYMRWjoH3Wb+NnxCNqx P28XJfzyHZtgAFpZbeV7vhErONBPQXPFAtSb2/4zk7QMSimjxyOCRPmxtBoMjKb+c143 RpWQuM1P//ITCA8ICdo8prWJ2ElNRG6+O3raqcNtPP0RwRyEDuYJlywhtT01VAv+EViP 8zIQ== 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:mime-version:message-id :in-reply-to:references:user-agent:content-transfer-encoding; bh=V4R+3dQh95hwJSsO8hhhpWrQd2X7Bmm0cjMWwjqnvJ8=; b=nGa1YRmo+C75zIk7PV7+Uoq5UgEq5OHW9+4z9aRpWn6y0BjldDjHq03W3TIWbkQN3/ AS0H+xc0R1Z9sHP0WwLhu5f213Cq4ZfzoEQy8ol6xrbilBf/uq70ZMGXERLSyvOr+ORx HRj+R0bEB8NFrkQ3D2IU4YXm4dKSoXt5s79b8oOM6EcmDp+Etq91DoAspFKqIW5VgTN+ V9RmcUpT9H03WmgVfvIh8wWEh3GsnvIg+9oUQEszvELjjtBGlN4TMLeTmhd353BWwAW3 8eazaUE3F4/rX9hDBf+n0LTR3nuVHORy4wz57Xfs8bIdugw1Nrik2MGQ4vHppUI8ibA0 QtWw== X-Gm-Message-State: APjAAAXLtqZ2Z8U9NGwBCGvy7q7yXZ8UYa4Toy6sCCeaLFCOF4NCsI3H KfPV+bFzFP5Xac6uzwj4m4iyea1b5lyh/Q== X-Received: by 2002:adf:dc8e:: with SMTP id r14mr12111570wrj.118.1554762937378; Mon, 08 Apr 2019 15:35:37 -0700 (PDT) Received: from localhost ([92.59.185.54]) by smtp.gmail.com with ESMTPSA id a23sm9700880wmm.46.2019.04.08.15.35.35 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 08 Apr 2019 15:35:36 -0700 (PDT) From: Vicente Bergas To: Emil Renner Berthing , Mark Brown Cc: Heiko Stuebner , , , , Subject: Re: [PATCH] spi: rockchip: Revert "set min/max speed" Date: Tue, 09 Apr 2019 00:35:34 +0200 MIME-Version: 1.0 Message-ID: In-Reply-To: <20190407005759.2425-1-vicencb@gmail.com> References: <21d83ed2-a8db-49cf-ba8c-c7844157d7b0@gmail.com> <20190407005759.2425-1-vicencb@gmail.com> User-Agent: Trojita Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday, April 7, 2019 2:57:59 AM CEST, Vicente Bergas wrote: > This reverts > commit 420b82f84294 ("spi: rockchip: set min/max speed") > commit 74b7efa82b11 ("spi: rockchip: precompute rx sample delay") > The former breaks bursts of writes of 48 bytes or more. > Both patches touch the same part of the file and it is not trivial to > only revert the first. Reverting both just results in an easy to fix > conflict. > > Tested-by: Vicente Bergas > Signed-off-by: Vicente Bergas > --- > drivers/spi/spi-rockchip.c | 80 ++++++++++++++++++++++---------------- > 1 file changed, 46 insertions(+), 34 deletions(-) > > diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c > index 3912526ead66..682f3567a8c8 100644 > --- a/drivers/spi/spi-rockchip.c > +++ b/drivers/spi/spi-rockchip.c > ... Hi Mark, please, disregard this patch. It is the result of bisecting a bug which may not be deterministically reproducible, so, the bisection point is random. Emil is helping me in the debug process, which is still ongoing. Hi Emil, yes, the platform is RK3399. Doing tests on the Sapphire board, but it is also reproducible on gru-kevin. I prefer not testing on the chromebook because when it fails it becomes unbootable (a brick) and need to take it apart to connect an external programmer. Now testing your suggestion: --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c @@ -720,5 +720,4 @@ static int rockchip_spi_probe(struct platform_device *) if (master->dma_tx && master->dma_rx) { rs->dma_addr_tx =3D mem->start + ROCKCHIP_SPI_TXDR; rs->dma_addr_rx =3D mem->start + ROCKCHIP_SPI_RXDR; - master->can_dma =3D rockchip_spi_can_dma; } so far so good, but let me some time to make sure the results are deterministic. Now it works without dma and without the assigned-clock* props in the dts. If that proves to fix the issue, which would be the next debugging step? Regarding the spidev: if the spi1 dts is &spi1 { status =3D "okay"; /* and nothing else */ }; then the /sys/bus/spi/devices directory is empty, so, it cant be bound. What i am doing wrong? Regards, Vicen=C3=A7.