Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2440954rda; Wed, 25 Oct 2023 02:53:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFWbEoZU2VnIAOJ5kCC6xeiluJbKJQ81y6huripVPIDD8vtAEJDMP2G1Kdwv8Q7kuNlejyn X-Received: by 2002:a67:a205:0:b0:457:dac4:2af8 with SMTP id l5-20020a67a205000000b00457dac42af8mr13950123vse.2.1698227617991; Wed, 25 Oct 2023 02:53:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698227617; cv=none; d=google.com; s=arc-20160816; b=MagB4FDp27swbyaW7ckhvfqwwHGVR4+92MlDLjm0Azzg4ZSp8ZywVv54xflZEbf+VX QqRAZKbibDdyBVDiEgQqR7dHMRsdyVNbpcxjzxyS4hWoOoWBxFYvaxPKqv0udq2FBABk zcek5MhPwipdQH6mdvd0idwOb6fYXvEYJ8OMXlfWjQ38L8CqhAvb1JbyLfHVneD+Bz0w 8S7ztw0tj5zy2beuT+6vemqM8bsU44ukusFxnbmvdAqNNC4r5xvloKajer8zRd4/DEvR PiZ60rMO43/qek8wHgxfx1vCBa+MnO9BbeNqXJ9p0zRbLSd2ydPdQNM4T/KninWRSAZx rIPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=M/1SsADjdi+vejffmx3wtjAf4+cwvdB3g8+SJiNll58=; fh=mCo/3xp5XQNh6yG6WfF5CCjrruFo3blMPc7KGkNueVM=; b=Hc3/Gjy3jVl1berZQGcPYAASdquL7dB+/XA3b8GQz5oc+qOhAPjWzZDmcyHvgSKR8a gr3FNHZjaqrg9NRt3Ivsz3Inf41p9FSwQtxYSDne/lVE6JvyEW3tNisarZx/mubKV9+K FKinw2PcUnh+lr/XJbvOhn2eeTgq+ewvTqsmSm80OeYdWYRnp0lis43/OZDUOkHK4NBQ EDXRfrFG9jdWpXfXuV0F+SaGybIcTNfm3ebapt64rqZNGHsi/r7/G5koph0y55G3XzFl RNwjynSDeX7PG6eEW5BS2mQGDZxKCjDPqNO/1sHcmdSqsifjmojM4pLFb0DVvZRokkv8 gb2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id t11-20020a252d0b000000b00d9abd90b188si10236095ybt.563.2023.10.25.02.53.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 02:53:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2DE1A8036EA0; Wed, 25 Oct 2023 02:53:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343622AbjJYJwg (ORCPT + 99 others); Wed, 25 Oct 2023 05:52:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343610AbjJYJwe (ORCPT ); Wed, 25 Oct 2023 05:52:34 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C466DDE for ; Wed, 25 Oct 2023 02:52:30 -0700 (PDT) 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 1C3432F4; Wed, 25 Oct 2023 02:53:11 -0700 (PDT) Received: from bogus (unknown [10.57.93.106]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 55DE63F738; Wed, 25 Oct 2023 02:52:27 -0700 (PDT) Date: Wed, 25 Oct 2023 10:50:53 +0100 From: Sudeep Holla To: Jens Wiklander Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Coboy Chen , Lorenzo Pieralisi Subject: Re: [PATCH 1/4] firmware: arm_ffa: Allow FF-A initialisation even when notification fails Message-ID: <20231025095053.i7bpswi6x6ckqdnr@bogus> References: <20231024-ffa-notification-fixes-v1-0-d552c0ec260d@arm.com> <20231024-ffa-notification-fixes-v1-1-d552c0ec260d@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 25 Oct 2023 02:53:35 -0700 (PDT) On Wed, Oct 25, 2023 at 09:10:11AM +0200, Jens Wiklander wrote: > On Tue, Oct 24, 2023 at 12:56 PM Sudeep Holla wrote: > > > > FF-A notifications are optional feature in the specification. Currently > > we allow to continue if the firmware reports no support for the > > notifications. However, we fail to continue and complete the FF-A > > driver initialisation if the notification setup fails for any reason. > > > > Let us allow the FF-A driver to complete the initialisation even if the > > notification fails to setup. We will just flag the error and continue > > to provide other features in the driver. > > > > Signed-off-by: Sudeep Holla > > --- > > drivers/firmware/arm_ffa/driver.c | 21 +++++++++------------ > > 1 file changed, 9 insertions(+), 12 deletions(-) > > > > diff --git a/drivers/firmware/arm_ffa/driver.c b/drivers/firmware/arm_ffa/driver.c > > index 07b72c679247..b4ba52d674e5 100644 > > --- a/drivers/firmware/arm_ffa/driver.c > > +++ b/drivers/firmware/arm_ffa/driver.c [..] > > @@ -1426,10 +1426,11 @@ static int ffa_notifications_setup(void) > > ret = ffa_sched_recv_cb_update(drv_info->vm_id, ffa_self_notif_handle, > > drv_info, true); > > if (!ret) > > - return ret; > > + return; > > cleanup: > > + pr_info("Notification setup failed %d, not enabled\n", ret); > > ffa_notifications_cleanup(); > > - return ret; > > + return; > > This return is redundant. > Thanks, will fix it. -- Regards, Sudeep