From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from sabertooth02.qualcomm.com ([65.197.215.38]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1V7MQT-0004HG-1X for ath10k@lists.infradead.org; Thu, 08 Aug 2013 09:22:33 +0000 From: Kalle Valo Subject: Re: [RFC 3/3] ath10k: add support for HTT 3.0 References: <1375949298-7159-1-git-send-email-michal.kazior@tieto.com> <1375949298-7159-4-git-send-email-michal.kazior@tieto.com> <87eha4363n.fsf@kamboji.qca.qualcomm.com> Date: Thu, 8 Aug 2013 12:22:01 +0300 In-Reply-To: (Michal Kazior's message of "Thu, 8 Aug 2013 11:12:58 +0200") Message-ID: <871u6435c6.fsf@kamboji.qca.qualcomm.com> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath10k" Errors-To: ath10k-bounces+kvalo=adurom.com@lists.infradead.org To: Michal Kazior Cc: linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Michal Kazior writes: > On 8 August 2013 11:05, Kalle Valo wrote: >> This debug print is good to have, but with the new htt version it would >> be good to print it always using the info level. For example, can we add >> it to the same line with "firmware %s booted" string? > > HTT target version is not known when firmware boots up. It's not known > until everything other (HTC, WMI) is set up. We then send a version > request command and we get a response. Oh, missed that. > We need to print it in a separate line. Or could we print the "firmware booted" message later? >> (Please take into account that the info messages still need to be >> compact, by default they should not be longer than five lines or so.) >> >>> + if (htt->target_version_major != 2 && >>> + htt->target_version_major != 3) { >>> ath10k_err("htt major versions are incompatible!\n"); >>> return -ENOTSUPP; >>> } >> >> Print the htt version in the error message as well? > > Target version is printed in ath10k_dbg() now. If we change that to > ath10k_info() I don't see any reason to print the version again on > error. Frequently users just copy the error message, that's why it's better to have the firmware's htt version in the error message as well. > We may want to print the list of supported HTT major version numbers > though? That's good to have as well, at least in the debug messages. -- Kalle Valo _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k