Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp6398262ybf; Thu, 5 Mar 2020 20:00:27 -0800 (PST) X-Google-Smtp-Source: ADFU+vufzzQ2+SC6CC03BNkzmsY5ftTEYl5mE1kIG3bTsl1v/60Gw3q+BI+kS88V+K5Tpd+JXs95 X-Received: by 2002:a05:6830:c9:: with SMTP id x9mr1000765oto.8.1583467227564; Thu, 05 Mar 2020 20:00:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583467227; cv=none; d=google.com; s=arc-20160816; b=vJHvBeMkNLT0pYU0QtOVHKPItElgZPTwCgYcmJWRNq04t5ryUJ6W+WyKEh9RtOwTAH jVwI9K0jHcss7Ylg2V6NX5H4ue1CKQF5JPRQ473hKFm3Puo2zwGgKGhTa8Wx037zksPj eUT0jZI9/R5g9/ka5yRQUnpHUNJAYxeFZ9uw6fq2LwnFr5H01pWTpF1ZvjQjN5hhg7NR ToC8UgV5AbvR9ZwmzTDe/A5LdckD0TWYfIAiWKOstkdi1BOUeFqbu/U46bc0YpnZVMzu 7d+jN95XmjEbGSAb4PiAenBGviKgWsx9PHkzOWXFMOzaCiw3BIyPFI1k/WFS80gcSZw2 aNkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=2qPVVfqwz9UM9wZHyYxoBkkcaD1SHpnCU/VILIGMMoI=; b=dyKOsVS+eAGz4mxzff02FA4Atx7pPuWIwIphzBE6oDS4DUnRaOz4yOedpJEVrE0LUW i1iqVdxxqdR4ztM6t32FGZLE5HN8AXNSzWPBdKctghmbTxdK96heQUyi5mVKC7Zoiif3 OvEa9+Q7VS2eFxjCVUPsu3nfFwYW90INzm4S3MeLjKZb3WGQ2Z3lA5L/qzlIagnFeHlh r/gBq9Mz9kMAtFW6h11xuCNDSx0tLg59D3+HWMmJqmELL/UEh69ZkiuvpfdK9ZXUwBia 9wLeWAchZY7tcnrfahiltt8uP3vu03rghaiVQaGlIC/1Kg7W0I063qL0iWV2U2xbJdCH PEnA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k1si650962oic.245.2020.03.05.20.00.16; Thu, 05 Mar 2020 20:00:27 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726811AbgCFD7u (ORCPT + 99 others); Thu, 5 Mar 2020 22:59:50 -0500 Received: from szxga01-in.huawei.com ([45.249.212.187]:3413 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726317AbgCFD7u (ORCPT ); Thu, 5 Mar 2020 22:59:50 -0500 Received: from DGGEMM404-HUB.china.huawei.com (unknown [172.30.72.53]) by Forcepoint Email with ESMTP id 2BC53C5726C0627F8421; Fri, 6 Mar 2020 11:59:46 +0800 (CST) Received: from dggeme709-chm.china.huawei.com (10.1.199.105) by DGGEMM404-HUB.china.huawei.com (10.3.20.212) with Microsoft SMTP Server (TLS) id 14.3.439.0; Fri, 6 Mar 2020 11:59:45 +0800 Received: from dggeme759-chm.china.huawei.com (10.3.19.105) by dggeme709-chm.china.huawei.com (10.1.199.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 6 Mar 2020 11:59:45 +0800 Received: from dggeme759-chm.china.huawei.com ([10.7.64.73]) by dggeme759-chm.china.huawei.com ([10.7.64.73]) with mapi id 15.01.1713.004; Fri, 6 Mar 2020 11:59:45 +0800 From: "tiantao (H)" To: "tiantao (H)" , "Chenfeng (puck)" , "airlied@linux.ie" , "daniel@ffwll.ch" , "tzimmermann@suse.de" , "kraxel@redhat.com" , "alexander.deucher@amd.com" , "tglx@linutronix.de" , "dri-devel@lists.freedesktop.org" , "xinliang.liu@linaro.org" , "linux-kernel@vger.kernel.org" CC: Linuxarm Subject: =?gb2312?B?tPC4tDogW1BBVENIXSBkcm0vaGlzaWxpY29uOiBBZGQgdGhlIGxvYWQgYW5k?= =?gb2312?Q?_unload_for_hibmc=5Fdriver?= Thread-Topic: [PATCH] drm/hisilicon: Add the load and unload for hibmc_driver Thread-Index: AQHV82lyCana5HHxX0yYG6RWbIO84Kg68D0g Date: Fri, 6 Mar 2020 03:59:45 +0000 Message-ID: References: <1583466184-7060-1-git-send-email-tiantao6@hisilicon.com> In-Reply-To: <1583466184-7060-1-git-send-email-tiantao6@hisilicon.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.57.60.129] Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQWxso7oNCg0KCVNvcnJ5o6xwbGVhc2UgaWdub3JlIHRoaXMgcGF0Y2guDQoNCkJlc3QNCg0K LS0tLS3Tyrz+1K28/i0tLS0tDQq3orz+yMs6IExpbnV4YXJtIFttYWlsdG86bGludXhhcm0tYm91 bmNlc0BodWF3ZWkuY29tXSC0+rHtIFRpYW4gVGFvDQq3osvNyrG85DogMjAyMMTqM9TCNsjVIDEx OjQzDQrK1bz+yMs6IENoZW5mZW5nIChwdWNrKSA8cHVjay5jaGVuQGh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