Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp560387pxj; Fri, 11 Jun 2021 06:06:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4TLosv5HLrjPI0/EtlZxCAy58eamIAp1Yk5+zsiCKJ5PE0ycRekTOQnC0y4uLOJLwSzyA X-Received: by 2002:a5d:58c1:: with SMTP id o1mr3969105wrf.420.1623416790143; Fri, 11 Jun 2021 06:06:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623416790; cv=none; d=google.com; s=arc-20160816; b=0luShtOKaQsyqLxXSm1Cb0yI71tNAESAXD7HyPQLYlX6oCeGCQAF7Dt4QNUqG7v4qz iGr5U37r+fqGm6yIOJpa4u5OOBwht7l7bMhoyeK/i6PNSz1vKmWfwchZCRlOqu1SgPyf wmAr9j1fubqXczHJ2BQImY7g9IYBN/REqeY9QOIorYvUSyzy8UoIa3THx4Y+ZqeZklgW VQPGbF6MXqylDQjpVcRO44ZJZYon6EoLrwkCMEbN1y/lJRIk2MxQ3mkotYgRdgyCh0Ha x832elgYLWLQrF6elVzlPAeC3/NU0cnKdt+4xOHe7XWU7r8JQeJeAFP0A4Ey/JaBKGAC 2lqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=bMMWvzfrFHl4j9c+dznuq5O3XnvQE4Ox9cPFZYk/Sj4=; b=Jv0964edYowdjBDiJLSADNhX/0dM3wp22Cpuozm82g0XAsG903Q5p5jn/ba862ZZPk JvsMGSezmjK7WQMfit485oEmmI75tbEDZ5UGvM7HNj3yAGQeI4MqUZQEj7BJgl0Syvw8 BpdauEW/w82KpdI2okMsBKneMvVRADrQ3s1mIqNXCK1tixEP4Nu/xzKNFCLY831hH+uq JNZntX1dqcYD7e/7Dnvf8WMCPPS+qCgeCIXUATAz/s7JMX37T8CJm8h6PIusM5o0pO/s pyLhn8ggC/GXoqv6bXWLVUbEuhFwLJsvhrjNWtpVqJ2kiyFDuHveSKVV5hET/3OeEjOE gtjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jOzQ0IAB; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ba17si4973406edb.400.2021.06.11.06.06.03; Fri, 11 Jun 2021 06:06:30 -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=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jOzQ0IAB; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231709AbhFKNEV (ORCPT + 99 others); Fri, 11 Jun 2021 09:04:21 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:32838 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231776AbhFKNER (ORCPT ); Fri, 11 Jun 2021 09:04:17 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 15BD1xxm043638; Fri, 11 Jun 2021 08:01:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1623416519; bh=bMMWvzfrFHl4j9c+dznuq5O3XnvQE4Ox9cPFZYk/Sj4=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=jOzQ0IAB7U4Oxb4Ul/KKGQJuHkNxJDi8ysJpzq35QmUHfcdr2C/n9iSf4B52G3oMU lgSznlT7SZKzdeJmOgTkMV12AR1KnDYPlVuM1Smlor1lFr1IT5xxkPK4312qBseFoF OeG/i+ULj6x942viY0FRPcWyf5qYDebzuoolgVLo= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 15BD1xsY094056 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 11 Jun 2021 08:01:59 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 11 Jun 2021 08:01:59 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Fri, 11 Jun 2021 08:01:59 -0500 Received: from [10.250.212.96] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 15BD1sNC022485; Fri, 11 Jun 2021 08:01:55 -0500 Subject: Re: [PATCH v6 1/3] phy: core: Reword the comment specifying the units of max_link_rate to be Mbps To: Aswath Govindraju , Vinod Koul CC: , Marc Kleine-Budde , Wolfgang Grandegger , Vignesh Raghavendra , Lokesh Vutla , Rob Herring , , , References: <20210510051006.11393-1-a-govindraju@ti.com> <20210510051006.11393-2-a-govindraju@ti.com> <615d3a2a-0dc2-0e87-fdac-e170542d33da@ti.com> <0150622f-8543-ac4a-fe18-f22d7862d163@ti.com> From: Kishon Vijay Abraham I Message-ID: <7913b08e-a71c-d29d-d921-c25a87c0616a@ti.com> Date: Fri, 11 Jun 2021 18:31:54 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <0150622f-8543-ac4a-fe18-f22d7862d163@ti.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 11/06/21 6:12 pm, Aswath Govindraju wrote: > Hi Vinod, > > On 31/05/21 2:04 pm, Aswath Govindraju wrote: >> Hi Vinod, >> >> On 31/05/21 12:48 pm, Vinod Koul wrote: >>> On 10-05-21, 10:40, Aswath Govindraju wrote: >>>> In some subsystems (eg. CAN, SPI), the max link rate supported can be less >>>> than 1 Mbps and if the unit for max_link_rate is Mbps then it can't be >>>> used. Therefore, leave the decision of units to be used, to the producer >>>> and consumer. >>>> >>>> Signed-off-by: Aswath Govindraju >>>> Acked-by: Marc Kleine-Budde >>>> --- >>>> include/linux/phy/phy.h | 2 +- >>>> 1 file changed, 1 insertion(+), 1 deletion(-) >>>> >>>> diff --git a/include/linux/phy/phy.h b/include/linux/phy/phy.h >>>> index 0ed434d02196..f3286f4cd306 100644 >>>> --- a/include/linux/phy/phy.h >>>> +++ b/include/linux/phy/phy.h >>>> @@ -125,7 +125,7 @@ struct phy_ops { >>>> /** >>>> * struct phy_attrs - represents phy attributes >>>> * @bus_width: Data path width implemented by PHY >>>> - * @max_link_rate: Maximum link rate supported by PHY (in Mbps) >>>> + * @max_link_rate: Maximum link rate supported by PHY (units to be decided by producer and consumer) >>> >>> So there are a few users of max_link_rate. It would be better that we >>> document all previous users of max_link_rate that unit is in Mbps and >>> then modify it here >>> >> >> I was able to see that the max_link_rate attribute was used at, >> >> drivers/phy/cadence/phy-cadence-torrent.c:2514: >> gphy->attrs.max_link_rate = cdns_phy->max_bit_rate; >> >> and in the bindings there is indication that the units to be used is Mbps. >> >> Can you please point me if there is any other place that I might have >> missed to look at or that might need documentation update? >> The only user seems to be Torrent and max_bit_rate is documented well in Torrent. Acked-by: Kishon Vijay Abraham I Thanks Kishon