From patchwork Mon Nov 27 19:05:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Stefan_Br=C3=BCns?= X-Patchwork-Id: 10077955 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1B92B602BC for ; Mon, 27 Nov 2017 19:08:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C02128E0D for ; Mon, 27 Nov 2017 19:08:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 00D9428F67; Mon, 27 Nov 2017 19:08:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8E27428E0D for ; Mon, 27 Nov 2017 19:08:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Message-ID:MIME-Version:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=lFpd9nlh7VMFunJr7xs8KH/mmb5gkyCkQ6Jy2wdVlfY=; b=cRcd5fJXqqF5am XIFoMQ/q/47pBejU4ysz4hlPmY1eeFMTiUZDD2PXug/vD74AX6F181TNHzTCcEydaBXHwuxeUkIf9 l7C3Dq50UO1Bv+dIRJP+Sb1f3Wj5rxspOK9tj8dUHv7Y4iTpPXzmeQnajbOQ1EP69WjwPSp9McEhg 0XXM9tZ+D0QZl5jm7mRadxfPlHwf427L1oGgoGj1WkBzEdi9LrioAvyTF7Bg1o5c0YyeTLYW8UpDt 1P4hAp4EJmMB0U7fbVJsAP0llGwtLYb8wjUEn1p5hXCwkfz+1+gkK5mdkIdn2mJj14qVeKuKKnqW4 pOLvJXHb+9mYL9xYT4/A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eJOlJ-0005c2-SS; Mon, 27 Nov 2017 19:08:13 +0000 Received: from mail-out-2.itc.rwth-aachen.de ([134.130.5.47]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eJOlF-0005b7-VS for linux-arm-kernel@lists.infradead.org; Mon, 27 Nov 2017 19:08:12 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2CUBwDzYRxa/54agoZdHAEBAQQBAQoBA?= =?us-ascii?q?YM8gXsHg3iZNIFXmSQKhTuEdkMUAQEBAQEBAQEBayiFSQ8BRjUCJgJfDgWKIgS?= =?us-ascii?q?nCIInhBGGaQEBAQcCASUJAYEFgiuCB4M+KQuIX4JJgmMFokaBDp9+h06WDQICA?= =?us-ascii?q?gIJAhqBOjYigVBwgnaCUhyBaHaJEwGBEwEBAQ?= X-IPAS-Result: =?us-ascii?q?A2CUBwDzYRxa/54agoZdHAEBAQQBAQoBAYM8gXsHg3iZNIF?= =?us-ascii?q?XmSQKhTuEdkMUAQEBAQEBAQEBayiFSQ8BRjUCJgJfDgWKIgSnCIInhBGGaQEBA?= =?us-ascii?q?QcCASUJAYEFgiuCB4M+KQuIX4JJgmMFokaBDp9+h06WDQICAgIJAhqBOjYigVB?= =?us-ascii?q?wgnaCUhyBaHaJEwGBEwEBAQ?= X-IronPort-AV: E=Sophos;i="5.44,465,1505772000"; d="scan'208";a="25998454" Received: from rwthex-w2-a.rwth-ad.de ([134.130.26.158]) by mail-in-2.itc.rwth-aachen.de with ESMTP; 27 Nov 2017 20:07:51 +0100 Received: from localhost.localdomain (88.153.7.162) by rwthex-w2-a.rwth-ad.de (2002:8682:1a9e::8682:1a9e) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.26; Mon, 27 Nov 2017 20:07:49 +0100 From: =?UTF-8?q?Stefan=20Br=C3=BCns?= To: Subject: [PATCH v2] sunxi-rsb: Include OF based modalias in device uevent Date: Mon, 27 Nov 2017 20:05:34 +0100 X-Mailer: git-send-email 2.15.0 MIME-Version: 1.0 X-Originating-IP: [88.153.7.162] X-ClientProxiedBy: rwthex-w1-b.rwth-ad.de (2002:8682:1a9d::8682:1a9d) To rwthex-w2-a.rwth-ad.de (2002:8682:1a9e::8682:1a9e) Message-ID: <53cb17f5-6077-419a-8e5c-6c80f9dfa9dc@rwthex-w2-a.rwth-ad.de> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171127_110810_352803_3D1D0F37 X-CRM114-Status: UNSURE ( 8.58 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , Arnd Bergmann , linux-kernel@vger.kernel.org, stable , Chen-Yu Tsai , Maxime Ripard , =?UTF-8?q?Stefan=20Br=C3=BCns?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Include the OF-based modalias in the uevent sent when registering devices on the sunxi RSB bus, so that user space has a chance to autoload the kernel module for the device. Fixes a regression caused by commit 3f241bfa60bd ("arm64: allwinner: a64: pine64: Use dcdc1 regulator for mmc0"). When the axp20x-rsb module for the AXP803 PMIC is built as a module, it is not loaded and the system ends up with an disfunctional MMC controller. Cc: stable Signed-off-by: Stefan BrĂ¼ns Acked-by: Maxime Ripard Acked-by: Chen-Yu Tsai --- drivers/bus/sunxi-rsb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bus/sunxi-rsb.c b/drivers/bus/sunxi-rsb.c index 328ca93781cf..1b76d9585902 100644 --- a/drivers/bus/sunxi-rsb.c +++ b/drivers/bus/sunxi-rsb.c @@ -178,6 +178,7 @@ static struct bus_type sunxi_rsb_bus = { .match = sunxi_rsb_device_match, .probe = sunxi_rsb_device_probe, .remove = sunxi_rsb_device_remove, + .uevent = of_device_uevent_modalias, }; static void sunxi_rsb_dev_release(struct device *dev)