Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp179639ybg; Thu, 11 Jun 2020 21:21:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLjssnhC6Nk4LyuQ/2QuRAtFLldE7dH6I5Rn+HQMHcNC4gfpaSLLDz6c3AIAU04HKSOQTi X-Received: by 2002:a17:907:20e5:: with SMTP id rh5mr11939099ejb.80.1591935689941; Thu, 11 Jun 2020 21:21:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591935689; cv=none; d=google.com; s=arc-20160816; b=ntsOXBS9ZqgAvpUtEYgCnlqFSoDICgYgaxZ9LK+RFBvriZWOhElat5DshQin+e7+FK OkfZqUHHyXH5Fz1249h+Y/1Vs20286RTh+ocOJgI6r1Y5GVnvz0NrTYNvqc4m7Gdb5M6 kbJmc4suGh3f59GzZMScBu49c0iklO3Lb8ZTrfV8S5VDcd5mOybpUhjDQ2dimi0F8UTj w6QGBjsYSPwwgiB4RnKD4nLdNHz3m+9Zj1N4rqzpldn5byZCdZdpr79n+9b7wlLTzp0V oVA2DwzZIDXR69nXG6AzwVFEiV2eLRnBTQY/e/lJmMlSC9bhrxnUNDmJ+a3BozdY+4vn kqhA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=P2KKmtNTkY3aQMCepZoevcFYFYgTZr4wbO0eMIvry+Y=; b=VE4gxin45M1sCCI4k9/kqHu7vPYO5vIHkSQW0XM5zENsRY1T2c2/l7D6OKrY8b7ul3 j1vQyhe5/NscAfq/cEJgSB0mtr1e3t2/g8IZFqBHYcmgQ/dTPkXMRdjAE5PujyT3aPB7 0/8eoCo1H0amQW9jgTi6eEuluSR6uGznLbId1xQdRboOxU4mvq5OWG/tlWLtKbBPEWCE m14HtcVMKRb+iTMpuNyIMWq9dsuvT48Rc5rZL4jYMEJBo8BR68doyn3zAQKHaNPLj1/2 fAAcg8Ix1ZD3orN89u9j4RM5EpSYJL1yN1UKhsMkMn+MxEb1cKRi4EPbTA9ohVN7xsrx MZWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=qJppggMU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w18si3383698ejn.727.2020.06.11.21.21.06; Thu, 11 Jun 2020 21:21:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=qJppggMU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726482AbgFLETX (ORCPT + 99 others); Fri, 12 Jun 2020 00:19:23 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:30757 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726349AbgFLETX (ORCPT ); Fri, 12 Jun 2020 00:19:23 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1591935562; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=P2KKmtNTkY3aQMCepZoevcFYFYgTZr4wbO0eMIvry+Y=; b=qJppggMUDCV/wACDOCyBQJz90vbutszeTKIGS/HaEw0Pm5KXbbaeuL69eGFhIShPilWXaODn d8313KoOvghcD20THDbMX6p96FEMnLQfY9kHgJMt3/Kx9VkN5jtGsbmYAqMpBNAWiORKyYoD HTquD/25+ZNU9MbviW//BuvSxTw= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 5ee302470206ad41d14bd0c6 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 12 Jun 2020 04:19:19 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 9F1F8C4339C; Fri, 12 Jun 2020 04:19:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [10.110.17.171] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wcheng) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6E15FC433CA; Fri, 12 Jun 2020 04:19:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6E15FC433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=wcheng@codeaurora.org Subject: Re: [PATCH 1/3] usb: typec: Add QCOM PMIC typec detection driver To: Bjorn Andersson , Jack Pham Cc: heikki.krogerus@linux.intel.com, gregkh@linuxfoundation.org, mark.rutland@arm.com, robh+dt@kernel.org, agross@kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, bryan.odonoghue@linaro.org References: <20200609205851.30113-1-wcheng@codeaurora.org> <20200609205851.30113-2-wcheng@codeaurora.org> <20200610011837.GA14816@jackp-linux.qualcomm.com> <20200610193757.GB1246811@builder.lan> From: Wesley Cheng Message-ID: <659ee90a-3d8f-9e04-9dc5-0c1521a8ba97@codeaurora.org> Date: Thu, 11 Jun 2020 21:19:16 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200610193757.GB1246811@builder.lan> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/10/2020 12:37 PM, Bjorn Andersson wrote: >> along with USB_BASE @ 0x1300, is it ok to allow this driver to access >> registers outside of its 'reg' base (0x1500 according to the DT >> bindings)? >> > > Depending on how entangled a future driver for the charger blocks would > be one could either just upstream a dcdc regulator driver to control > vbus today, or a "lite version" of a charging driver exposing just the > vbus regulator. > > Either way I would prefer this over poking the register directly from > this driver, as it will make it tricky to migrate to a proper charger > driver later. > > Regards, > Bjorn > Hi Bjorn/Jack, I have removed the need for referencing other base addresses other than the type C block within the driver, and have moved the DCDC set to be handled by another regulator driver, which solely controls the vbus output. The type C driver will control the vbus output using the regulator APIs. Thanks for the input. -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project