Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp1351099ybm; Wed, 22 May 2019 22:55:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/ioI/fBEa/QkcrTZSN+0zS8BTeaYbcJ6wtn4dz2LgOzYeTnmyWT2TUnlc9o/dAMiHoaZk X-Received: by 2002:aa7:9563:: with SMTP id x3mr18730358pfq.118.1558590936877; Wed, 22 May 2019 22:55:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558590936; cv=none; d=google.com; s=arc-20160816; b=tq++RGeFzK/zCPrCc0hqsXsWwNEDVGug7++RLY4DcmD09N/wfIDwsuV6ChUas1DFLo /tJgLXBNn+AxCqrHVyxfQiSd/pV8cwx2GdXTU4YcizGgn0K3BXWRTwXVhWNgBxOxflBe FmWT1ELhXSgX7l80WLq/Jp0VpET1eMArSeBg/7meakcS+Y5/8L4sK0EzpyP4O2ptEq2w T1P4mPkS7u2C2tAf24IiO/fGFzmdlzuWVqQ45bnTy9zgwLRkIoP/qLfG1+jqfb5G2Jw4 iGSwfKG7rC31RhcNJegzp1mKSwEgo341sPFNzphD980YZqISy8wX3zE5Z5mG5BPUwSpB O4+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6rGq3+5vzxSIwJ0XWXnr3n+K6d6Zh5PAhkaZznwGmAQ=; b=jAD/TyHiyNe5t5Ww+lSfUY6wroMUhAlbvlmZHULGkfXZhVdm7Bt61XcTGfQxSjndYH dGehjxdaTRnMmu9EkPwglYcD/i2z8IBZ9RF4yurvsq1TUHwqK3vTZPhi74wXFD2l2+s9 GSrXkG2sqH/tvt322SMLjka1TGfRHxbtHPVESOr+K6OmibgZj/3E8B1xoOmUBmz0hBkZ v5ngd5O7nSmUW1ziUwDtFdVvVJ9vGkKixlnlyO3GL6ItUF8H3U4wXJ0dKFk+p1AiJixw 4xJnXt3RjhIIsg8EA82pB6boldCTrClrTEUBTq+EWpkcOX+nePJ7kRKHy4Az60MyG9M/ NC8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WMfgxe6w; 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 l73si31274886pfb.126.2019.05.22.22.55.21; Wed, 22 May 2019 22:55:36 -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; dkim=pass header.i=@kernel.org header.s=default header.b=WMfgxe6w; 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 S1729679AbfEWFwP (ORCPT + 99 others); Thu, 23 May 2019 01:52:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:43628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725806AbfEWFwO (ORCPT ); Thu, 23 May 2019 01:52:14 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BD2A021019; Thu, 23 May 2019 05:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558590734; bh=QhoN2Mcwq66VNLJnFallZhbP3P+3xy0QYNpXS7iQTIs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WMfgxe6wgJ4YAGCZEvfwTq3QpE3RjrfEHvmXyDzQb76bo9ysKlx1TZFuNvJkNrEON hYxKSYjSXZNgdQXT1FUe67NTVxtmmmQ3rq4Pk8KExSf6yL675Vxg5A7CXT7eMA7xot G3EEV+9oUGAxWFEoLquvK2vLSYZMrM4G7F8HMe5g= Date: Thu, 23 May 2019 07:52:12 +0200 From: Greg Kroah-Hartman To: Scott Branden Cc: Luis Chamberlain , Andy Gross , David Brown , Alexander Viro , "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-fsdevel@vger.kernel.org, BCM Kernel Feedback , Olof Johansson Subject: Re: [PATCH 3/3] soc: qcom: mdt_loader: add offset to request_firmware_into_buf Message-ID: <20190523055212.GA22946@kroah.com> References: <20190523025113.4605-1-scott.branden@broadcom.com> <20190523025113.4605-4-scott.branden@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190523025113.4605-4-scott.branden@broadcom.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 22, 2019 at 07:51:13PM -0700, Scott Branden wrote: > Adjust request_firmware_into_buf API to allow for portions > of firmware file to be read into a buffer. mdt_loader still > retricts request fo whole file read into buffer. > > Signed-off-by: Scott Branden > --- > drivers/soc/qcom/mdt_loader.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/drivers/soc/qcom/mdt_loader.c b/drivers/soc/qcom/mdt_loader.c > index 1c488024c698..ad20d159699c 100644 > --- a/drivers/soc/qcom/mdt_loader.c > +++ b/drivers/soc/qcom/mdt_loader.c > @@ -172,8 +172,11 @@ static int __qcom_mdt_load(struct device *dev, const struct firmware *fw, > > if (phdr->p_filesz) { > sprintf(fw_name + fw_name_len - 3, "b%02d", i); > - ret = request_firmware_into_buf(&seg_fw, fw_name, dev, > - ptr, phdr->p_filesz); > + ret = request_firmware_into_buf > + (&seg_fw, fw_name, dev, > + ptr, phdr->p_filesz, > + 0, > + KERNEL_PREAD_FLAG_WHOLE); So, all that work in the first 2 patches for no real change at all? Why are these changes even needed? And didn't you break this driver in patch 2/3? You can't fix it up later here, you need to also resolve that in the 2nd patch. thanks, greg k-h