[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZesV8iKdf1tQQtXu@smile.fi.intel.com>
Date: Fri, 8 Mar 2024 15:43:14 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Howard Yen <howardyen@...gle.com>
Cc: gregkh@...uxfoundation.org, rafael@...nel.org, mathias.nyman@...el.com,
hch@....de, m.szyprowski@...sung.com, robin.murphy@....com,
petr.tesarik.ext@...wei.com, broonie@...nel.org, james@...iv.tech,
james.clark@....com, masahiroy@...nel.org,
linux-kernel@...r.kernel.org, linux-usb@...r.kernel.org,
iommu@...ts.linux.dev
Subject: Re: [PATCH v4 2/2] usb: host: xhci-plat: add support for multi
memory regions
On Fri, Mar 08, 2024 at 09:53:20AM +0000, Howard Yen wrote:
> The reason why it needs multiple regions is that in my system there is
> an always-on subsystem which includes a small size memory, and several
> functions need to run and occupy the memory from the small memory if
> they need to run on the always-on subsystem. These functions must
> allocate the memory from the small memory region, so that they can get
> benefit from the always-on subsystem. So the small memory is split for
> multiple functions which are satisfied with their generic use cases.
> But in specific use cases, like USB3 devices which support the stream
> trasnsfer or multiple devices connect to the host, they required more
> memory than their pre-allocated memory region, so I tried to propose
> this patch to give it the ability to get the memory from the other
> larger memory to solve the issue.
..
> + count = of_property_count_elems_of_size(sysdev->of_node, "memory-region",
> + sizeof(u32));
Open coded of_property_count_u32_elems().
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists