Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1811928imm; Thu, 23 Aug 2018 09:07:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaZwxG/l7JY70Oe21apqVlps4wGbf5JN61E4jams46c5RihcI5H8w6amZaKEASrhvJA4ifZ X-Received: by 2002:a17:902:5582:: with SMTP id g2-v6mr10822797pli.253.1535040466658; Thu, 23 Aug 2018 09:07:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535040466; cv=none; d=google.com; s=arc-20160816; b=z/6yexCKCkgX131sMjVJb+TgKCg0iTAiDKA3TwQEK6AsoxaTbMP55YFUUpJqLIsdcG 3NwsENwX/OvR7f5F+fMPLiFmU6JxDADnWrXRKyS+YVBv0Ov6vFM9oJF9POuvWWHeLlwJ w3RLaDYKxzA/m+aWAqrd+RYH/VaBcjSNjc8Zmy5vZGGp62XPF1jR65pNzMqm0wpTh1Ey /EfwhR+j6oeYaj0vK+OD/fBlOx4WgHSiR8FNH+/Gb16VYgxxflJiDH7VOXYERVxSVZSY uUIDdPTJWHwbxNzNXSsOBEGGbMTjGqFghaPhn2z/9CEsgUJpkgwa92M65OwMA+sDsgWh oSMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=1dfwHG6Mr8oyCmdcmP/mEIoezgxbKGdHCiXGrBk82bc=; b=OVgCluRMRTDd3X494EbNEMPyQdHJrFgZT/nhgkxEFgICCFOyhhxmR+yy7ZqVzGOJJL IPng7qCdbGuMJ0C9OFl14b/MypKKZwjUISgM+9BcIftcYpM9RGcCRYMcuBqlgnxgsNh6 ZhJG50vAbkT0jsaUpA67V5gZezCwrrzrvjknxzk21WbjSMh25zGgHohJ4B3U/iZJeAP6 D8Ghyl5VZSsnYdoCAb53on/4LBX7w4JqoImnTgZQHzCx0N+pNP79ej/OQfusKmzWBuqv 8ZvqmnJxL0CFn1VQsyVM5/fJwCQ5VTtogEYSLYl9r9+wyRoQG57l4fTXAQ8TpWUDonz8 jt0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WVNqPjvQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15-v6si4658453plk.508.2018.08.23.09.07.31; Thu, 23 Aug 2018 09:07:46 -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=@linaro.org header.s=google header.b=WVNqPjvQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729030AbeHWOOl (ORCPT + 99 others); Thu, 23 Aug 2018 10:14:41 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:53222 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728680AbeHWOOl (ORCPT ); Thu, 23 Aug 2018 10:14:41 -0400 Received: by mail-it0-f68.google.com with SMTP id g18-v6so1623276itg.2 for ; Thu, 23 Aug 2018 03:45:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1dfwHG6Mr8oyCmdcmP/mEIoezgxbKGdHCiXGrBk82bc=; b=WVNqPjvQvhvd3VdhwlArH3xN4hbgqWDmTE+ExW8oGNdhq0j/0s2p5TQZO1UnIe/46c eQKDMo92sBD29+E5OmtETwZQJokmGEbrZIKwNjDT8ktQIfh3cK64+fwPmP/svyqSn2VL LsHF59k4OnAdtL0CC9gzfwrfdY2oXQxhIkS9g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1dfwHG6Mr8oyCmdcmP/mEIoezgxbKGdHCiXGrBk82bc=; b=W35fV9Bbcm5SKoXDQblv9tBMYwCdFHmjCT0Uqk1DXG067auSJ07734FF3g3yrq3gD3 84/7xcboAJdtlEO+/koqzWE0PlPDuH+1WK0gHqeLMaz4rZ2rf0FDA571h8i4H2OslxJM g7QIbQXqAK4nTLEtIT3bQYj+2BjLIOcScYV8FLuaNHOLCmhG4gBNeTfP3rib8UFYRoPf eq8GXu+0Ouduia8ihHXMoEsgCHZMcqmtAh5umHoW7Lbu+AmPIvyK/n38CfqvbPn+VWVp Y1PTK7nQiF7WB5k7xcyI3wn14Hg8C7rADm86Qi0R/tlA4941cNkzOAsew1/VL6ydlZCo uiAA== X-Gm-Message-State: AOUpUlG2zAmbO7Ho/1lj1o31w2qab0Jr5EAnlKM5rFNimGK/HVDehgKq QtXtKvjIfyVi/91N4NhWHknO7UAmtetLED3zNw6t9Q== X-Received: by 2002:a02:2505:: with SMTP id g5-v6mr51344060jag.112.1535021134712; Thu, 23 Aug 2018 03:45:34 -0700 (PDT) MIME-Version: 1.0 References: <20180820181333.2527-1-jmkrzyszt@gmail.com> <20180820181333.2527-4-jmkrzyszt@gmail.com> In-Reply-To: <20180820181333.2527-4-jmkrzyszt@gmail.com> From: Linus Walleij Date: Thu, 23 Aug 2018 12:45:22 +0200 Message-ID: Subject: Re: [PATCH 3/3] ARM: OMAP1: ams-delta: register MODEM device earlier To: Janusz Krzysztofik Cc: ext Tony Lindgren , Aaro Koskinen , Greg KH , Jiri Slaby , Linux ARM , Linux-OMAP , linux-serial@vger.kernel.org, "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 20, 2018 at 8:12 PM Janusz Krzysztofik wrote: > Amstrad Delta MODEM device used to be initialized at arch_initcall > before it was once moved to late_initcall by commit f7519d8c8290 ("ARM: > OMAP1: ams-delta: register latch dependent devices later"). The purpose > of that change was to postpone initialization of devices which depended > on latch2 pins until latch2 converted to GPIO device was ready. > > After recent fixes to GPIO handling, it was possible to moove > registration of most of those device back to where they were before. > The same can be safely done with the MODEM device as initialization > of GPIO pins it depends on was moved to machine_init by preceding > patch. > > Move registration of the MODEM device to arch_initcall_sync, not to > arch_initcall, so it is never exposed to potential conflictinh > registration order hazard against OMAP serial ports. > > Signed-off-by: Janusz Krzysztofik Reviewed-by: Linus Walleij Yours, Linus Walleij