From patchwork Fri Oct 18 05:24:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Andersson X-Patchwork-Id: 176765 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp362693ill; Thu, 17 Oct 2019 22:24:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzZew7yb0rSgPPQ8ePnV91b9vPAG32BXuaoP3Dwi8Lrbm4Q7+ye+aViexjRprFKQfchrFNj X-Received: by 2002:a17:906:3593:: with SMTP id o19mr6897691ejb.61.1571376250580; Thu, 17 Oct 2019 22:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571376250; cv=none; d=google.com; s=arc-20160816; b=f/QOOjz731+JzE/S2pj5EV9amolPGhUotGxVvyMc72rJNR5wxxTWE6zicVZMbSfxkZ 6K73xhl22vzi45CMIBU0kLfEFU/a/o3N4H3O+T2SHmAmQ+ly3X+nuA7L+VwRv/LbpLGD 339Q6Onyow+0NGZWCN7c09kXTPFhx+3NMPJvTm/BY+UqfOGp9bzDnr+Y98f7drHm6Q5U kHln61szh+4V6RujktFALXo5qCm6zsVliR6Cp5pJ/1Ku7NjAbDcmL6qJUlr8MLs6ikPx DidXhKvrw4/pZSZTOSGte7jBdKMaybWxkGdlLLenWq7TVySDz1NWKKUlDQco/bBslQ2f zgWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3o3EqRq3PgsgiQtn4AY+sfKyKLaEqB9pO5QeXjYW1YY=; b=ch9qyC2QUcmXNjtlptKjiTJY3fFMsiRIIofE6EpTZ8il/dBp2DRFq4VM32zW/NqRe8 f/Gb8RQ9L3iEiNIPwZQA332s7kh1Nz+MPP0iVBJXd2ojT0fyp2cZHALDAD6P6jxYpodG Pec8l2NALdcoE90cfYINCXxRYb+OwLPtdt7VH3J1bf6MOJzvDeqLPaSmUU08aNFdokvu LmNyfG/QEWn7v5L3q5x3X9sbY1aIRJ49lNO8Dc1UHe6Bg78b708twMMd2IFn1mW/1NQ5 IlettAVxHXG4xNbP0rG7ljRLsL87/emrJeEmQWEwAjTvQVvKfvURx+QUT+xno5tSMUil 35Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=x9MS2j9S; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-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 v12si3226222edf.212.2019.10.17.22.24.10; Thu, 17 Oct 2019 22:24:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-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=x9MS2j9S; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-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 S2391663AbfJRFYJ (ORCPT + 1 other); Fri, 18 Oct 2019 01:24:09 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:35517 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388268AbfJRFYJ (ORCPT ); Fri, 18 Oct 2019 01:24:09 -0400 Received: by mail-pl1-f196.google.com with SMTP id c3so2284147plo.2 for ; Thu, 17 Oct 2019 22:24:09 -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:mime-version :content-transfer-encoding; bh=3o3EqRq3PgsgiQtn4AY+sfKyKLaEqB9pO5QeXjYW1YY=; b=x9MS2j9SeTU1yjy/80Wvue6xeCHSErdf9EALM3Tjzc+ohSUTFrZ70EJyB/p3y8uCmp E6oisSzZ64R/uT5q9VScB/CUyOZ7ZGyvBjpyp+JPl3pGOKo/IXykFV388A0MvXI77cst pX5J3+EwmNbRsR9dCClbr9xz+PMxp6zkgcXjXyQuncbUYaCKC4ppDkibNqRVoiKxoeeH +oLDcz/9+Kcji/s4z+0T7kT4MnasCEasJtZh74m8B8wBqkjOwDpK8JzeJNlW3UOJuHVG pt2vWbvQc3jWMwz2Ms+vvdBzlZUx/NjpKlQsWPs7KiSDmoqv7lUg/7KxWmUlBYxRTjrF KBsQ== 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:mime-version :content-transfer-encoding; bh=3o3EqRq3PgsgiQtn4AY+sfKyKLaEqB9pO5QeXjYW1YY=; b=PsQH+2oxkLrh7qqg2AOBJpVcN7JRQTCUAtPiVDKSLW58qKbbum820Sp+qhp1hiFKY6 ZlJ0eOUuNUQS0FxjMSLgpbm08A00Tjxri4O3cckQD4I/HTtGZv/u6Ai0Q3LSe4Di3FCM nu/LmecNPyESK0H66BKeZH2iqrjH+vfpyWB0eC34VumLB61ciDu0at/c8ABg++FjXlM5 BMobd7sUlzHDZOsJXTXwMcytHr/52NtP17ZBD29mb9qmg++H6d0YE/VgvC+happffrmP IPQjfdH2A+GHbDCS5woA/zcb9gV/PueS/EI1PoOa68oIzqMjs65jJA8b+AjEMR7XA2bm Rj+g== X-Gm-Message-State: APjAAAUW1BJhgdDP09xIsoqGt+d80Wxcbg677wXMaYrezR41LVH403g4 6OVtKPj/YzO3PN0GMHuYb3pZwg== X-Received: by 2002:a17:902:b70b:: with SMTP id d11mr7650535pls.339.1571376248651; Thu, 17 Oct 2019 22:24:08 -0700 (PDT) Received: from localhost.localdomain (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id u11sm2178760pgc.61.2019.10.17.22.24.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 22:24:08 -0700 (PDT) From: Bjorn Andersson To: Marcel Holtmann , Johan Hedberg Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Jeffrey Hugo , linux-arm-msm@vger.kernel.org Subject: [PATCH 0/4] Bluetooth: hci_qca: Regulator usage cleanup Date: Thu, 17 Oct 2019 22:24:00 -0700 Message-Id: <20191018052405.3693555-1-bjorn.andersson@linaro.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Clean up the regulator usage in hci_qca and in particular don't regulator_set_voltage() for fixed voltages. It cleans up the driver, but more important it makes bluetooth work on my Lenovo Yoga C630, where the regulator for vddch0 is defined with a voltage range that doesn't overlap the values in the driver. Bjorn Andersson (4): Bluetooth: hci_qca: Update regulator_set_load() usage Bluetooth: hci_qca: Don't vote for specific voltage Bluetooth: hci_qca: Use regulator bulk enable/disable Bluetooth: hci_qca: Split qca_power_setup() drivers/bluetooth/hci_qca.c | 135 +++++++++++++++--------------------- 1 file changed, 55 insertions(+), 80 deletions(-) -- 2.23.0