Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp970811rdg; Fri, 11 Aug 2023 06:04:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFBDQO6+5OrymlPMdZa5ENlDysesSUj5H/j1v3qBE7vfVWzAV16JOqc0otczrxEiJ7PguKw X-Received: by 2002:aa7:d987:0:b0:523:3f4f:dcd4 with SMTP id u7-20020aa7d987000000b005233f4fdcd4mr2188416eds.16.1691759090582; Fri, 11 Aug 2023 06:04:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691759090; cv=none; d=google.com; s=arc-20160816; b=ZnLAwWRHqYCRS5KczCiPT19n71TOm3ahNqCSt/RItZ3D689ZuMTUGcoyofS4bL7xfv A/1MHytSTxf5x2PS23PoZB/ezOwg9Fr4Dt+fWDHtlL7oH2RAHsGfzIDhgbIz9TGGG8N8 msYN7DbQdmNR9DkBZCbymMS6OMjnjx7W8IgP2xbXiokVZ853GzHArAb3zPtjgZIK6pKK Xj/KOcFnerWyy9DDgzRLdZwoHSsaUKUutJ5YuJhc0tPX2UIo361R1MdBHWyEMmmB3eYt MzvbCt7/jUvpGZK/a4jdTyRfB5vSw6TOEY4PQO87hrAbOql3+Flbo3izh417HcXCeX98 +UTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=CMHuGzCTYdfvTYrn2AHOHTQDvhBgdjY6cSdF+j9kb1I=; fh=JJ3RMNyZnxIEGZTtTxfE8MbNEpNra5c0QZ3mXIR1cmg=; b=geAzmKOnTucFlHphHy28XHnHhETmbmTSAP7BAkpe9dlQpZTxpw/RS+T+gVD/GB5356 J2u6YKmM7TQzHjZDpXRPE0veppD74yx+Q2/icBBfrOMC2xoKvcPyFUGht51RUYsmxucK YqIFb7g6rUV/73AqAPt4u3NPfSDSG2hBiE3N8GGLXmDYrklg/fUqTFil6IBRkAIZkxom vIAOZ1O9TVQuXuOjj53+JHD90zx8h/Ke3cZooSogXEboosV4myv6qPN//vjgXMR8LpLo 7R8someHHnhZZKevhL7i7JRQkWO2KIsLzbAnVN3K3RANI/4/Yi1m3hPot5ziUXdk1W9b GyvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="QgmhZyq/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r5-20020aa7cfc5000000b00522946b4e3asi3260530edy.335.2023.08.11.06.04.23; Fri, 11 Aug 2023 06:04:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="QgmhZyq/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233159AbjHKMCf (ORCPT + 99 others); Fri, 11 Aug 2023 08:02:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbjHKMCe (ORCPT ); Fri, 11 Aug 2023 08:02:34 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 535AE273E; Fri, 11 Aug 2023 05:02:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691755354; x=1723291354; h=from:to:cc:subject:date:message-id; bh=B0O4hi7hQYoBUUzuAn//fKEUpIesDWRIrAPu2Jc+J+w=; b=QgmhZyq/G2Ew4KsGooG5O+DvswBWYvdrzE3fmWDSOP4iyxYNNSRHjKVp RayLQmumS7xa3vuSoq+Q0fa+gNn/0Y24sM/XXLnItZXqReD38pJf2kPGI n3D5/rjxSoDg22GT0b2rDqA0vXiui8u/zLd4nSmVVtK68C2PW9cK2EaTE K4TGhPnkuk4d+mMDNUcjWaogpm+gxHwStaCCPZCnd644l/8v4sb7RW4qK VEGvC+c3RWznKCWGBMmTXySURWfNTlSbgfjP0fyVeliKL+CrIaArGlgmH K2nHHrv6s5Ds+cwAVxSBNTBkXEzIF60i88cH4gaJdDz4QPZ/UXBdyX8e9 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="438000649" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="438000649" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Aug 2023 05:02:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10798"; a="906420504" X-IronPort-AV: E=Sophos;i="6.01,165,1684825200"; d="scan'208";a="906420504" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by orsmga005.jf.intel.com with ESMTP; 11 Aug 2023 05:02:30 -0700 From: Raag Jadav To: wim@linux-watchdog.org, linux@roeck-us.net, mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, mallikarjunappa.sangannavar@intel.com, pandith.n@intel.com, Raag Jadav Subject: [PATCH v1] watchdog: intel-mid_wdt: add MODULE_ALIAS() to allow auto-load Date: Fri, 11 Aug 2023 17:32:20 +0530 Message-Id: <20230811120220.31578-1-raag.jadav@intel.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When built with CONFIG_INTEL_MID_WATCHDOG=m, currently the driver needs to be loaded manually, for the lack of module alias. This causes unintended resets in cases where watchdog timer is set-up by bootloader and the driver is not explicitly loaded. Add MODULE_ALIAS() to load the driver automatically at boot and avoid this issue. Fixes: 87a1ef8058d9 ("watchdog: add Intel MID watchdog driver support") Signed-off-by: Raag Jadav Reviewed-by: Andy Shevchenko --- drivers/watchdog/intel-mid_wdt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/watchdog/intel-mid_wdt.c b/drivers/watchdog/intel-mid_wdt.c index 9b2173f765c8..fb7fae750181 100644 --- a/drivers/watchdog/intel-mid_wdt.c +++ b/drivers/watchdog/intel-mid_wdt.c @@ -203,3 +203,4 @@ module_platform_driver(mid_wdt_driver); MODULE_AUTHOR("David Cohen "); MODULE_DESCRIPTION("Watchdog Driver for Intel MID platform"); MODULE_LICENSE("GPL"); +MODULE_ALIAS("platform:intel_mid_wdt"); -- 2.17.1