From patchwork Tue Sep 3 12:24:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Markowski X-Patchwork-Id: 2853209 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0D40D9F495 for ; Tue, 3 Sep 2013 12:25:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6C973201F0 for ; Tue, 3 Sep 2013 12:25:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5AAA9201EF for ; Tue, 3 Sep 2013 12:25:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759909Ab3ICMZO (ORCPT ); Tue, 3 Sep 2013 08:25:14 -0400 Received: from ebb05.tieto.com ([131.207.168.36]:50711 "EHLO ebb05.tieto.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753758Ab3ICMZN (ORCPT ); Tue, 3 Sep 2013 08:25:13 -0400 X-AuditID: 83cfa824-b7f348e000004c45-db-5225d527e3f7 Received: from FIVLA-EXHUB02.eu.tieto.com ( [131.207.136.42]) by ebb05.tieto.com (SMTP Mailer) with SMTP id 5C.CD.19525.725D5225; Tue, 3 Sep 2013 15:25:11 +0300 (EEST) Received: from uw000975.eu.tieto.com (10.28.19.100) by inbound.tieto.com (131.207.136.49) with Microsoft SMTP Server id 8.3.298.1; Tue, 3 Sep 2013 15:25:09 +0300 From: Bartosz Markowski To: CC: , Bartosz Markowski Subject: [PATCH 1/2] ath10k: set the UART baud rate to 19200 Date: Tue, 3 Sep 2013 14:24:02 +0200 Message-ID: <1378211043-20299-1-git-send-email-bartosz.markowski@tieto.com> X-Mailer: git-send-email 1.7.10 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrEIsWRmVeSWpSXmKPExsXSfL5DS1f9qmqQwYlXIhaPLh1jtngy+TuL xZsVd9gdmD0+z7zL5rF5Sb3H501yAcxRXDYpqTmZZalF+nYJXBknO2YwFzxhq/h/ZzdTA+NZ 1i5GTg4JAROJno6NLBC2mMSFe+vZuhi5OIQEVjFKnLi9DspZyijxZ8IiNpAqNgFTifsbVoB1 iwgoSPya9BEsziwQLvFq6y+wScICNhIHT5wDi7MIqEjMON3ADmLzCnhL3G7cArVZXuLp/T42 iLigxMmZT1gg5khIHHzxghnEFhLQkJiz8yXLBEa+WUjKZiEpW8DItIqRPzUpycBUryQztSRf Lzk/dxMjOKhWqOxgPPtA6hCjAAejEg9vxjGVICHWxLLiytxDjJIcTEqivNqXVIOE+JLyUyoz Eosz4otKc1KLDzFKcDArifDynwLK8aYkVlalFuXDpKQ5WJTEeXMVxYKEBNITS1KzU1MLUotg sjIcHEoSvPcvAzUKFqWmp1akZeaUIKSZODhBhvMADde5AjK8uCAxtzgzHSJ/ilFRSpz3C0iz AEgiozQPrhcW9a8YxYFeEeY9AlLFA0wYcN2vgAYzAQ2+NlERZHBJIkJKqoHxsApHrKTbt3OS Bo36rkUHBIoitu8wbuLYVK/N+jD+udMhpjw2O6H+R2857aKaFu65lMOw9prMyf6Ufew+a+/6 3pEP3cweZ8hfEb3O9M4K5ymG0fceaHzN8GScGx/H1/DG7HLAfaEnh/pry/kPiMhLaJrFPT9v 5Kmxb8sV0b1LVKWY1/6ZNVuJpTgj0VCLuag4EQB3vin91QIAAA== Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When configuring the host_interests over BMI, set the UART baud rate to 19200. This is valid for QCA988X_2.0 devices. Signed-off-by: Bartosz Markowski --- drivers/net/wireless/ath/ath10k/core.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index 2dd39a8..2c1d2d7 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -435,6 +435,13 @@ static int ath10k_init_uart(struct ath10k *ar) return ret; } + /* Set the UART baud rate to 19200. */ + ret = ath10k_bmi_write32(ar, hi_desired_baud_rate, 19200); + if (ret) { + ath10k_warn("could not set the baud rate (%d)\n", ret); + return ret; + } + ath10k_info("UART prints enabled\n"); return 0; }