Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1690237pxb; Fri, 24 Sep 2021 09:46:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3mTYNbqSyqf5+MGrp+6EzJCInAuHB/AAkepaBfMLS2bKreZjSeZ1V3uHRaiHIaBvwwg9A X-Received: by 2002:a05:6402:510b:: with SMTP id m11mr6409710edd.82.1632501972395; Fri, 24 Sep 2021 09:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632501972; cv=none; d=google.com; s=arc-20160816; b=ckRkW6mDVuoozHaAY4oNlrAtfNb6PGl2mVtyelYXUoeL9pi/pTtr+LxbUnPLcPBrMb U4YFj2sljiZdgywlApbIV9/0hAZ/ocFhOLzPY99MXUu0zm72uA732iDcZi3JLLzmxS4z PKv2znVyuYBlUUVONnyUNjdhnNMsN8GpYmRQ6Xbi17Lek3DI/g+2qdki3Yim0t7WxwYM uVpVsy3hjP298ypCDn3TZkIsiM0vfZISBOaOB5JRPg5LuusTcAO1xh6FXi/wZ7lv9Zz1 0KDtxorwJxhzphVRMRfqitUV5SivtXEhM7F+lCxDnBsf5UN9fzkVj1CQle7y9hJNe7F4 txsw== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tyjfj4UAgntiBg5osG8ifoN/I+ZgScWyfI+7NAHlLpA=; b=qm0HrcLvVGSCOUZjr7BapJ954PqhAPKGPBKgqRLNEZYrPKZB46gFS9K0gGhruwdjiZ OST8T36GaV9FWBQR72bv/9b8MSRTQh5BWLYpxEf0PLpwFuz538SuzJoytBx5es0K4Poa snWPts5z7iHR+To4nOmKcs3czeAqjxdSSleuOHSjgrCz8WQvXMZhAnSkgusPf69kHFHN FohzWWDcrmfjfZ6/WrU4tzciDWMsVOyeYfX2XcWps8mdg9tnwCWWOIMUxD/sxBR2XaQ0 XALJ6tOjvfS7G4zH6GnAFQKY2G0nVl+r7F2qhVTmKY5XpD8Ln9igUeqwqaPgOXiWmpmK 7zzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=U4faQon7; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c15si9596722edr.246.2021.09.24.09.45.46; Fri, 24 Sep 2021 09:46:12 -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=@linuxfoundation.org header.s=korg header.b=U4faQon7; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343517AbhIXLho (ORCPT + 99 others); Fri, 24 Sep 2021 07:37:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:46936 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244439AbhIXLhn (ORCPT ); Fri, 24 Sep 2021 07:37:43 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 48BDF61241; Fri, 24 Sep 2021 11:36:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632483370; bh=GVK5jCV+2GJ3l9xXZf3QHWw2lsE24mYjuokUNEhn5jk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U4faQon7fKlxX0nkUG5z8vcWUYqa1p+3n5KLHLD1J69CN72oyLLrlk+q7UBz2pm3X FqZfEJfMat4qISWxH78KWsi9GOQLTKGnLj1Yd/75rlMkhQJkU/ja8bVrTyQxMa/Tts JJqGFTqmryihFozCOEcgOxH4XqXsl38q7B0dWR3g= Date: Fri, 24 Sep 2021 13:36:08 +0200 From: Greg Kroah-Hartman To: Sai Krishna Potthuri Cc: Mark Brown , Rob Herring , Pratyush Yadav , Michal Simek , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-spi@vger.kernel.org, git@xilinx.com, saikrishna12468@gmail.com, Arnd Bergmann , Nobuhiro Iwamatsu Subject: Re: [PATCH 1/4] firmware: xilinx: Add OSPI Mux selection support Message-ID: References: <1632478031-12242-1-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> <1632478031-12242-2-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1632478031-12242-2-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 24, 2021 at 03:37:08PM +0530, Sai Krishna Potthuri wrote: > Add OSPI Mux selection API support to select the AXI interface to OSPI. > > Signed-off-by: Sai Krishna Potthuri > --- > drivers/firmware/xilinx/zynqmp.c | 17 +++++++++++++++++ > include/linux/firmware/xlnx-zynqmp.h | 12 ++++++++++++ > 2 files changed, 29 insertions(+) > > diff --git a/drivers/firmware/xilinx/zynqmp.c b/drivers/firmware/xilinx/zynqmp.c > index 15b138326ecc..43c3b5a9eef7 100644 > --- a/drivers/firmware/xilinx/zynqmp.c > +++ b/drivers/firmware/xilinx/zynqmp.c > @@ -647,6 +647,23 @@ int zynqmp_pm_sd_dll_reset(u32 node_id, u32 type) > } > EXPORT_SYMBOL_GPL(zynqmp_pm_sd_dll_reset); > > +/** > + * zynqmp_pm_ospi_mux_select() - OSPI Mux selection > + * > + * @dev_id: Device Id of the OSPI device. > + * @select: OSPI Mux select value. > + * > + * This function select the OSPI Mux. > + * > + * Return: Returns status, either success or error+reason > + */ > +int zynqmp_pm_ospi_mux_select(u32 dev_id, u32 select) > +{ > + return zynqmp_pm_invoke_fn(PM_IOCTL, dev_id, IOCTL_OSPI_MUX_SELECT, > + select, 0, NULL); > +} > +EXPORT_SYMBOL_GPL(zynqmp_pm_ospi_mux_select); > + > /** > * zynqmp_pm_write_ggs() - PM API for writing global general storage (ggs) > * @index: GGS register index > diff --git a/include/linux/firmware/xlnx-zynqmp.h b/include/linux/firmware/xlnx-zynqmp.h > index 9d1a5c175065..6979a79f553a 100644 > --- a/include/linux/firmware/xlnx-zynqmp.h > +++ b/include/linux/firmware/xlnx-zynqmp.h > @@ -119,6 +119,7 @@ enum pm_ioctl_id { > IOCTL_READ_PGGS = 15, > /* Set healthy bit value */ > IOCTL_SET_BOOT_HEALTH_STATUS = 17, > + IOCTL_OSPI_MUX_SELECT = 21, Why the gap? What are the commands in the middle for? thanks, greg k-h