Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754460Ab1BILIz (ORCPT ); Wed, 9 Feb 2011 06:08:55 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:53390 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751663Ab1BILIy (ORCPT ); Wed, 9 Feb 2011 06:08:54 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=kKoIrf38Vm17o/fA9F2fpMLsZVzDPG2FUBZXcFCCKJBa7Ji2OEM891k6fbaOzDUeyZ P2EQslXwjj4FLvwTIF/utwP+18CTokj6QNQqb44GtwteabDi6FWhoICa7oL5muSuqn5I 4mFlzixLHjbnFmkyR4o+DuEoY48TLyU6wBfcA= Date: Wed, 9 Feb 2011 14:08:34 +0300 From: Dan Carpenter To: Belisko Marek Cc: Marek Belisko , gregkh@suse.de, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/5] staging: ft1000: Fix coding style in write_blk_fifo() function. Message-ID: <20110209110834.GY4384@bicker> Mail-Followup-To: Dan Carpenter , Belisko Marek , Marek Belisko , gregkh@suse.de, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org References: <1296042555-29145-1-git-send-email-marek.belisko@open-nandra.com> <1296042555-29145-4-git-send-email-marek.belisko@open-nandra.com> <20110126130718.GN2721@bicker> <20110126143045.GP2721@bicker> <20110208163531.GO4384@bicker> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 943 Lines: 25 On Wed, Feb 09, 2011 at 11:07:19AM +0100, Belisko Marek wrote: > Well I test it and it seems very strange and can't figure out why. > Will remove all byte_length manipulations and device doesn't boot properly > (finish with error). Add some prinkt to code figure out following: > > 1. byte_length = word_length *4 is < 64 we need to send via usb 68 > bytes (despite > 4 bytes are behind 64 (without this it can't boot). > > 2. also when e.g. word_length is 400 (400*4 = 1600) condition > 1600%64 == 0 is valid and we send 1604 bytes to usb (also not sure why > but without this change it also doesn't work). > Huh. Strange. Thanks for testing. Sorry for the noise. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/