Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp5063503ybb; Tue, 24 Mar 2020 10:16:50 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsmqgjSP6J4qckZp38ZFGv2ESo0+k9LjyA+59EOgcihFZCjTZ6XT2JQFpGixekfj6VEDQBr X-Received: by 2002:a05:6830:1c7:: with SMTP id r7mr13207507ota.58.1585070210181; Tue, 24 Mar 2020 10:16:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585070210; cv=none; d=google.com; s=arc-20160816; b=UXSmKHDgnalxejez9dDsfkEhsPqqly7M5pgOE+neW8pR8NUnQuHPN0gdRNU/Y47tiw NDSMWe0aMfz1+h2WgPpEUeBQ2jbhrlzGHbvs3nbEalkMltAs3z3g2QVAU1CHV1YGkKZf ZTT0zuE3puFAHUHdzyv4dEqu9+L+KLyQccLqnnZkaNdpNOmOXI7codgwepEBh3+6ie8U ct0NPIUfqkgbdoiNUaAETFUbFvaRnhjo975rsY/kaR+Y8lUWt7rAj2Od3bOK9SbUp9SR zvylUBeWfBMMZmBj8U/yqBpHeVrZl1FDycZZQOQNljeKebpBpWZFLLWITpo6zNfkpYpR 7ytg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :mime-version:dkim-signature; bh=YiXRlBrRsNARFfivt+q4M19L7ch08HlBHiwWszT73K4=; b=xVZRM1d/w8xollLhk1a1aQDnLIGetZJ5XbteTIHXAZynXwGBmlQpqAGHeP//PbEr0a IH4zHILpGAGnbGDiybbaW47NZ2wFyESt2ElaZFB0sW7FG2uoNQSQ+qx8jdjP5bxhfAGA DH5C2+KTdTZBzsmBwonTr2P8M9978LEEkceKXYkRU2X0l2e5DTUvG2mLqAtPmcWCCM0f 7AZr0R1NjDMNdJ9l/A95sJMDdEC8VHx4hybgcOWmzXtCLz36Z+VwOoMWnYHCijhQJsEC q3q2HBWjMnMQWvShiLqIf/2gw81ni7sqJLfbSqz/tzSnczvWG9ns9941C5SJ89ddsLak 9Eow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dUr9Vmax; 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 q137si9530403oic.139.2020.03.24.10.16.36; Tue, 24 Mar 2020 10:16:50 -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=dUr9Vmax; 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 S1727509AbgCXRPZ (ORCPT + 99 others); Tue, 24 Mar 2020 13:15:25 -0400 Received: from mail-io1-f52.google.com ([209.85.166.52]:34556 "EHLO mail-io1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727161AbgCXRPZ (ORCPT ); Tue, 24 Mar 2020 13:15:25 -0400 Received: by mail-io1-f52.google.com with SMTP id h131so18955512iof.1; Tue, 24 Mar 2020 10:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YiXRlBrRsNARFfivt+q4M19L7ch08HlBHiwWszT73K4=; b=dUr9VmaxL5yXvGB0B5Pqvr6qpjK6TdoMypHZquv7a109cusjUgT7mSHaEEx0ZgUYr+ 4bwaQ2Sg1eAoonfdHK/ATuT776XjJT4HmK3OwKLdeAgDQvWV/9WWoIW6hudgi42fevJG rb2Fp4qXZSfU2MNZ0U/nSBxZ5JYVHl4BPGth0ALr0e6SaP/b8QreuwRndREC6DWbQNga nI6S9QFTqr4W5u3grizAJz+xa3uP5QjxYQZgufvB/K+NPBsiX8LPvqGoboQ+nIplafVu 2Srmw3E3frsSHKjxiwwJg8qVdlCrfNUPe4r6A5viZ/OEJ3CPO/fZxKX2ea7tysEHaU32 Ab3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YiXRlBrRsNARFfivt+q4M19L7ch08HlBHiwWszT73K4=; b=KAGM6I01ogLis9Pkjh7oC17HzHvdUshY8WEI+bZZmwYutNRv6fhd396nD3o++E0vXc +daHVusV+ecaEys6mxIHZFQImbPGqiMA+HRYZ7gCSgBsKpIyiieSSa5D9DPHTyexcgbP 0jpDK76zSMgzjWfBlnbJs/TNSYSJI0yaq+xwRqNf09sxvECRGrdTJc5dCzxrhRZt6zhQ iFitNerK2qUtBM01ih+vpGPXsic3g6VO8K5Rq1LmEdCadtJGhHIS82uZEWxHddQ8IOH1 3uD4jrHrp3kpOzmoTUDu5dIrQ7DOzUb0uldySBSIpYKn5fDKst2rgMChzDFBF/frqWWq YtAg== X-Gm-Message-State: ANhLgQ3Yak+sewCCTyvXMvHjnPWGnvfpb5v8SEbwO8WYavUm8GMZ4WD9 Vl3J2FdHUz9joNnFBcbuHFmI7stCTwvWU+sNHWg= X-Received: by 2002:a02:86:: with SMTP id 128mr25665426jaa.3.1585070124273; Tue, 24 Mar 2020 10:15:24 -0700 (PDT) MIME-Version: 1.0 From: Adam Ford Date: Tue, 24 Mar 2020 12:15:12 -0500 Message-ID: Subject: Versaclock usage and improvement question To: Marek Vasut , Michael Turquette , Stephen Boyd , linux-clk , 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 Marek, I am working on a board that uses two versaclock chips using different i2c buses, but it appears to the driver is hard-coding the names of the clocks. This appears to be a problem when the second instance is loaded, it fails, because the clock names already exist. I am inquiring to you as how you'd prefer to see the clock names generated so we can do multiple instances. I am planning on using kasprintf and following a pattern similar to drivers/clk/keystone/sci-clk.c. Secondly, our Versaclock chips are un-programmed, so we need to both enable the clock signal and set the output type which means adding a few device tree options. I am curious to know if you have an opinion on how the new flags should be named. Lastly, we're going to use the versaclock to drive multiple devices, and some of them do not call the function to enable the clocks, so we need some method to force the clocks on. Is there a method to forcing the clock outputs on similar to a gpio-hog holding a GPIO line in a known state? thank you, adam