Received: by 10.213.65.68 with SMTP id h4csp463799imn; Tue, 13 Mar 2018 09:52:34 -0700 (PDT) X-Google-Smtp-Source: AG47ELuG/a1gF8xhvyW37dgfaXWK36BjLlhjr4oVB1fdsr9ZLQgSYph4aCXEKQgS34xN1xRD4Hby X-Received: by 10.99.168.8 with SMTP id o8mr1056520pgf.246.1520959954535; Tue, 13 Mar 2018 09:52:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520959954; cv=none; d=google.com; s=arc-20160816; b=zjt/WsXbvyp6lhDIA+65t/5k9ZUf8M+XsZ6wToIec4xp37XbZ90dUu58Kp8OM6Z5Dk Ko1Jc4tkY0QvLuSTdl5pCw6PZAT6HbndP24Un6BrQwta9tZDl3Sk1BLYelup9DDqx3LD LgtrerQ+1wmCym1xUtqEPVmHEg3+cGm6t9J5JOCUoYQppCflYXC/0gcSr/zPr5I82FBT bjjJkmufXO5sKOHIEh9/p/vBMFSjI6yFA+r1uHrOPxZ2jabw/4wEjQ053UBZMnD9BQuR JiHoYz3GVM9LBVC1vRxCZ+V4V2Fs+1jOXBahsv+WvrWpxImMt9kgPnAS+8T4NnNa7SpA 5Img== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=fJwJEoG4Eaa+Abj3Bsy1FjVh7NOVKY5mfHULTWeHliE=; b=dGuhklFB9LfPtWiSFIve1fpDul0GZ6FfU6PH73iGkUlqp+g2Ux9aTb0+ltMa82V2EZ xcD3lHsaqUnodVxlkFVQJ/DO2g3Y4ojNTapawMurAWpKTgx0XhTsDI4ShpEIAmAW5CPQ KApTL2e4C/dCRchJlWFzVgLT//PyyijewtvkkquLd5cIXD0ImdJGcckisaCr9683yUeQ Cxcbd4bvEZY2ZDajo0m4mXpHMBPgGSIiRIYxGtv7ynz2tYdypPTtfSqbpv8pxT9Lrtnv HKpi95+kcyUvkU+Qb5JMNAWY/xrxy1sJ3fpKk+c3ycC4CDluZJvAAsFgwOazyMJMbzjc jDbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iCcDRWtX; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e34-v6si320279plb.588.2018.03.13.09.52.19; Tue, 13 Mar 2018 09:52:34 -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=@gmail.com header.s=20161025 header.b=iCcDRWtX; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933621AbeCMQuo (ORCPT + 99 others); Tue, 13 Mar 2018 12:50:44 -0400 Received: from mail-qk0-f194.google.com ([209.85.220.194]:34930 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933368AbeCMQul (ORCPT ); Tue, 13 Mar 2018 12:50:41 -0400 Received: by mail-qk0-f194.google.com with SMTP id s188so318558qkb.2; Tue, 13 Mar 2018 09:50:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fJwJEoG4Eaa+Abj3Bsy1FjVh7NOVKY5mfHULTWeHliE=; b=iCcDRWtXoaZ//O34TVY0DZOzZj3oDG2aC7HsYuEboWM23TTEaSFUhHCVsr7CKd7lg8 rt7XTEpe6huJ3bJny4NBmNTKvh08iTCcScUvA10qPMEKHQkORS9qwHq0lx68nAsAIkE+ aXGGsB0c79XEe8XJoC5hOaIaEg2Zny2t8aYQVU/xoS2M5zYvpvKhPREJcG3V2XVuc5i3 hOV1Rl0CPTtJ8yAVAXYdwqsdFlaNNXGhQ3NHoIzusuRCfTgyL3UIbtsz+7slyQwPBnSN WRNWxkxExS+5ms68vCVtXx4R7jOACh6FB/ra1fs59x0iXTWKczQsguTuJj+m5ZhSnUCQ RoiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fJwJEoG4Eaa+Abj3Bsy1FjVh7NOVKY5mfHULTWeHliE=; b=ous9/kH+fpFdAFYUdicHbclLY8BrJUiidN1t0Km9QpOE5PK7zZrrJY3bzA/AZx2DpE LmLfhBgnMX2mkd/6G2GSKWDpr+xWyBe0RaIhjTILdaVnw/5KpqDo10HRpEhbihWPgsOa ngeK/3XSj/8dTgSfEEv118YpmGuVZm5l5yH4n3Kit0E3/BmEcGjHXvrOZKRodbq5y/xm O/aKDHOmhdxyzdS1yOeW+W1kL3iGpMApvG7o0PDETNmi6ow91wPQd3qtI7D9lDE/fWDA aa1PknSJoVWFEc6Up4UbkfSWQWpfXm0PojaREYXQGOWRItIJxgvOYQfFu79EJ2ADktdj krgw== X-Gm-Message-State: AElRT7GwyXtggHe7VDE54OYqD92nNAQQfHLbglU1SInIVIqV9R4qDfPz 1tsU/ibq8RybNtUmCAsz6ApI4riGYVoFMYhRwk3sNlmY X-Received: by 10.55.245.14 with SMTP id l14mr1928577qkk.301.1520959840060; Tue, 13 Mar 2018 09:50:40 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.195.80 with HTTP; Tue, 13 Mar 2018 09:50:39 -0700 (PDT) In-Reply-To: <20180313164444.19881-4-thierry.escande@linaro.org> References: <20180313164444.19881-1-thierry.escande@linaro.org> <20180313164444.19881-4-thierry.escande@linaro.org> From: Andy Shevchenko Date: Tue, 13 Mar 2018 18:50:39 +0200 Message-ID: Subject: Re: [PATCH v2 3/3] Bluetooth: hci_qca: Add serdev support To: Thierry Escande Cc: Rob Herring , Andy Gross , Marcel Holtmann , Johan Hedberg , David Brown , Mark Rutland , Bjorn Andersson , Srinivas Kandagatla , linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 6:44 PM, Thierry Escande wrote: > Add support for Qualcomm serial slave devices. Probe the serial device, > retrieve its maximum speed and register a new hci uart device. > +#include What exactly this is used for? > + qcadev->bt_en = devm_gpiod_get(&serdev->dev, "bt-disable-n", > + GPIOD_OUT_LOW); > + if (IS_ERR(qcadev->bt_en)) { > + dev_err(&serdev->dev, "failed to acquire bt-disable-n gpio\n"); > + return PTR_ERR(qcadev->bt_en); > + } > + gpiod_set_value(qcadev->bt_en, 0); Redundant. > + clk_set_rate(qcadev->divclk4, DIVCLK4_RATE_32KHZ); > + clk_prepare_enable(qcadev->divclk4); This may fail. > + return hci_uart_register_device(&qcadev->serdev_hu, &qca_proto); > +} > + clk_disable(qcadev->divclk4); > + clk_unprepare(qcadev->divclk4); One call. > +} > +static const struct of_device_id qca_bluetooth_of_match[] = { > + { .compatible = "qcom,qca6174-bt" }, > + { }, No comma. > +}; -- With Best Regards, Andy Shevchenko