Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967600Ab2EQSpt (ORCPT ); Thu, 17 May 2012 14:45:49 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:34009 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759448Ab2EQSpr (ORCPT ); Thu, 17 May 2012 14:45:47 -0400 MIME-Version: 1.0 X-Originating-IP: [46.116.86.177] In-Reply-To: References: <1330589497-4139-1-git-send-email-ohad@wizery.com> <1330589497-4139-2-git-send-email-ohad@wizery.com> <4F6354E4.8030704@monstr.eu> From: Ohad Ben-Cohen Date: Thu, 17 May 2012 21:45:25 +0300 Message-ID: Subject: Re: [PATCH 1/7] remoteproc: resource table overhaul To: monstr@monstr.eu Cc: linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Brian Swetland , Iliyan Malchev , Arnd Bergmann , Grant Likely , Rusty Russell , Mark Grosen , John Williams , Loic PALLARDY , Ludovic BARRE , Omar Ramirez Luna , Guzman Lugo Fernando , Anna Suman , Clark Rob , Stephen Boyd , Saravana Kannan , David Brown , Kieran Bingham , Tony Lindgren Content-Type: multipart/mixed; boundary=20cf30050d2e06966604c03fd85b Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 13885 Lines: 197 --20cf30050d2e06966604c03fd85b Content-Type: text/plain; charset=ISO-8859-1 Hi Michal, On Sat, Mar 17, 2012 at 8:39 AM, Ohad Ben-Cohen wrote: > IOW: you can probably just wait a bit until this patch is ready and > take it into your tree. It will most likely bring back the behavior you > need :) Does something like the attached help ? Thanks, Ohad. --20cf30050d2e06966604c03fd85b Content-Type: application/octet-stream; name="0001-remoteproc-allocate-vrings-on-demand-free-when-not-n.patch" Content-Disposition: attachment; filename="0001-remoteproc-allocate-vrings-on-demand-free-when-not-n.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_h2c64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this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/