From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752618AbbBESo4 (ORCPT ); Thu, 5 Feb 2015 13:44:56 -0500 Received: from mail-pd0-f179.google.com ([209.85.192.179]:42425 "EHLO mail-pd0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751481AbbBESoy (ORCPT ); Thu, 5 Feb 2015 13:44:54 -0500 From: Jim Kuo To: David Woodhouse , Brian Norris , Marek Vasut , Huang Shijie , Geert Uytterhoeven , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Ben Hutchings , Kuninori Morimoto Cc: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, Jim Kuo Subject: [PATCH 0/2] m25p80, spi-nor: Add SFDP detect method for Macronix chips Date: Fri, 6 Feb 2015 02:44:03 +0800 Message-Id: <1423161845-24282-1-git-send-email-jimtingkuo@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi linux-pm, The serial flash discoverable parameters (SFDP) is needed to spi nor devices for some specific features. I added some sfdp structure and detect method. I have separated the chip IDs and sfdp detect method to two patches. Patch 1 (m25p80, spi-nor: Update id list of Macronix chips) mainly updates the id table to support Macronix chips. Patch 2 includes the main sfdp functions and Macronix commands. The code have been tested on lower version Linux and can successfully work with Macronix chips. Thanks for review! Jim Kuo (2): m25p80, spi-nor: Update id list of Macronix chips spi-nor: Add SFDP detect method drivers/mtd/devices/m25p80.c | 83 ++++- drivers/mtd/spi-nor/Kconfig | 11 + drivers/mtd/spi-nor/spi-nor.c | 774 +++++++++++++++++++++++++++++++++++++++--- include/linux/mtd/spi-nor.h | 201 +++++++++++ 4 files changed, 1009 insertions(+), 60 deletions(-) -- 1.9.1