Received: by 10.213.65.68 with SMTP id h4csp796402imn; Fri, 23 Mar 2018 16:59:01 -0700 (PDT) X-Google-Smtp-Source: AG47ELuEFRbKBl3LoV3QirH8p4XATOCNr5ur+LMFaaRjajXaue4sZiLBn1IuSgO9aEJoig0w3gkE X-Received: by 2002:a17:902:b905:: with SMTP id bf5-v6mr740824plb.159.1521849541659; Fri, 23 Mar 2018 16:59:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521849541; cv=none; d=google.com; s=arc-20160816; b=zJ6ebfszUvqCQ2fL5MgR+PfmsNgcHaNxKXQ/n1fql0h3Isa60IWLSuz+BGKc/XKi2G vTrg30aZUxlJpI4RBpBO2CTQ+N7BZaZJPb2Zvw1FsXBKM8/zjxwpEKEYQjSluoGPHBOD jq+SiWxSkFw7X6M6tNd7qm5CFjcvCBshhoK5kjukAqkx8awA9hdTjfzduwYM2L+KX8K1 XZz89ugcI1ePREJSesEUvNSdwDZUvWQtt56i9LrPs32f5jq10QA+AA9HKSqFqzSnngai b46feQVH+FnWggrJTGcLcAbPYYV8QH2OvuUpUGD/RhtnaVSVwExjtMx7DnYSmMVyYHly PlQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature :arc-authentication-results; bh=AelEHB5IJ29yYnuUYDyNatTbIJA+x9hWHePQJIbhUiQ=; b=sYOpkdQtV6hFkC/glhgaywTh7T0AdwFs6k/9nvgSa0P+Xi4HEGCMBtf1isajKe07Ti upeU3zb0psdO30BVTcRT4D7DtYiYz5BVztscsX2V2LSj0ewCdz30L9vVf3w4XrJ1IGx8 xsILZEBNwoyvHM/sI3B735nkHdB+RM1wQMSFzywQPlRnsrAM6Ht/H2Ng6t7Rim0hXR8b EXbk5lenAOaygJgKtRn3zec3/0cubrfgMgomRNUyznqvxnKzhgc/NkoNdDmMwTH0wzYl rrkMs+ssRf9h27FqmHiB/qc8MfdNkEZ2aoIIg129+45bYi8fs51Mw/K9TtfqZE/kBToL 8LPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=hANdqyYp; dkim=pass header.i=@codeaurora.org header.s=default header.b=hANdqyYp; 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 c76si2637206pga.156.2018.03.23.16.58.46; Fri, 23 Mar 2018 16:59:01 -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=@codeaurora.org header.s=default header.b=hANdqyYp; dkim=pass header.i=@codeaurora.org header.s=default header.b=hANdqyYp; 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 S1751840AbeCWX5y (ORCPT + 99 others); Fri, 23 Mar 2018 19:57:54 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:58078 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751657AbeCWX5x (ORCPT ); Fri, 23 Mar 2018 19:57:53 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DC769607E5; Fri, 23 Mar 2018 23:57:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521849472; bh=vm73Rpdnnpe7obnaCar0TZcrwgGGbnJtKJF+SOkoJhI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hANdqyYp88WwUgsK/mu7OUdOLIaybkzYx+ybcCqp13nlqN49dc0jUrdCZZk6pBK/Q 1QKrsQLwaTKBlW2Gty9sOhNFi0K7euS55mxTF31qiUIqF75PT0FR5mSALulnHOXigR lFJZflANJQgtkPczX+tK1cMxUx+aBcj1AiUBhdjI= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 5A66A60131; Fri, 23 Mar 2018 23:57:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521849472; bh=vm73Rpdnnpe7obnaCar0TZcrwgGGbnJtKJF+SOkoJhI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=hANdqyYp88WwUgsK/mu7OUdOLIaybkzYx+ybcCqp13nlqN49dc0jUrdCZZk6pBK/Q 1QKrsQLwaTKBlW2Gty9sOhNFi0K7euS55mxTF31qiUIqF75PT0FR5mSALulnHOXigR lFJZflANJQgtkPczX+tK1cMxUx+aBcj1AiUBhdjI= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 23 Mar 2018 16:57:52 -0700 From: Channa To: Channagoud Kadabi Cc: linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-arm@lists.infradead.org, linux-kernel@vger.kernel.org, tsoni@codeaurora.org, sboyd@codeaurora.org, kyan@codeaurora.org, linux-kernel-owner@vger.kernel.org Subject: Re: [PATCH 2/2] drivers: soc: Add LLCC driver In-Reply-To: <20180319145525.GD28808@jcrouse-lnx.qualcomm.com> References: <1516924513-20183-1-git-send-email-ckadabi@codeaurora.org> <1516924513-20183-3-git-send-email-ckadabi@codeaurora.org> <20180319145525.GD28808@jcrouse-lnx.qualcomm.com> Message-ID: <5f71be17214a8c54d59555be6f67517f@codeaurora.org> X-Sender: ckadabi@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-03-19 07:55, Jordan Crouse wrote: > On Thu, Jan 25, 2018 at 03:55:13PM -0800, Channagoud Kadabi wrote: >> LLCC (Last Level Cache Controller) provides additional cache memory >> in the system. LLCC is partitioned into muliple slices and each >> slice gets its own priority, size, ID and other config parameters. >> LLCC driver programs these parameters for each slice. Clients that >> are assigned to use LLCC need to get information such size & ID of the >> slice for their usecase and activate or deactivate the slice as >> needed. >> LLCC driver provides API interfaces for the clients to perform these >> operations. > > > >> +/** >> + * llcc_slice_deactivate - Deactivate the llcc slice >> + * @desc: Pointer to llcc slice descriptor >> + * >> + * A value zero will be returned on success and a negative errno will >> + * be returned in error cases >> + */ >> +int llcc_slice_deactivate(struct llcc_slice_desc *desc) >> +{ >> + u32 act_ctrl_val; >> + int rc = -EINVAL; >> + struct llcc_drv_data *drv; >> + >> + if (desc == NULL) { >> + pr_err("Input descriptor supplied is invalid\n"); > > Sorry that this is out of the blue, but I was reviewing a client driver > that > uses this API. This should not print an error - we should be allowed to > safely > pass a null pointer from an aborted sequence in the driver without the > conditional checks and it shouldn't generate a bit of log spam as it > goes about > it's business. Thanks Jordan. I will incorporate this change in my next patchset. > > Jordan -- -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project