Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp6224705imm; Wed, 27 Jun 2018 04:27:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKJVA9iMO7wh8rKaFdcufwj8nuSyKXXmCXhFVtmec/m66akNQqJ3C66Ghd7B8z9FdFkfRxK X-Received: by 2002:a17:902:aa87:: with SMTP id d7-v6mr5691550plr.215.1530098853759; Wed, 27 Jun 2018 04:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530098853; cv=none; d=google.com; s=arc-20160816; b=UiuukEMOOv6DJp5FhwGD9s5Te/vCNUpfV5fNSDySUgIcMK+XH+rAcoc11SNJRbVjv+ 84Agdy2fqRc85bBTUF0SSRw1tjSFZV87LXjM8XK/yu9XXaFHdEMO3gXlMa1q82+1naP8 zEorVhjaSlS4o9pxoH9MCsuw1RXwECuwSxCWiTq0DI1mfk/GtCKKHENeR0fogd5/7Qrd nqCbvk7TrgPaueiPHEm0pV74dxhQfJlC0OCj08JcqJV4bDQ/HhwRk1ajfB8owphveyUH JfdVmPRWdXISHg8glWEZDHWN2JoUzCyXf8TqvwvU/tp7znoOp4e54bkKNwv8EoTtujg8 DSkQ== 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:dkim-signature :arc-authentication-results; bh=vM2toye/pXD13nvLkPzijXvmS35hp2WoDrjD6K7YFmM=; b=U+Fral113varf5XTS8I9GyoV1bFUnfBcM7ceqF8eB6+2uE5UKSGw66kyDp8jxpkvn7 NjbyQLAMDRa1Y6thJxL8GNk+o8kOArxpidFOokbv4wPKQSjC40nsWZCjdX9INGFmNc35 df25yEOGRXRh3FDR6mWYOj1606DxBNWQcQmhNzts7Hpyy8gqtHKxmYAxbE6NEdG7Io6U z6Qhe0+EY34gqAfOI8ulAnRiC8YiSDj2mfbQBqVOTEoyOUdESM+bzHAMmZPUVOoMkKXQ B+uXU9sKhDsf5dbZKWOdA1l7m7dtJDVasm/FmD7x5piNBedSRAThE/ef4ikl6KMKHOa5 JJTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=sglFhWGq; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h69-v6si3768798pfc.206.2018.06.27.04.27.18; Wed, 27 Jun 2018 04:27:33 -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=@ti.com header.s=ti-com-17Q1 header.b=sglFhWGq; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932579AbeF0L0g (ORCPT + 99 others); Wed, 27 Jun 2018 07:26:36 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:32976 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750936AbeF0L0f (ORCPT ); Wed, 27 Jun 2018 07:26:35 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id w5RBPVxf117146; Wed, 27 Jun 2018 06:25:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1530098731; bh=vM2toye/pXD13nvLkPzijXvmS35hp2WoDrjD6K7YFmM=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=sglFhWGqgXL4VF8Xx3msOu/8GXa/oKv+phJbzdYw1wZwUeuonwX+mcaupuybKRFnt /7RfxZrUEZGG0JTAkfDXymvtgZ2Bc8nPtGQliI2pDXnwTRV6Zds0XNgBGAJrPiC1Oh blecHdew4/P09uW5R1XW/M1l9qZjNCxcIgBWM8OI= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5RBPVWp003807; Wed, 27 Jun 2018 06:25:31 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 27 Jun 2018 06:25:30 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Wed, 27 Jun 2018 06:25:30 -0500 Received: from [172.24.190.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5RBPR0w018516; Wed, 27 Jun 2018 06:25:28 -0500 Subject: Re: [RESEND (again) PATCH] clkdev: don't call __of_clk_get_by_name() unnecessarily from clk_get() To: David Lechner , Bartosz Golaszewski , Russell King , Greg Kroah-Hartman CC: , , Bartosz Golaszewski , Kevin Hilman References: <20180625160440.10537-1-brgl@bgdev.pl> <5824a382-00fc-0af3-097f-519a36c2d555@lechnology.com> From: Sekhar Nori Message-ID: Date: Wed, 27 Jun 2018 16:55:27 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <5824a382-00fc-0af3-097f-519a36c2d555@lechnology.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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 26 June 2018 04:32 AM, David Lechner wrote: > On 06/25/2018 11:04 AM, Bartosz Golaszewski wrote: >> From: Bartosz Golaszewski >> >> The way this function is implemented caused some confusion when >> converting the TI DaVinci platform to using the common clock framework. >> >> Current kernel supports booting DaVinci boards both in device tree as >> well as legacy, board-file mode. In the latter, we always end up >> calling clk_get_sys() as of_node is NULL and __of_clk_get_by_name() >> returns -ENOENT. >> >> It was not obvious at first glance how clk_get(dev, NULL) will work in >> board-file mode since we always call __of_clk_get_by_name(). Let's make >> it clearer by checking if of_node is NULL and skipping right to >> clk_get_sys(). >> >> Cc: Sekhar Nori >> Cc: Kevin Hilman >> Cc: David Lechner >> Signed-off-by: Bartosz Golaszewski >> --- > > Reviewed-by: David Lechner I think Russell previously said that the patch looks good to him. So you can probably just add it to his patch tracker. http://www.arm.linux.org.uk/developer/patches/add.php FWIW, you can also add: Reviewed-by: Sekhar Nori Thanks, Sekhar