Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3457063ybc; Thu, 14 Nov 2019 09:21:03 -0800 (PST) X-Google-Smtp-Source: APXvYqxtqG9E4EEXXojaOkAcOw1DudioGg3qePESbxtUO6mUDTHffJEWoZkOVyddDwBxDXLeTDBg X-Received: by 2002:aa7:d554:: with SMTP id u20mr2549535edr.6.1573752063315; Thu, 14 Nov 2019 09:21:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573752063; cv=none; d=google.com; s=arc-20160816; b=qu4Fma3Dhs1T+UoUn4oy+Y5JhVdVzH1O80uOuCmeJPNjcHIPbMCNTbUWS6NeuO4aa6 aUf3YIHUBqr61b4ojPVXoecSmqv9XU7LqopvNU8rwMZk2b/q3yvQF8lSIgvww+/WIvsD Xo/iAZS8ZbpbaYhDqvzXeCSjowyEczHJ6Bt5vljjvrMmlfp0fVDo/GK9yrIdwGdkRtsV 9tP1tkNqGXy5hkCkSFXC8C56IKUGf+d2ZvEQFofkSK4KHONekUbVvaJcm3WXVArll5ko 9d0QzAYTj8sU73nYZXwpEabvXYSJDRJbY4qXmaQ3iYFeK+vl8j7vo6smhKP6WGbsqO8Z lNUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:subject:from:to:cc :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=VROg+K4TnY3eAbuPo8JrWf/C2byY5+4xNeCDIHGsCeg=; b=Zg/PZNa2IdphNDomuA4xEEYkdfeZQ/OJCDn6g1NJyDB7zFXbn9+RBEpJvOAw038H2O LjEkTv67DbBwVwmTt4OfgPAOChjikYWML7SSLWQC/A4m64s6uhIlpKrGoYEBdLcSpof3 r6e+O7yjgs0B4xdq6M/S25zzlxRjmOWAHJcFnnRLlNLn3KefIgwORXNSvnA/vnbV8GEs lFYkBT3C8RcZe2+3fQVOkq85acQCBZmte4j/H8zGrOraqi/9FppT/GzSz4SF4thQhYAi stFvFTL0H4VsOiMhgAeTEyYJo6/M11mmFXIGJpHS6N8ubzEO6dOUh6UPvFzAu4xNHnsX 3FLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=heWxqfCm; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qu7si3831769ejb.79.2019.11.14.09.20.36; Thu, 14 Nov 2019 09:21:03 -0800 (PST) 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=@chromium.org header.s=google header.b=heWxqfCm; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726661AbfKNRTV (ORCPT + 99 others); Thu, 14 Nov 2019 12:19:21 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:41354 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726410AbfKNRTV (ORCPT ); Thu, 14 Nov 2019 12:19:21 -0500 Received: by mail-pl1-f193.google.com with SMTP id d29so2897324plj.8 for ; Thu, 14 Nov 2019 09:19:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:cc:to:from:subject:user-agent:date; bh=VROg+K4TnY3eAbuPo8JrWf/C2byY5+4xNeCDIHGsCeg=; b=heWxqfCmZNzfTeb32+KsxAmK9QmT+BSvtUhbQQds6N/0EWs8x30JKwk7l7OeGKpP+k Rn6qNv/aPihZZWzCsHOPMyQlqKmLOcE78qR9y5B05Zj9xou0l6VhRE3DGx+wxhPPkfd2 SpMVcrep/VY8e9SeRZ72CgKFH9R+1+lu4c3z8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:cc:to:from:subject :user-agent:date; bh=VROg+K4TnY3eAbuPo8JrWf/C2byY5+4xNeCDIHGsCeg=; b=QZnP9djgYkkGMb8cAwPOgnB1vYqTzXVYaCwAGOOW/JmUf1XIact7ZPCllAwvkPXAOn oUJjDghEzwhxj2UbIs3HdJnG+7Vl57ncdc4i/RsxsHqKbX51fhPwrKxsdCeL/jOu4syy 21Pf7H0IVsSnj6Q0+5y5cfjJmPEVpseu6yyikLQefoibmXwraEabwtXCfQvrhN35W5ks ZHT9R+ImNjy0/T2UNRiM4iMmr+vysIdv9QxKCTuxbVeTaRE0Cl4fF3EDP70NBAo5rgNE lWjZEluqEjI6eLic5n+wU+RvogAMmqFjkOh6098KFtH1TG+dKzFlkytMIToIcG3lagS6 jOeg== X-Gm-Message-State: APjAAAXFydEfdGxXtnSEAzTOc4+DPSowGQur7s9QguPnB3+ZrwKqrT38 x4vTeZGKoVz9Y0LA5Y2vly5NhA== X-Received: by 2002:a17:902:6508:: with SMTP id b8mr10286509plk.69.1573751960472; Thu, 14 Nov 2019 09:19:20 -0800 (PST) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id n12sm7356081pgb.32.2019.11.14.09.19.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Nov 2019 09:19:20 -0800 (PST) Message-ID: <5dcd8c98.1c69fb81.4690b.49fe@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20191114081430.25427-1-bgodavar@codeaurora.org> References: <20191114081430.25427-1-bgodavar@codeaurora.org> Cc: mka@chromium.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, hemantg@codeaurora.org, linux-arm-msm@vger.kernel.org, bgodavar@codeaurora.org, tientzu@chromium.org, seanpaul@chromium.org To: Balakrishna Godavarthi , johan.hedberg@gmail.com, marcel@holtmann.org From: Stephen Boyd Subject: Re: [PATCH v1] Bluetooth: hci_qca: Enable clocks required for BT SOC User-Agent: alot/0.8.1 Date: Thu, 14 Nov 2019 09:19:19 -0800 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Quoting Balakrishna Godavarthi (2019-11-14 00:14:30) > @@ -1423,6 +1427,20 @@ static int qca_power_off(struct hci_dev *hdev) > return 0; > } > =20 > +static int qca_power_on(struct qca_serdev *qcadev) > +{ > + int err; > + > + if (qcadev->susclk) { clk_prepare_enable() shouldn't return anything besides 0 when passed a NULL pointer. Please drop this if condition in addition to the one on the clk_disable_unprepare(). > + err =3D clk_prepare_enable(qcadev->susclk); > + if (err) > + return err; > + }