Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1236059ybl; Fri, 23 Aug 2019 15:55:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqxfFb5HyLsFk4cTA2+wfgcTNEcWchIrfmzfwroXoHGZ3wMHewjmcR4jPpZZzNL1R9rPAe X-Received: by 2002:a17:902:b949:: with SMTP id h9mr6811437pls.120.1566600932187; Fri, 23 Aug 2019 15:55:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566600932; cv=none; d=google.com; s=arc-20160816; b=fm4+OszivnMU7cXMnxL0x76uaPSXoQIKS5ia9hAR8WfMrV1P/YoY0w89ch9sl22WE3 c0nFOyrrxxXtbwJImECR8JBk3wcMk/w0BX8Tk09T9EJo41VTWYp2/N28X6YMXrAY87sX zwE+8v/QFkwYN/MLzOJE3W5zQ8jbrtNZhqVIrlArs7I00eQ0RMiSwPiq4tZTj+A7X/QZ IIid8bdJHtaI9G+IsCnK8aDfrwDuP7KpfbIhLS1w/kO4MbZhnRAGmgVNkUTyph2l34qz n5VlKPC7+o/lFc8TgK3K5ctCgAw7ckW2D9TxkhC57mxnYh/aapPGF6YhW9zEymLLPmGC zNyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:subject:cc:to:from:message-id:date; bh=3DiEqc1wUWYLtNIE1SnfuWzmXv/Tu/3fOsXLKJaDGUM=; b=o3pPeqjUwB8x9kCmym3jv5nKl3JF+aDXRo5nT6aNDd8IOKALALyzPsAxYIw457DTmH qM/dKIjXLV02on/9aEDGHV9i6XHdu2Om6ft4QGkokubq/hq9yWCGsf+UZ4yJwJsKUbAk ANlQN1DEMbpUmE7nb6kxDUzDXy+3Rf206lrMOfESnnLOD0Asao3sGCHt5UbxX/0DYk4G wCrMSnX5PjmEPveRco8fJCuI409c4IVTymfZ/f/w5pzfFEZd5N6mc8DWf5YwZHfsNW28 t+Utc1gba+2Y8+2WGSsuTJ1lbBk8l3IelvIcAHkFimAmpvWqyl663R+oU6E3Lt/T+0dA EzLA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b15si3004676pgj.141.2019.08.23.15.55.17; Fri, 23 Aug 2019 15:55:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391818AbfHWKFs (ORCPT + 99 others); Fri, 23 Aug 2019 06:05:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:45998 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732134AbfHWKFs (ORCPT ); Fri, 23 Aug 2019 06:05:48 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 87A51B117; Fri, 23 Aug 2019 10:05:46 +0000 (UTC) Date: Fri, 23 Aug 2019 12:05:45 +0200 Message-ID: From: Takashi Iwai To: Scott Branden Cc: Luis Chamberlain , Greg Kroah-Hartman , David Brown , Alexander Viro , Shuah Khan , bjorn.andersson@linaro.org, Shuah Khan , Arnd Bergmann , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-fsdevel@vger.kernel.org, BCM Kernel Feedback , Olof Johansson , Andrew Morton , Dan Carpenter , Colin Ian King , Kees Cook , linux-kselftest@vger.kernel.org Subject: Re: [PATCH 2/7] firmware: add offset to request_firmware_into_buf In-Reply-To: <20190822192451.5983-3-scott.branden@broadcom.com> References: <20190822192451.5983-1-scott.branden@broadcom.com> <20190822192451.5983-3-scott.branden@broadcom.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 22 Aug 2019 21:24:46 +0200, Scott Branden wrote: > > Add offset to request_firmware_into_buf to allow for portions > of firmware file to be read into a buffer. Necessary where firmware > needs to be loaded in portions from file in memory constrained systems. AFAIU, this won't work with the fallback user helper, right? Also it won't work for the compressed firmware files as-is. So this new API usage is for the limited use cases, hence it needs such checks and returns error/warns if the condition isn't met. IOW, this can't be a simple extension of request_firmware_into_buf() to pass a new flag. thanks, Takashi