Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1944643pxy; Thu, 29 Apr 2021 19:18:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhMm5u4aCXrWprSEwGE4VcCZriBqPEt7PMvnJ6Gm4TifVDn+xUX0KDMd/qkZscwXY1ocyv X-Received: by 2002:a63:ad42:: with SMTP id y2mr2506166pgo.187.1619749105491; Thu, 29 Apr 2021 19:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619749105; cv=none; d=google.com; s=arc-20160816; b=C+Aax0t6RDUzUSt4iCLzS6Tn67iuUCE5auyzhBQxcBJ0pTZCI2KWwzjqHrUiUbPvOJ RYP3zO/5/M5fuHXfFDj39wA482Oiqi/7qMfTG1lEPOraWKjbt9/DAhmCxkFxwI2DtSeg mZkmwkVbqNa+AYm1hGNl+GI2Bi8x7k4X7MhDU3w292SQB1fsdVWN2nLcSJmVV1E6D9bF kw9JttPUSP7wm36AaBLDJj1jGkSLC003UfgcbzrAsuCAxY9mptKIMFPwccPe3rU0+X1/ 6STXr1dp6XrxxMvRRhbdmAgHao43lunT1MI1FU0EZlOkrhFevwrEhh0NqT/vJbcyA669 0ucg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=+d5lR0/LDOANawLS/0uHaP4TzokI3aXGddB4bZHH0kA=; b=vNpLD4kWb17aKywdmvx2gise6pmixrZFM+RTCe9NNH6foP43LxiJzhm2GAfFOwYaQ5 VjbWlQ8lqIz8xMqr5y8qWtcMOfYlJXOYX8GY1QpLkneiJ39oUt1c90KUcM8V5lvxFzXE xfyVL5ROBkkLbeECWOiuHeoP1mUWovqGpbfsmEQfWBh+DxHkehGR4b2XiWVwivm3dBVk +21Ov7Q/BPCiGU7vcIGS1s8DSekHIiR0TXO1dcF9er/VOmFXZyso0xCfyuxKzzHY4PiD w3mVFMOIUqd4iRFLe738nDdTcha5NCJRfYq2MoOBccEw3Lew0xaVBqT3PTh0FOniLF9h h3Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M6wiVI4f; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u9si406531pjn.111.2021.04.29.19.18.08; Thu, 29 Apr 2021 19:18:25 -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=@kernel.org header.s=k20201202 header.b=M6wiVI4f; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229591AbhD3CSF (ORCPT + 99 others); Thu, 29 Apr 2021 22:18:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:43228 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229577AbhD3CSD (ORCPT ); Thu, 29 Apr 2021 22:18:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9F239613EE; Fri, 30 Apr 2021 02:17:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1619749035; bh=Hv1C2LyXJqO2i3JKRnZtQbt4ua6L32rnPt3ObKyL2NI=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=M6wiVI4fIVtHzldUu5wZztmxWCZp/lKGbCnzCkiorRaFxMy9wHWvnfcvh94LQBi5H nZI/789x4cNgbLqMo8Yp8QxSnE8+h/fZ6Gm2cM0pZ81pShzZ0H26VPHJGENYglAjdA exSaEp/8+m8mgKr+kla8Qd9+Ha6TylTvNXhbiAElKBso+qbND2N0hL/bH2VyIUL41m ZF1qzzkM8QQaJbPNICeTiB1wQ2ezV/XCHgsXOUQOccmAnxhhNppNiqHUYxjFPtv+MZ Tkyit8DYSzQc+/TcCA7SVUcUMLTSaqrOox5m3rFyw/xBemDFGnLB2gxnnr6XVcqAoF ZIRxFXwmjZL4w== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <87v98dqzfe.fsf@kokedama.swc.toshiba.co.jp> References: <20210421134844.3297838-1-arnd@kernel.org> <871rb2swd9.fsf@kokedama.swc.toshiba.co.jp> <01e78b64-8ad1-dfc8-9fc0-6afff4841492@xilinx.com> <87v98dqzfe.fsf@kokedama.swc.toshiba.co.jp> Subject: Re: [PATCH] clk: zynqmp: fix compile testing without ZYNQMP_FIRMWARE From: Stephen Boyd Cc: Arnd Bergmann , Michael Turquette , Arnd Bergmann , Rajan Vaja , Greg Kroah-Hartman , Jolly Shah , Quanyang Wang , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org To: Michal Simek , Punit Agrawal Date: Thu, 29 Apr 2021 19:17:14 -0700 Message-ID: <161974903429.177949.6659170601321970979@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Punit Agrawal (2021-04-22 23:37:25) > Michal Simek writes: > > > > > >>> =20 > >>> rate =3D parent_rate * fbdiv; > >>> if (zynqmp_pll_get_mode(hw) =3D=3D PLL_MODE_FRAC) { > >>=20 > >> The changes make sense in that the functions error out sensibly when t= he > >> zynqmp firmware driver is not enabled. > >>=20 > >> Acked-by: Punit Agrawal > > > > I think code should be checked that these error values are handled how > > they should be handled. >=20 > I only looked at it from the point of view of getting rid of the > warnings - based on the commit log, Arnd's patch is only taking care of > the compiler warnings when the driver is built with > CONFIG_COMPILE_TEST=3Dy and likely CONFIG_ZYNQMP_FIRMWARE=3Dn. The subject line basically says this. >=20 > In practice, the code should not be hit at runtime due to the dependency > on the firmware driver. Even then, a better fix would indeed be taking > the returned values at call sites into account. Still needs to be fixed. If a better patch is sent I would apply it, but if that isn't going to happen I'll apply this one.