From patchwork Sat Sep 30 17:37:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: silexcommon@gmail.com X-Patchwork-Id: 9979561 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A3E1D6034B for ; Sat, 30 Sep 2017 17:39:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8BA6828EFC for ; Sat, 30 Sep 2017 17:39:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D59928F05; Sat, 30 Sep 2017 17:39:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 12D6A28EFC for ; Sat, 30 Sep 2017 17:39:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=l/Y7YlE1vwR5F+pfinNAIp+lvT5SASJaVVpC53yWNMc=; b=rl8pZ5usG8yiPgMAbGHLVFtxey 3nbEAppnt05a2CzBnPF5/fqfdIZOFwfw3LlE81sk3Fwykd8/J/TWavOFyrkQji8y45O7oIVjoC3yD UHCyZFs+79/xXMXMVkEi+rhTgOdICLIgnvL73qIBzdePiIqBmMBCGKsmYv37yzguGzGnputIUSaTa RKORgLqO4B3CM7GPFwFcqvJrpCG0df4FOVpfw9C9FxMskhRQF2C5SmCo76AW/fz8ErUSz7E+75qsq +y6eDbR6diEDwi9rLTzeygHqFeCrsCj5rIUdutdtVstEmu8R9G7dfux+sME9bAgjyvRvGqpdO0tDt tMpBniJg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dyLiz-0001S3-Vr; Sat, 30 Sep 2017 17:38:49 +0000 Received: from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dyLix-0001Ou-8B for ath10k@lists.infradead.org; Sat, 30 Sep 2017 17:38:49 +0000 Received: by mail-pf0-x243.google.com with SMTP id m28so1627946pfi.0 for ; Sat, 30 Sep 2017 10:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XsQ4BbhRIsL+cmAEnUDEsQ8gnXvpS1ZZCFh4Kh5KIGc=; b=PY3Hr3cxpX088JrmRVB621gncPRUPhZI9XgC+FjEXJOFf+lQpJaHKdI2DYV3WTk1kE Pv1aiK33LIQC/InOM+BkormITR9clGUY0P86f2MNSSZAa3s6eZvwz7PecibKkCxUxSMh ezeZMh7cAYdnEFe4NUGhOfyfD5emUGooVLKiEbPm5c5EnqFtEhoUEl7EmB9JLPCEu6x3 2zzlxJPAZUdCk9zNIj9LC6xm3uI0s0FrTHPb5udsXDO3JGxSjPFHN0WBQLYL53gl5Ttz 5O7z8vNQ0rA6s3IUJcWmoDMEGSLFGww2I19JrGDbvGphAtF1RUU8rlVydV6Y5c42VQWP opKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XsQ4BbhRIsL+cmAEnUDEsQ8gnXvpS1ZZCFh4Kh5KIGc=; b=AjrXV0G0O8buHylQFU+wczbXCPWG0UUfkKtWeytFemRNp4GlzcrphayQG3gW+CpZzj HHPbCrrOOYlvArZCVIbjstIhZRqt0b689ttIG4pHm6mHX6pLA+YvFsH+vEf+buqY/WML 0SHpv5TZDg3oCYVjnIR31bZHLIaYtGa7ndD4Jd2URl5lIRJszPEkqs10n98aPRyxcp0a Eo5KSj1t2tXfBeG5yZ2CcwohiC4nP22wz1FaBza57aswMNn0pOXKJpmPYVRMYM3tgv9u UypLp7IOHq5dJ+dAg/J5zLrwRdlptD5+rIviG6QmS/CekrcPBDBuaekxly/ykj0LgWF7 Uw8w== X-Gm-Message-State: AHPjjUhRf9KjurQkhCOfgT0ydrU4M2nLVBnlxraXt66r9dtopLImsQvK 3fsha0I/XgoS0KRjlJaLUOEGQ1LxQ8g= X-Google-Smtp-Source: AOwi7QAsaHRj946Z4Sx+BGqSQ0mlovu1O+mhgBnbk+bpapoTZxMohyPGHtO1Cvk5ZUDvKX1tXRbG7g== X-Received: by 10.101.93.145 with SMTP id f17mr8615112pgt.50.1506793110274; Sat, 30 Sep 2017 10:38:30 -0700 (PDT) Received: from localhost.localdomain ([171.60.245.167]) by smtp.gmail.com with ESMTPSA id q15sm11197640pgc.64.2017.09.30.10.38.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 30 Sep 2017 10:38:29 -0700 (PDT) From: silexcommon@gmail.com X-Google-Original-From: alagusankar@silex-india.com To: ath10k@lists.infradead.org Subject: [PATCH 02/11] ath10k_sdio: wb396 reference card fix Date: Sat, 30 Sep 2017 23:07:39 +0530 Message-Id: <1506793068-27445-3-git-send-email-alagusankar@silex-india.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1506793068-27445-1-git-send-email-alagusankar@silex-india.com> References: <1506793068-27445-1-git-send-email-alagusankar@silex-india.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170930_103847_356720_E3DF32EE X-CRM114-Status: GOOD ( 10.60 ) X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alagu Sankar , linux-wireless@vger.kernel.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Alagu Sankar The QCA9377-3 WB396 sdio reference card does not get initialized due to the conflict in uart gpio pins. This fix is not required for other QCA9377 sdio cards. Signed-off-by: Alagu Sankar --- drivers/net/wireless/ath/ath10k/core.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index b4f66cd..86247c8 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -1708,8 +1708,15 @@ static int ath10k_init_uart(struct ath10k *ar) return ret; } - if (!uart_print) + if (!uart_print) { + /* Hack: override dbg TX pin to avoid side effects of default + * GPIO_6 in QCA9377 WB396 reference card + */ + if (ar->hif.bus == ATH10K_BUS_SDIO) + ath10k_bmi_write32(ar, hi_dbg_uart_txpin, + ar->hw_params.uart_pin); return 0; + } ret = ath10k_bmi_write32(ar, hi_dbg_uart_txpin, ar->hw_params.uart_pin); if (ret) {