Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6713038yba; Tue, 14 May 2019 12:14:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUXiYrq26qiygHI6YEQcfBCizJtoKfyS4TMGZTrznMHhOIJX44YQvdLBpSs50ApwDQ/bmW X-Received: by 2002:a63:1d1d:: with SMTP id d29mr39712691pgd.63.1557861283470; Tue, 14 May 2019 12:14:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557861283; cv=none; d=google.com; s=arc-20160816; b=WuI0h6OrxHIiBsNDGTVZRpTYMz6LBAumekX0X/rEMPSrA4JMVLyqpWvr5PMVHeZzb6 vppS5bWK6py17ghpoguW0YGMBxFOz79ne3uBmLaa9a/yTGG9UMfvZ/HHdKFIJhehp2ne EUTD9AAY9vSVD2wAmPw+1pN5y60gnNXKKUR9sNL/FV/4a9J7QYJM1NvY2NHIdDSyNrct SarvA3N+yngrL8gmHs9INtmtPCHt/umJQFIwKZ8MuVz1CyHuDvqdgIRiYR4X9f7vE/YW 7+ncJcyywy9RABewR87z5MnKQSIbA9ABJM52W5QRqAp50ASeU7aHU51TKJH4wiHobsWm LbbQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:references:cc:to:from:subject :dkim-signature; bh=D9Mpv/Ka19QUo3Yv5Zhhwcz4xrs+t6R8N4bDjTao8es=; b=MBh4chPS22gYJpCxcXXlbT8QfdknXqz3OU5KroeRqWRIprC4faCD9TyNkAnOHgIJVS uGRw0hGvnXEzn8AGMg7AIY0ZD/yjoal2A3If/ugYdCCbbfy6hzX3roOJ3RQ8P6G0Xex5 VqpTiKIj72QX6JbmzJfhLz1Peth6N9HeElKo+0WCaV8XihvuA7ACOPFisRZVb51+jiN2 UV/c2OVEPEbCnV7fdWAzRL8avlwo8+FmgpAXFCu/hBqSLuH4l1agO8WCRE/aAE9jHx1P PLWJqVLHx12LB10TjHckUzD4uFI9C8toPEgNgQNTvQkxfpPYhht/XzGvlQs8JnizcDpp A46w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=Ys3HnMH7; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si21300563plr.220.2019.05.14.12.14.28; Tue, 14 May 2019 12:14:43 -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=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=Ys3HnMH7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726342AbfENTNR (ORCPT + 99 others); Tue, 14 May 2019 15:13:17 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40493 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726036AbfENTNQ (ORCPT ); Tue, 14 May 2019 15:13:16 -0400 Received: by mail-lj1-f195.google.com with SMTP id d15so264200ljc.7 for ; Tue, 14 May 2019 12:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:from:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=D9Mpv/Ka19QUo3Yv5Zhhwcz4xrs+t6R8N4bDjTao8es=; b=Ys3HnMH7gqlpLEQvfGsqQZ4AH4oXF6E5Gqeqt6lGXM7jy1UDtYkN7zSaLXd5m2pybT 6wDT/W77uvNxhmxxg4kp3LXnUKSIqFNRKQxMgKTY8Fo2PItl23nFlf60IyEo2v77Oth6 GCi6QhUOGTP+vmUmi/za/YMXcqF/0Cx+3vcj5MiM5vCT+TQ1lHqNcNmHLPAT5opZTIWt KUSfYl5MtAXHgabGz4+yepAvC2eaNcvqHqOQqkRKMgNQHajJXkki+uvNN2xzwhOQ4b1M Uqr4mUaDmxeOP5IizAvYf7jqF+TBQwQ64ALXtmswKcPSWJv6MdhbHovSCf9FLMtfCe8D tHUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=D9Mpv/Ka19QUo3Yv5Zhhwcz4xrs+t6R8N4bDjTao8es=; b=be7nWgGnIYLUEmGqp7CsKUbGzF5L7mAO7gZoQBdsySfwSInesKtaCQO1RlIXIjIbPx uXRDE3yn+tDWkk8Dck6Z3loUFw/kClreXJdyPRLxhMiD9FbwMwHQuNePV/2mNs31KbIT rXQ461NhobyQw5DH7Mq6tNcSOHB/V+2QBqLGbdHxjFpIdbRZ0OmW+djB831KFQlI4l5g i6d1hr/8nSjNxoDZAj3hYCBj4h+KUEMVRh23ZcmD5y5yt0E98jMkOFmuyJiY72Rz2Iwo saJCjtlKz13zEALBo+tPRPLnNW4rilKcx9UWmgkKgcj4dtLBK+zGuaR2kC6a6vg5Lgb7 nskg== X-Gm-Message-State: APjAAAUIzewg33iq8sro91rxoATXMwZrSAybNjJ8ut1jSS5niCLK4Tx3 ezS90DMKtRT4oIv/wdwUBr1d7Q== X-Received: by 2002:a2e:92ce:: with SMTP id k14mr17873191ljh.83.1557861192675; Tue, 14 May 2019 12:13:12 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.86.127]) by smtp.gmail.com with ESMTPSA id q29sm3826886ljc.8.2019.05.14.12.13.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 May 2019 12:13:11 -0700 (PDT) Subject: Re: [PATCH v9 2/3] spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver From: Sergei Shtylyov To: masonccyang@mxic.com.tw Cc: bbrezillon@kernel.org, broonie@kernel.org, devicetree@vger.kernel.org, Geert Uytterhoeven , Simon Horman , juliensu@mxic.com.tw, lee.jones@linaro.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-spi@vger.kernel.org, marek.vasut@gmail.com, mark.rutland@arm.com, robh+dt@kernel.org, zhengxunli@mxic.com.tw References: <1553847606-18122-1-git-send-email-masonccyang@mxic.com.tw> <1553847606-18122-3-git-send-email-masonccyang@mxic.com.tw> <1e2bf23d-db39-0d1d-0bcc-6d9cd2935a82@cogentembedded.com> <3d334751-8fd4-7db1-9deb-e6c94936df13@cogentembedded.com> <3971c669-9095-9d18-d029-37f9663a54b2@cogentembedded.com> <9014077e-2648-adad-72c1-baf834f5a511@cogentembedded.com> Organization: Cogent Embedded Message-ID: Date: Tue, 14 May 2019 22:13:10 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <9014077e-2648-adad-72c1-baf834f5a511@cogentembedded.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-MW Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/14/2019 10:06 PM, Sergei Shtylyov wrote: [...] >>>>>>>> Have you tested reading? v8 patch still works while v9 patches >>>>>>>> hang on doing: >>>>>>>> >>>>>>>> $ cat /dev/mtd... >>>>>>> >>>>>>> Sorry, 'od -x', not 'cat'. >>>>>> >>>>>> root@draak:/# cat /proc/mtd >>>>>> dev: size erasesize name >>>>>> mtd0: 00040000 00001000 "Bank 1 - Boot parameter" >>>>>> mtd1: 00140000 00001000 "Bank 1 - Loader-BL2" >>>>>> mtd2: 00040000 00001000 "Bank 1 - Certification" >>>>>> mtd3: 00080000 00001000 "Bank 1 - ARM Trusted FW" >>>>>> mtd4: 00400000 00001000 "Bank 1 - Reserved-1" >>>>>> mtd5: 00300000 00001000 "Bank 1 - U-Boot" >>>>>> mtd6: 00200000 00001000 "Bank 1 - Reserved-2" >>>>>> mtd7: 00480000 00001000 "Bank 1 - Splash" >>>>>> mtd8: 00040000 00001000 "Bank 1 - Device Tree" >>>>>> root@draak:/# od -x /dev/mtd1 >>>>>> 0000000 0000 d280 0001 d280 0002 d280 0003 d280 >>>>>> 0000020 0004 d280 0005 d280 0006 d280 0007 d280 >>>>>> 0000040 0008 d280 0009 d280 000a d280 000b d280 >>>>>> 0000060 000c d280 000d d280 000e d280 000f d280 >>>>>> 0000100 0010 d280 0011 d280 0012 d280 0013 d280 >>>>>> 0000120 0014 d280 0015 d280 0016 d280 0017 d280 >>>>>> 0000140 0018 d280 0019 d280 001a d280 001b d280 >>>>>> 0000160 001c d280 001d d280 001e d280 1000 d53e >>>>>> 0000200 f800 9266 1000 d51e 3fdf d503 3ba0 1005 >>>>> >>>>> Still hangs for me. After I patches spi-mem.c and the driver to >>>>> call RPM for the MFD, it started working again. Perhaps, that clock>> >> is still enabled on your target. What does the following print (for > > Even with these issues worked around, I still see strange behavior on > writes, e.g. after I mount JFFS2 partition, remove 1 file, unmount, re-mount, > and mount again, the removed file is back! :-/ Too many re-mounts, one was enough. :-) > [...] > >> thanks & best regards, >> Mason MBR, Sergei