Received: by 10.213.65.68 with SMTP id h4csp493310imn; Tue, 13 Mar 2018 10:46:56 -0700 (PDT) X-Google-Smtp-Source: AG47ELvgTxM2sBmtd2dxvfTRD1qyI9HW1qloo5JakWrJNCRFYIlyd5cDK7PqeHTPWyC+dKAfuKEK X-Received: by 10.101.67.137 with SMTP id m9mr1108195pgp.301.1520963216269; Tue, 13 Mar 2018 10:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520963216; cv=none; d=google.com; s=arc-20160816; b=zq479V8DnxU7MrOSyCmZjTZl89+MeXLfOlCLyIQ3htq7N1/Ix2oc40QfScDxZTpe2K 3o0NY+eC/O7M/5BRq+jHhZNUGaMgzcourzRK3/bkNZ5x3WfWS/d4PUZdlHoqKjseWtP7 lBOWSFDaZbge+vkZxMR77PsSYiOMnLFfoeUcsWcxXnqWxcvj0EaW46ihCnxaTR/QErls 2018c0z2hpCJqG4leWOl9Q1Pl9n/xcxkcFk6xiBvLIi2eml3S4e1LIGQpa2BbJ4fQvAQ ta1Ouu+u5z8L5zs2zmyJQrfSCTPnRHOVsDteg1w898nET3mx41CSp1kFIDyUqo3fil+D tnmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=wr1Y39tODHshv3ztbZ/TVdrn/k3DGFnX9KaXEsASROk=; b=J6KdhiwoEeYZzcy2rqV3A+dBbulP+OhebiZEsyFHp4V4BV3jtT5Cmb0rwxr6nhWyre S3jUrlHdMFcn2XgrmjCJEzK6kKTtyh5UJAbjCjHh4ptV2+34dWSKiEjU1ABAJ1289HFN TUWnTF6a4xezkssrfoUEXkKnak+jYtpCxuzFNtxmY49YsEGwXDAtomyZRGe/EJLhUtNw M6WhPW4djwUo2OeTXnh1zFzpuxXV12hRzDPp72urLWfDb79E2ulpywjKOOdL3j1k12Zm XVCPxmmWZfSn8+KYlPpSSyXD5WroqWLzZ8a2UAKnBSAwyPhR0q8D5KVMWYa4AN45uOwK D1gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jK6sI99s; 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 u24si409722pgv.424.2018.03.13.10.46.41; Tue, 13 Mar 2018 10:46:56 -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=jK6sI99s; 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 S1752263AbeCMRpY (ORCPT + 99 others); Tue, 13 Mar 2018 13:45:24 -0400 Received: from mail-pg0-f41.google.com ([74.125.83.41]:32776 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751719AbeCMRpV (ORCPT ); Tue, 13 Mar 2018 13:45:21 -0400 Received: by mail-pg0-f41.google.com with SMTP id g12so186759pgs.0 for ; Tue, 13 Mar 2018 10:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wr1Y39tODHshv3ztbZ/TVdrn/k3DGFnX9KaXEsASROk=; b=jK6sI99sEN7hOQezZcgO3LuA9/zlEmjMfY33HOPEFvR3/KnMHHSH5iEjxxQFfD7g9f 0twPaH6cbzWvq9jtUUix9TfZQcsCqi0EU1BRuIfTfW2aoHFPxv5JPO22HwFVRvNhIhNS OfOffNVjZ3FM65tpzRJ2WSPMi3PEx/uatj4Tk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wr1Y39tODHshv3ztbZ/TVdrn/k3DGFnX9KaXEsASROk=; b=PKo0dEn9AVoiEv/vOav2MeWkPJ4zl6O0TpAbkIoCO/xGVBRAqcc54Eae82+o4GSVBx XRmlblVCIZBtAWfXxIFOb0Dxwhghrvg3dLOkJ4CzYdU7ASdO1MY2jFj+FfYDV1VzZ/od DpE+dTwFqkWT2r15zv8H16rSr/CyJ2/x0jaPa7R1if4LNOZ0ejZRrYG8B+Uw4YXeY1U7 yQ1Xwj4agnDZvDk7zKbfgFIqQ+j50WdSGawgnDxkf2bZHO61x2fOWF7KIX4tGotLeiXJ bcjs6Z+cI/DCxpXU84hgrXS3jHF/Zk8RrBpxYX6tl8H1O5+V075cTwYPnNgKzAGxC/Hg io9Q== X-Gm-Message-State: AElRT7FHRt67OALllVnP68RxTzMrm1atzAhk7B9smBLT7u7ZS1I6oJ8u ZIlDig75Da3CeMqceDwKU6Nw5g== X-Received: by 10.99.125.75 with SMTP id m11mr1127804pgn.391.1520963121141; Tue, 13 Mar 2018 10:45:21 -0700 (PDT) Received: from minitux (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id b6sm1418984pfm.160.2018.03.13.10.45.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 13 Mar 2018 10:45:20 -0700 (PDT) Date: Tue, 13 Mar 2018 10:45:18 -0700 From: Bjorn Andersson To: Thierry Escande Cc: Rob Herring , Andy Gross , Marcel Holtmann , Johan Hedberg , David Brown , Mark Rutland , Srinivas Kandagatla , linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/3] Bluetooth: hci_qca: Add serdev support Message-ID: <20180313174518.GU18510@minitux> References: <20180313164444.19881-1-thierry.escande@linaro.org> <20180313164444.19881-4-thierry.escande@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180313164444.19881-4-thierry.escande@linaro.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 13 Mar 09:44 PDT 2018, Thierry Escande wrote: > @@ -50,6 +54,9 @@ > #define IBS_TX_IDLE_TIMEOUT_MS 2000 > #define BAUDRATE_SETTLE_TIMEOUT_MS 300 > > +/* divclk4 rate */ The clock is called "susclk" in the BT chip, "divclk4" is the board specific name for the clock source. > +#define DIVCLK4_RATE_32KHZ 32768 > + > /* HCI_IBS transmit side sleep protocol states */ > enum tx_ibs_states { > HCI_IBS_TX_ASLEEP, > @@ -111,6 +118,12 @@ struct qca_data { > u64 votes_off; > }; > > +struct qca_serdev { > + struct hci_uart serdev_hu; > + struct gpio_desc *bt_en; > + struct clk *divclk4; Rename this to "susclk", or simply "clk". > +}; Apart from this and Andy's comments this looks good. Regards, Bjorn