Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp600007ybh; Wed, 18 Mar 2020 05:51:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsQnyh2hE0QSKckp7S6eyQX2xhgTthIQhQaFTlG78p7ufE8VfR7IOeZ0fju0wA4loZi5v04 X-Received: by 2002:aca:57d6:: with SMTP id l205mr2877739oib.20.1584535871803; Wed, 18 Mar 2020 05:51:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584535871; cv=none; d=google.com; s=arc-20160816; b=dI9LPrdWh3+64kFpmVuE+GpIpi+2LDC3yp1Uj6hICG3/Gx4TPZnDwraEaYiAX2+U0F XS7VCe54Bqww5XN+VTKTWx25lfC00oC86KO8tOW753wysoJ76tHeOz/y5TZhz11YE/bf AwSzTN3D2FMnxX9C2LuIjHdPpq44ZKqxXTBh+oPMEqF3xpzZAc89f741CIZltFx90gSD sjEBAELDrs/5tJksL9SkrJRyV00Q9YwwK+qGAAxCl/XgDBa7yL8non0Xv/NAvKdV5k98 2agUUNqP5JPP8E4JKeLDmzuvtoIUYVaQyRqzemn0rclt9I9HxRGCFuaD0R8YW1/q13Ry AXlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Xq18hxbBsjROnRv+AknwSopDMmy/yn/3usaJMq1sZEI=; b=uy7bi1BVJ/cR93ZBZWEtg35++HA/iBtps0n313Eniqxlbw2licdQ+H2/hqQxF6jz0u +lDnRyMROSEO/BxkE+iBfLq6kEOlAM9d2Aid7y9eFLqVVkbw2zPkCWUtJxHJ6B721+S/ SeBRuMql1HW+RvTzSc57zs7dHXb9SMqMvbSsZxgbmU0UuFwD2iW9YhawO9lEJdVB87+P K7j1kHWuMCimxEXQ8zW8lGUwmlBwZVNd3tyBZAOGMV8mxxN75KEtGzRKt3SZCClvuAEe 2IeaVlxanjhG6sjL7jvZGXzp4orju0y/v1GbE/QB4eF3TKFQaHe/WxJfKQDXf/kv7oIf qZJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cIezsSKK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si482747oti.313.2020.03.18.05.51.00; Wed, 18 Mar 2020 05:51:11 -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=@kernel.org header.s=default header.b=cIezsSKK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726839AbgCRMuG (ORCPT + 99 others); Wed, 18 Mar 2020 08:50:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:53830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726550AbgCRMuG (ORCPT ); Wed, 18 Mar 2020 08:50:06 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B498620772; Wed, 18 Mar 2020 12:50:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584535805; bh=4sAHYFtjA0FIdYJcOZIot3tUfnyJiT7eyznRhSXxk3Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cIezsSKKuQ3seIdtO7kKrRl5zs5TwtTF7vVaWUEN68+xXAXgxNUrLCElI6m+cYkID rfNxn+j8J42BrRHX2n2rzTy7Y2uTU9phPEFF1Ec7UzSsw+mw+iyO4ULhLtwP2kZf98 Q/l5hfHFWMk83eNAWUpAYETxHr296cWmeS/SlDSk= Date: Wed, 18 Mar 2020 13:50:03 +0100 From: Greg KH To: Rajan Vaja Cc: Jolly Shah , "ard.biesheuvel@linaro.org" , "mingo@kernel.org" , "matt@codeblueprint.co.uk" , "sudeep.holla@arm.com" , "hkallweit1@gmail.com" , "keescook@chromium.org" , "dmitry.torokhov@gmail.com" , Michal Simek , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v3 20/24] firmware: xilinx: Add APIs to read/write GGS/PGGS registers Message-ID: <20200318125003.GA2727094@kroah.com> References: <1583538452-1992-1-git-send-email-jolly.shah@xilinx.com> <1583538452-1992-21-git-send-email-jolly.shah@xilinx.com> <20200318115141.GB2472686@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 18, 2020 at 12:41:46PM +0000, Rajan Vaja wrote: > Hi Greg, > > Thanks for applying patches and review. > > Please see my comment inline. > > > -----Original Message----- > > From: Greg KH > > Sent: 18 March 2020 05:22 PM > > To: Jolly Shah > > Cc: ard.biesheuvel@linaro.org; mingo@kernel.org; matt@codeblueprint.co.uk; > > sudeep.holla@arm.com; hkallweit1@gmail.com; keescook@chromium.org; > > dmitry.torokhov@gmail.com; Michal Simek ; Rajan Vaja > > ; linux-arm-kernel@lists.infradead.org; linux- > > kernel@vger.kernel.org; Rajan Vaja > > Subject: Re: [PATCH v3 20/24] firmware: xilinx: Add APIs to read/write GGS/PGGS > > registers > > > > CAUTION: This message has originated from an External Source. Please use > > proper judgment and caution when opening attachments, clicking links, or > > responding to this email. > > > > > > On Fri, Mar 06, 2020 at 03:47:28PM -0800, Jolly Shah wrote: > > > --- a/include/linux/firmware/xlnx-zynqmp.h > > > +++ b/include/linux/firmware/xlnx-zynqmp.h > > > @@ -105,6 +105,10 @@ enum pm_ioctl_id { > > > IOCTL_GET_PLL_FRAC_MODE, > > > IOCTL_SET_PLL_FRAC_DATA, > > > IOCTL_GET_PLL_FRAC_DATA, > > > + IOCTL_WRITE_GGS, > > > + IOCTL_READ_GGS, > > > + IOCTL_WRITE_PGGS, > > > + IOCTL_READ_PGGS, > > > > You do not have explicit numbers here? Bold :) > [Rajan] Here new IOCTL IDs are continuous so didn't mention explicit number. Yes, but is that guaranteed by the compiler? I keep getting conflicting advice with that. > Are asking for adding numbers like below: > enum pm_ioctl_id { > ... > IOCTL_GET_PLL_FRAC_DATA = 11, > IOCTL_WRITE_GGS = 12, > .... > } Yes please, especially as your firmware is expecting the explicit values here, right? That way you _know_ everything is correct. thanks, greg k-h