Received: by 10.192.165.156 with SMTP id m28csp305940imm; Sun, 15 Apr 2018 23:46:54 -0700 (PDT) X-Google-Smtp-Source: AIpwx48nxWSC5ss+xCgkP4p0Q6OSONTSbunFalrQhPPBRD3sy4d5Eny7Y6PkAGo/Kk6IhlD0uKfn X-Received: by 10.101.88.68 with SMTP id s4mr1597661pgr.232.1523861214828; Sun, 15 Apr 2018 23:46:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523861214; cv=none; d=google.com; s=arc-20160816; b=ISZleyFvI6O9uBm6ntnbY/EGcEca8XJekmX1fKnS6HT/1pxliOo8E2QPiN9fSfx8IN rfCBrrCZ0HAJ+NOPB09AaGg9zzch5T20Vmnm6mmxYtbjMRB1BlCNrZ5HpqmiHKsVBnSd QRBEdWFBYUbPe+CQyBeehrk2CaZS00W78+bt+/0uGnv1wh5skirnZkk9wP2TYamb1+Rp T3EbcDMLC55P4JraIodLP90zHajWWadEn3G5qMRT0cc6IvKx3Ma5feoiwizpWY31UyMZ usk9Fkgj2MaNjvmD3CtpP5TtUlqgmfAbp8QFQZQ8xZqR0H0tTrcS9f2wkCaa1RcLJuxz Xz2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:author:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=/2yx4ELcwl7HOar0oz7JanMSzAX7l5VBKt1bqqHdwBM=; b=E0OGM06+pq3gpOjgSooVEiXZkpXC7B79DJrTsAlP/IYv338LlZMDhodnYP2cspO9NX BxamX4XOmPLCs6ypozJIm1ZG9bHITYgoFYrs0GOUvYTG5Vis5KQt3jZUYgT4Q+VvpyH4 53YSBTFDkO9242jctySokajSdQnYh2mw+1+aBAK2hH5I4su8qApLczCrIQRjlO9oV91m Zrpk3ZmlMVqmpm5xz/4yeO9NPX94kjNqCW4P9qApSEUjmj5+4/CPNSt7Q8YQIqs3+Osg OxNADjvunSGR+sf6XOa2o2IZDfNkXfbyRQs2ntkKVICrWCqumpIHCvrmJi6hGF2ix8g2 PyWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iWmStMTY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si9839983pff.205.2018.04.15.23.46.40; Sun, 15 Apr 2018 23:46:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iWmStMTY; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752604AbeDPGkd (ORCPT + 99 others); Mon, 16 Apr 2018 02:40:33 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:44216 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752201AbeDPGkb (ORCPT ); Mon, 16 Apr 2018 02:40:31 -0400 Received: by mail-pg0-f67.google.com with SMTP id l12so727633pgp.11 for ; Sun, 15 Apr 2018 23:40:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:author; bh=/2yx4ELcwl7HOar0oz7JanMSzAX7l5VBKt1bqqHdwBM=; b=iWmStMTYRmQmOETwPnKPZEB/SHRv4lfGbRJP2/9n6hzX1ybTar/hk9KfCEpNq2lWZC qY74BaZoQmJDY6N8SIzIey4NP0moe089Ac1blGcgj0gewkZo1qb6jKRR0QZy9Lz37r0n R9W5czQuCHPGWD3tiPJk0TLWiIgU28wc9g8tc= 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:author; bh=/2yx4ELcwl7HOar0oz7JanMSzAX7l5VBKt1bqqHdwBM=; b=jkUZrX/1KaP/NVA9fXB5hlLcGETdnoWeJu9aSM5DdWGj1pPSBoyYlmD+XZq+ZRrRkx I6yhlZyTA5ItIIlA00Prg6SaDdi7jRlb/D8XKBz28QbG5WcgO1tTVraaYXKz8AgQJ57I 14yEIxd4cg/nZtP2QhjxSp0Rx4bNZ87riO59jBfvNM8QoaQP7BvO4GddSOVFmTjGZ4TS pBBiRk26HQjOVm1cFhK7TmCPpObfl3mAiKgQcFRbvKPyEbkIr05znSKz6DzoRctC/WFR tlsUyRUuuBZD6ACgYQqYn1QYjp7gfyrdQBjQpZ72+n0AJ7spfyBxcCJwafRivQ1KtjIM sjMw== X-Gm-Message-State: ALQs6tCCZESliJun04S81PyW8/wmwl7g2GI3c4XQGazGawD7Wy5vTrjf kCENaKme8z0IZGgEkTVD80vwOXtK9Ig= X-Received: by 10.101.101.132 with SMTP id u4mr12065251pgv.260.1523860830820; Sun, 15 Apr 2018 23:40:30 -0700 (PDT) Received: from localhost.localdomain ([106.51.17.69]) by smtp.gmail.com with ESMTPSA id h6sm21878223pgn.65.2018.04.15.23.40.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 15 Apr 2018 23:40:29 -0700 (PDT) From: Amit Pundir To: linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org Cc: dragonboard@lists.96boards.org, Loic Poulain , Nicolas Dechesne , Marcel Holtmann , Johan Hedberg , Stable Subject: [PATCH] Bluetooth: hci_qca: Avoid missing rampatch failure with userspace fw loader Date: Mon, 16 Apr 2018 12:10:24 +0530 Message-Id: <1523860824-3392-1-git-send-email-amit.pundir@linaro.org> X-Mailer: git-send-email 2.7.4 Author: Amit Pundir Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org AOSP use userspace firmware loader to load firmwares, which will return -EAGAIN in case qca/rampatch_00440302.bin is not found. Since there is no rampatch for dragonboard820c QCA controller revision, just make it work as is. CC: Loic Poulain CC: Nicolas Dechesne CC: Marcel Holtmann CC: Johan Hedberg CC: Stable Signed-off-by: Amit Pundir --- drivers/bluetooth/hci_qca.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 05ec530b8a3a..330e9b29e145 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -935,6 +935,12 @@ static int qca_setup(struct hci_uart *hu) } else if (ret == -ENOENT) { /* No patch/nvm-config found, run with original fw/config */ ret = 0; + } else if (ret == -EAGAIN) { + /* + * Userspace firmware loader will return -EAGAIN in case no + * patch/nvm-config is found, so run with original fw/config. + */ + ret = 0; } /* Setup bdaddr */ -- 2.7.4