Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp419164pxv; Thu, 15 Jul 2021 07:17:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwtnjyC+FA3AeNeq65UJr/9jjzaLcXlF7WoE4tloBqwbMZWkjnGwhpnRi7FFKZbyU+1Iiz X-Received: by 2002:a05:6402:2789:: with SMTP id b9mr7214208ede.201.1626358673612; Thu, 15 Jul 2021 07:17:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626358673; cv=none; d=google.com; s=arc-20160816; b=THwixryTuX7y47pg+zLELmsARiNaDTV0+ug7301sVazKJPI0TGRMve6sAnHSmqb1Ey kL0oiJq17oSM9gCynSY/3xcdd0Hyhrw+RnMmUsxhTFN+I+HeLm2vvSq+YjjZSqHmAQBK y4Sd2m6FFRynhs7xLx7MWNv+CrXSHKnqMcM0otYj48XWWX5Z9SyS3kQGvAHPlj3ZlJJO Ctv7g6YsGdmyG+wqWtxzyYXUSZcnShnrdNkhRZZ8M8ype97YRMFMjevNz52KbKLotsSe 0fBElg7oy7LXrIoaX8iBUjeuwrArikmvCWwmYQJ7g9ZapmAh0Q5N/XrJvZNzwYVjvBfE l8qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=yLwP2fHIzFKeycNf2V42QxaBzgto4zk14Tf+B+OIb3k=; b=TKGq6zcG/vxSfM+NoxUinQz/64Rxo7iQSxSBbPYECAEGtU93gUgEatSp9iG323IgkR q5BrbyqpJg2MR4XRFbKSbQWJtKbcS+Fk6HnrDplno+mLa1wPyMJFEMXKoGm+mc1UPXon KQBiFTC0w+dlv4zRnl6aiI1q4aROcflZzpxlI13/5OFR67AgAErigXlnsF9cfTKVU5Co tOO92q187WQVxabDCkkI+W+vDv3c5adASk7jTcqyJH32FVJwgwqES0iLW0I+ctCeHUVq gKpp3Wu+LvaZT2wfpn9K8Q68O0CFFZOGvjkLUcqY2rRv1WXc9y6E7eTotojMFyoCTOo2 fR0A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si4438177edc.112.2021.07.15.07.17.26; Thu, 15 Jul 2021 07:17:53 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232693AbhGONlU (ORCPT + 99 others); Thu, 15 Jul 2021 09:41:20 -0400 Received: from foss.arm.com ([217.140.110.172]:52736 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231327AbhGONlU (ORCPT ); Thu, 15 Jul 2021 09:41:20 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DC47B31B; Thu, 15 Jul 2021 06:38:26 -0700 (PDT) Received: from e120937-lin (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0C4B43F694; Thu, 15 Jul 2021 06:38:25 -0700 (PDT) Date: Thu, 15 Jul 2021 14:38:23 +0100 From: Cristian Marussi To: Sudeep Holla Cc: linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J . Wysocki" , Jassi Brar Subject: Re: [PATCH 10/13] mailbox: pcc: Avoid accessing PCCT table in pcc_send_data and pcc_mbox_irq Message-ID: <20210715133823.GE6592@e120937-lin> References: <20210708180851.2311192-1-sudeep.holla@arm.com> <20210708180851.2311192-11-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210708180851.2311192-11-sudeep.holla@arm.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 08, 2021 at 07:08:48PM +0100, Sudeep Holla wrote: > Now that the con_priv is availvale solely for PCC mailbox controller > driver, let us use the same to save the channel specific information > in it so that we can it whenever required instead of parsing the PCCT > table entries every time in both pcc_send_data and pcc_mbox_irq. > > We can now use the newly introduces PCC register bundle to simplify both > saving of channel specific information and accessing them without repeated > checks for the subspace type. > > Signed-off-by: Sudeep Holla > ---o [snip] > Sorry missed this small doxygen break along the way early: > /** > @@ -516,19 +457,20 @@ static int pcc_parse_subspace_irq(struct pcc_chan_info *pchan, > * @pcct_entry: Pointer to the ACPI subtable header. > * > */ > -static void pcc_parse_subspace_db_reg(struct pcc_chan_info *pchan, > - struct acpi_subtable_header *pcct_entry) > +static int pcc_parse_subspace_db_reg(struct pcc_chan_info *pchan, > + struct acpi_subtable_header *pcct_entry) > { > + int ret = 0; > + drivers/mailbox/pcc.c:485: warning: No description found for return value of 'pcc_parse_subspace_db_reg' Thanks, Cristian