Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4575748ybg; Tue, 29 Oct 2019 09:10:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsxeDaONx109IsC5Z+fMajHNdB+7eGdghwVVd4A6DOnzdeOvaVO6PHWQ+9Ak6q/VerAlgo X-Received: by 2002:a05:6402:154f:: with SMTP id p15mr13468456edx.114.1572365451303; Tue, 29 Oct 2019 09:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572365451; cv=none; d=google.com; s=arc-20160816; b=TwcZhKWAlHA3oCmDPaBmnzHuwh+pdiB6W0oP8josBdY2IbU7oco/PDbvAmNb0uSD2L 98JKis+6buUx+f4CQZEc2tCg/uPjG2FhRqNz+gfg9SGuSnnmdpA2VvnLw8iA1ScKyaKF NEVMq8w7WLUedstmJTxo3KATLlyTVsVUsH8M2oHvghLkl1DWD6ks/eIIAJI/voMNQIrG Bi64mL2LUqMhi0iLR/rGipvPuRvYTShTCuUJKZ0b1J81rPCtFEHZ06lJRFazsC+Njz44 2dPcv0T0xCSY+I6UzjUqlfeSJxSI2uyaTDW0lo+/R/xHNgzuAdzeUS90GHBwQEESxoA3 8X8A== 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 :in-reply-to:references:mime-version:dkim-signature; bh=Y/GoSbHE+NLH7W2Mu8zFFQ7lEbuLzZk7XwxfHja+Yzg=; b=NoPdxk/UkKRrY6QsOvU3lFeiiqyA9UuTSGZSrALNJl1QinDt5SCGYQF+WZ0/bi8NqG BGhE5IaFvnqXWJDJZAhN/rSjVdQvRWQ8qs8PccElceQBmeRNEqVL1xFAHFFm9r0Bz0uq LO2klLZVKK7N64DbvQb5QgZ3KHU3x7IyadCSbR/JkEDr3K5zCS6hAUIqYVDXwMBXEv39 zCywqqj9tgS1oQ1SLX1YvCS5rSvREsEdac6mMX/fMeAhMNuuvyvQULC2AmF7Z9bLOmgV ma/Nq3jPGaCvPk/3cphs0bEEUK+deDh9q3e7+wresD3eULGcEBHCkNnXkTaUSYHhy8V9 xj9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ru11L2IB; 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 v13si12680139eda.131.2019.10.29.09.10.04; Tue, 29 Oct 2019 09:10:51 -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=Ru11L2IB; 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 S2390321AbfJ2QJF (ORCPT + 99 others); Tue, 29 Oct 2019 12:09:05 -0400 Received: from mail-oi1-f193.google.com ([209.85.167.193]:46024 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390268AbfJ2QJE (ORCPT ); Tue, 29 Oct 2019 12:09:04 -0400 Received: by mail-oi1-f193.google.com with SMTP id k2so4270280oij.12 for ; Tue, 29 Oct 2019 09:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y/GoSbHE+NLH7W2Mu8zFFQ7lEbuLzZk7XwxfHja+Yzg=; b=Ru11L2IBkDIJZsYDjB85uuW3Hg6Ogmc7cMCeDS0TOGdpcjHv6AH0W1gpfdo3vWCyL/ OjExvMLYmUEHKRBLIVMuGNq/SdG8vAKBGNeKvaDY20WOV/aywssoBIVexPeIloKvk5Ls Jj07IgPDrnplLyVcXn2HsuhY9ZVjD1C8Q0dNWikuxqoUeHG5E8n4OVE8gF6fFHXSQxP9 QAIGKqUxMCg6te++WPC0c4rNq8iRuOLIppaYeuzuavb1RLPTFjZ8GwMMTfbhi8sRSGY+ FT3RxuiLlo1mIG3sp9xz+zc1DI7rl+bYyUUUFcydf2U9uDwVBF08uQg7PNTX3HFh3xvc edQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y/GoSbHE+NLH7W2Mu8zFFQ7lEbuLzZk7XwxfHja+Yzg=; b=SsQpQIXL00ESC1ZMG7gEAjhTSzCrD9BixPtWcGCreWr1cRLaPwTZx3lOY0zmQxVknc FCYavKJSlJPwfFKkA7e3JlPbS/Z47c6J4V3v/szGvcZ9RhESBqNVBA1R4aCKdps44STf Z4A1pLpVI9kxCFNLa+5k4TTGgc2h2wOl4T6LcwI1WG5mnxO9LD52eGO+qzAuVKXbrMJy cA4xzsdoUYcfZ+YOjgDBl/TiiRRWh4x832r907YEtA9O5jscp34EfHyMDMFYUVy0yDHh lKL0Agz9s5uCKtrshbjwGpaLvEyw3Cbp72cuSJ85eg5l64gBrfjhUOpMBTGR/n+3K8Eg L60A== X-Gm-Message-State: APjAAAUT2b6CK1igZd/AmP9cbqAjRHqbQpNqSEga1pTMm4mkmNylEfgq h8+gBQYXmJ6PgwXs5uv5obC7ZiJg/VyBV3wpCBameA== X-Received: by 2002:aca:c3cf:: with SMTP id t198mr4927418oif.10.1572365343764; Tue, 29 Oct 2019 09:09:03 -0700 (PDT) MIME-Version: 1.0 References: <20191028215919.83697-1-john.stultz@linaro.org> <20191028215919.83697-6-john.stultz@linaro.org> <87k18nj4mj.fsf@gmail.com> In-Reply-To: <87k18nj4mj.fsf@gmail.com> From: John Stultz Date: Tue, 29 Oct 2019 09:08:53 -0700 Message-ID: Subject: Re: [PATCH v4 5/9] usb: dwc3: Rework clock initialization to be more flexible To: Felipe Balbi Cc: lkml , Greg Kroah-Hartman , Rob Herring , Mark Rutland , ShuFan Lee , Heikki Krogerus , Suzuki K Poulose , Chunfeng Yun , Yu Chen , Hans de Goede , Andy Shevchenko , Jun Li , Valentin Schneider , Jack Pham , Linux USB List , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" 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, Oct 29, 2019 at 2:14 AM Felipe Balbi wrote: > John Stultz writes: > > > The dwc3 core binding specifies three clocks: > > ref, bus_early, and suspend > > > > which are all controlled in the driver together. > > > > However some variants of the hardware my not have all three clks > ^^ > may > > In fact *all* platforms have all three clocks. It's just that in some > cases clock pins are shorted together (or take input from same clock). > ... > another option would be to pass three clocks with the same phandle. That > would even make sure that clock usage counts are correct, no? Hey Felipe! So I actually had done that initially (and it seemed to work), but Rob suggested this way instead. I'm fine with either, as long as having multiple references to the same clk in the enable/disable paths doesn't cause trouble. Thanks so much for the review here! -john