Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp5864019pxb; Sun, 7 Nov 2021 22:20:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzguAAvmzZ6eq/EOfdN8Dgh9+/MNK3x8nYLdClTb45xFak6CspNFTvc3rcut8mMfzmVahUf X-Received: by 2002:a05:6e02:1a66:: with SMTP id w6mr28796106ilv.306.1636352454195; Sun, 07 Nov 2021 22:20:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636352454; cv=none; d=google.com; s=arc-20160816; b=q8rSzpSnma4yE/kICsUa7kNlXWPs0JhGDw5nEsNR0Pg4NXXD8QuzQ1m7o7gDW6Pfwk mUMbJzlXvMw0H8BzZoudq/TiIAcmLHtJMVJCVE1dBUheR41CLnNxfdmQUdJqmk9CuT55 nQpZqU5jH7V1JeNpmke2KxV1ugTNUU9JH2OXeab+jd8rralAevxIPZlAtOHTXSnd4ly5 qs0Ov6xR0czJfLLjSO3I+Jm61Cpz6OHeP/Y0+rD0kTd52yColaeQkoekZmhJqrhYPfXR 3OXJRus/o197c3IkngZ/iesvfGiDH18FUE3sSfj/S/Vi22W//4SwbXwK9gO2y1WGk4Dc ys0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:dkim-signature:dkim-signature; bh=G+UTj3AnYA8ZP4iI6M9Sj8AQF+R2TPPHefdgO8p+64c=; b=Un2iXcGjIMceHQ7s0eAEbFvMdUO+IcjeqIyLAGstOLC+oDdrz/2OYJ60dFnwhOeYKK 8kh7wv6CwQY8AvtzZKfuQXGUHNDW/+vCwMyZg8hUFV6kXcPiosN1ThLrvH4UaHS/lfrz P3nnAzOp37Y5ytRL6Km970/xzsOS5fiQzVwCAcrCOQIUv3pTVCizmkxaejuAwXWmExzP 58eJvLcVkZhGlgOaEF4M/RuRgQN9mXvEr8i4HUqRuYtaLoL5LLQvcu/qu3UkrwkDjxpb OfOOoRltVv1j8NX8NfDxrMfDHEuf+Tp4HTUCwgPTS0EL5M7SkIFIFVtfL2hNc914al8J z7jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aj.id.au header.s=fm1 header.b=DH5pY0FS; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=a0M181+U; 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 b11si22163564ilv.42.2021.11.07.22.20.42; Sun, 07 Nov 2021 22:20:54 -0800 (PST) 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=pass header.i=@aj.id.au header.s=fm1 header.b=DH5pY0FS; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=a0M181+U; 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 S236791AbhKHAYz (ORCPT + 99 others); Sun, 7 Nov 2021 19:24:55 -0500 Received: from new2-smtp.messagingengine.com ([66.111.4.224]:34063 "EHLO new2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234291AbhKHAYy (ORCPT ); Sun, 7 Nov 2021 19:24:54 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 08DD95803EE; Sun, 7 Nov 2021 19:22:10 -0500 (EST) Received: from imap43 ([10.202.2.93]) by compute4.internal (MEProxy); Sun, 07 Nov 2021 19:22:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aj.id.au; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm1; bh=G+UTj3AnYA8ZP4iI6M9Sj8AQF+R2TPP HefdgO8p+64c=; b=DH5pY0FSsMwGpnEmhsJQjDs5+cmjOwQWLhAQvbBGLs0a0cv mvH/jrNMkqIBGr63FcxWAukxOx7Y1xbd9WVbJMSTmRiE/jtJQrHUKFdy6F5Z5oLp EYnVAlFpySFfCFHWOr1EvvSYap8eiM1WalaF9SOJ+41uxPG7ZCCNhSNbwnXc4SOX YZbOw4fCuxEulH6S5TugJUP6T3rdbd/PNgF5C0IWPmiYh+O3DTiqH1+N4MdJfmlU vUBRyjGmC284GFHpWuewHG0BpEV+dCgndjYgwv0DlLqWML/lpxGVWTApmkYTI/GH czRsGFmdIa7KkHqion/z3vE2qaAU4LHjngwdOeA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=G+UTj3 AnYA8ZP4iI6M9Sj8AQF+R2TPPHefdgO8p+64c=; b=a0M181+Us4nINoGWsTOddb Nr2mH2QxHIKkVlSS2+Ub0kKadvvT+Z8DhMtiZ10GBqDDhSKML8Kr2Uh8/SqGkYY9 Q5dNHPksEGldk3TLhhAJM/BH1ma8Jmj87/WcfrzoqHT8dHRcDR0Z8d6S7u8/eixO 4Ut7AaJwE7nr2kT0lYGX11ukx7ogp9zvs3+8b3tya3hcAKNO7hBxac4CcO1FqZKD PEiDikdX0z4Qdth70qXI6eszhy2jyZ7aJl/yi08W5SNjzA0xmx7rvok/5HGcDIfO ua6UJo3HCrF1QLCq93/wSyrlrGYS3INatr3oXrC2QwAOBjgxQHf4cv6cP9dIplEQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddugdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedftehnughr vgifucflvghffhgvrhihfdcuoegrnhgurhgvfiesrghjrdhiugdrrghuqeenucggtffrrg htthgvrhhnpeehhfefkefgkeduveehffehieehudejfeejveejfedugfefuedtuedvhefh veeuffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grnhgurhgvfiesrghjrdhiugdrrghu X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id E931FAC0DD1; Sun, 7 Nov 2021 19:22:08 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-1369-gd055fb5e7c-fm-20211018.002-gd055fb5e Mime-Version: 1.0 Message-Id: In-Reply-To: References: <20210922103116.30652-1-chin-ting_kuo@aspeedtech.com> <20210922103116.30652-5-chin-ting_kuo@aspeedtech.com> <5a235916-f250-48ac-b931-6ec2c5c2ea5d@www.fastmail.com> Date: Mon, 08 Nov 2021 10:51:48 +1030 From: "Andrew Jeffery" To: "Chin-Ting Kuo" , "Rob Herring" , "Joel Stanley" , "Ulf Hansson" Cc: BMC-SW , "Steven Lee" , "Michael Turquette" , "Stephen Boyd" , "Adrian Hunter" , "linux-aspeed@lists.ozlabs.org" , "openbmc@lists.ozlabs.org" , linux-mmc , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "linux-clk@vger.kernel.org" Subject: Re: [PATCH 04/10] mmc: Add invert flag for clock phase signedness Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 6 Nov 2021, at 20:32, Chin-Ting Kuo wrote: > Hi Andrew, >>> > - rc = device_property_read_u32_array(dev, prop, degrees, 2); >> > + rc = device_property_read_u32_array(dev, prop, degrees, 4); >> > phase->valid = !rc; >> > if (phase->valid) { >> > - phase->in_deg = degrees[0]; >> > - phase->out_deg = degrees[1]; >> > + phase->inv_in_deg = degrees[0] ? true : false; >> > + phase->in_deg = degrees[1]; >> > + phase->inv_out_deg = degrees[2] ? true : false; >> > + phase->out_deg = degrees[3]; >> >> This fundamentally breaks any in-tree users. We can't do this. >> >> In terms of the binding, if negative phase values are something we must do, >> we can just extend the value range to include [-359, -1] right? > > Yes, agree it and I tried it before. But, it seems that the device tree > doesn't support > negative value with "-" prefixed and there is no device tree related > API used to get > the negative value from .dts. Thus, I tried to add an additional flag > to present > negative value. > Hmm. Still, I don't think we can break the binding this way. Rob, Ulf, Adrian: What are your thoughts on handling phase offsets in [-360, 360] in the binding? Do we append the flag field? Add a separate property? I don't think interleaving the flags is desirable, though interested in your thoughts. Andrew