Received: from eggs.gnu.org ([2001:4830:134:3::10]:52610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cTCTr-000466-7A for qemu-devel@nongnu.org; Mon, 16 Jan 2017 13:58:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cTCTn-0001Ex-5W for qemu-devel@nongnu.org; Mon, 16 Jan 2017 13:58:11 -0500 Received: from mail-lf0-x243.google.com ([2a00:1450:4010:c07::243]:35068) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cTCTm-0001Eh-VS for qemu-devel@nongnu.org; Mon, 16 Jan 2017 13:58:07 -0500 Received: by mail-lf0-x243.google.com with SMTP id v186so13771698lfa.2 for ; Mon, 16 Jan 2017 10:58:06 -0800 (PST) References: <1483979087-32663-1-git-send-email-clg@kaod.org> <1483979087-32663-12-git-send-email-clg@kaod.org> <9b1c1700-04cc-9b1e-6fdc-5ac84e5cd42e@kaod.org> <64b13418-337d-d3a6-2c65-0add542c9ba8@kaod.org> From: "mar.krzeminski" Message-ID: Date: Mon, 16 Jan 2017 19:58:03 +0100 MIME-Version: 1.0 In-Reply-To: <64b13418-337d-d3a6-2c65-0add542c9ba8@kaod.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH v2 11/11] aspeed/smc: handle dummy bytes when doing fast reads in command mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= , Peter Crosthwaite Cc: Peter Maydell , qemu-devel@nongnu.org W dniu 16.01.2017 o 09:18, Cédric Le Goater pisze: >> I did not notice that this function is also called in writes, isn't it? >> If yes, dummy cycles are used only during reads so probably CTRL_FREADMODE >> needs to be tested. > yes. I can take care of that in a follow up patchset for > dummy support. > > Dummies in user mode is a bit painful to implement, as I had > to snoop into the command flow to catch the fast read op. > Not sure this is the right approach so I kept it for later. Definitelly wrong, controller should not be aware of tha, fix is still on me :( > > > Did you have time to take look at the other patches adding > Command mode and extending the tests ? I should have addressed > your comments there. Yes, there is one more thing that could be important. It popped out in Sabrelite SPI model. The question is does SCM support different CS active (so device is active at CS high). Your code assume that SMC will always use CS LOW to activate device. If this is not true you might be interested in update this too. Thanks, Marcin > > Thanks, > > C. >