Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2892862ybl; Sun, 25 Aug 2019 04:33:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZumCDfbYOmYrMymlIohh6CSUxyBahgqMpmYmNq8uZbnZJeGdlUz5qq/hfcygldM+4X3Py X-Received: by 2002:a17:90a:b393:: with SMTP id e19mr14953720pjr.118.1566732786383; Sun, 25 Aug 2019 04:33:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566732786; cv=none; d=google.com; s=arc-20160816; b=nJsKvqWl98U0SwBkYLX0VceOBVQjbk2e6b91Oc40eFO9lCk0fIDGD3t83aM1eFTxtJ AJB8uPj7kgmICinoBLaxkPhT5RRucj+hHEbls4zuE8OfoEGJHH/r71d0F8motBIh33uJ /ghGbgzPz/ZJQ8M0J9HCGWKesSi5Uct7eO/li0HPYypl/h8+0O2oAXDXrhbCtPmaVshQ RXJCy0QNbI/kI5GPSTZBtk/7gA4sznIG/Bi6pK3gPxQpLa9jL5OnhTDZopKw2Ebe0cpn D3GMI1kfvUneYoAfqBzsMqOOs4u8iAUKBB/uiDJ9qXLChfF4iP1+5xwbm0Rsdv11XNLN K7QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=jlgcdl10kHOd1i9PmKHrF7pG76U/PZLJRs3BYYiKXaI=; b=b4bCDNPKuCgRSxzFT52YPuuNeuNwNvcG4aGZZoqIYyigwJEM9Bucr8hq0T9nxgSBsJ MGIiNdl8yBzZ6/0hsU/khANRafaj65mLmD2Cr9IQ1mj3FqHOCR61AoLRsOStKT/y1haK qpshWcRG5teQ4kpRJsAawMfYl1lFJgwxJqDU7U6HYI7+iH2mHyyU01i3P/79PRkr2mGQ nyPakw/LBC9skDU9RguToGirVUSOKfjUx1AhlVD683y7zGsfDufX04gYo8VGH5Cw5prR v6ngXgKdl7kTseLOXr5iJYev687jsPnSns5H7eoM1cE1IXpUTNoTKdTjPGUy6myDZqEn LRHw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5si7125579pln.228.2019.08.25.04.32.50; Sun, 25 Aug 2019 04:33:06 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727413AbfHYLbs (ORCPT + 99 others); Sun, 25 Aug 2019 07:31:48 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:37708 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726511AbfHYLbs (ORCPT ); Sun, 25 Aug 2019 07:31:48 -0400 Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id B55F526BC15; Sun, 25 Aug 2019 12:31:46 +0100 (BST) Date: Sun, 25 Aug 2019 13:31:43 +0200 From: Boris Brezillon To: Cc: , , , , , Subject: Re: [PATCH 2/5] mtd: spi-nor: Use nor->params Message-ID: <20190825133143.7ef9600a@collabora.com> In-Reply-To: <20190823155325.13459-3-tudor.ambarus@microchip.com> References: <20190823155325.13459-1-tudor.ambarus@microchip.com> <20190823155325.13459-3-tudor.ambarus@microchip.com> Organization: Collabora X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 23 Aug 2019 15:53:37 +0000 wrote: > From: Tudor Ambarus > > The Flash parameters and settings are now stored in 'struct spi_nor'. > Use this instead of the stack allocated params. > > Few functions stop passing pointer to params, as they can get it from > 'struct spi_nor'. spi_nor_parse_sfdp() and children will keep passing > pointer to params because of the roll-back mechanism: in case the > parsing of SFDP fails, the legacy flash parameter and settings will be > restored. > > Zeroizing params is no longer needed because all SPI NOR users kzalloc ^ Zeroing With this fixed, you can add Reviewed-by: Boris Brezillon > 'struct spi_nor'. > > Signed-off-by: Tudor Ambarus > ---