Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933572AbcJQOAY (ORCPT ); Mon, 17 Oct 2016 10:00:24 -0400 Received: from ramses-pyramidenbau.de ([37.120.178.10]:43036 "EHLO mail.ramses-pyramidenbau.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933230AbcJQOAK (ORCPT ); Mon, 17 Oct 2016 10:00:10 -0400 From: Ralf Ramsauer To: Mark Brown , Geert Uytterhoeven , Wolfram Sang , Linux SPI , Linux I2C Cc: Ralf Ramsauer , "linux-kernel @ vger . kernel . org" , Pantelis Antoniou Subject: [PATCH v2 0/2] spi, i2c: mark device nodes only in case of successful instantiation Date: Mon, 17 Oct 2016 15:59:55 +0200 Message-Id: <20161017135957.20297-1-ralf@ramses-pyramidenbau.de> X-Mailer: git-send-email 2.10.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 801 Lines: 28 Hi, this one fixes initialisation of I2C/SPI nodes. Upon failure during intialisation, nodes were erroneously populated and never unmarked. This lead to the problem that re-loaded drivers will never probe those devices again and can easily be fixed by clearing the OF_POPULATE flag when the node doesn't successfully initialise. For the discussion of v1, see https://lkml.org/lkml/2016/10/14/483 Ralf changes since v1: - also fix I2C core driver - keep the atomic test-and-set, as Geert suggested Ralf Ramsauer (2): spi: mark device nodes only in case of successful instantiation i2c: mark device nodes only in case of successful instantiation drivers/i2c/i2c-core.c | 11 ++++++++++- drivers/spi/spi.c | 5 ++++- 2 files changed, 14 insertions(+), 2 deletions(-) -- 2.10.1