Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp987640ybl; Mon, 2 Dec 2019 22:59:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwL4ZYrrqOd6WBPg6qEQmac2VOeCWABgL+YBZs9xJx217u/9n9NzTqTQn2XoD7bS7Kl5nYI X-Received: by 2002:aca:d483:: with SMTP id l125mr2378246oig.124.1575356388408; Mon, 02 Dec 2019 22:59:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575356388; cv=none; d=google.com; s=arc-20160816; b=Mydnm9T1IVW0WYU/OwjfsvNMn+E/Mh3pWsU6s6NQW2Z0GrZXtdfwXsMsQ8fhhwtF8w M6nPOU2BuMa3UgfzzgpeGiqSKT+oagODgvqG1VYzMHIERiot7kOkAyb8/m1I7L/S/JA3 70GqGUJboxowvXvIyLUcmAf3PmWpqdDe4OQQUVN9zg99tgdTPGf3lwRieTK1Lg+POcme xD/RWHPYiEw8t5AuHbOyrYnexHjyn1k6fwMjUs06/hWEuDSNXgwPZc+L8fPOyqTdlwnq jtYa4Z/wBvy/gh12bA0A5vB5P2Qi5K8FfJejxlMVPVmRrCCDbolzGAj4/pNidoF11jIz ZA5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:message-id:date:subject:cc:to :from:dmarc-filter:dkim-signature:dkim-signature; bh=cxga6kZ7DpBNzuE2rkoG3H+Mcpoi/OvQnWcu9UviBhA=; b=Q04qZyYSf6B6G7Nr4HD9Qa7BpVUz7M5qK0EuDIXoHC2nbzHhQ/5s6Ea5DK0BiQf//1 XmPHvF/iV0F8YiEAYsAREC6zOoGqYzw88Nbo98gQLu3rYQVQa0TqWJFmOl1UdbBk/PQ8 WR6KHOU2XP4Li/JCvq+nxyWMCjuHimmjzWAFx+oswOnOz1TeDywyXudNE7v/fhblwvUr K7EYVeOWLOkYXKR9iXw+xOig3Jav6WpCcPePZQ43rPHpA1Od1b94PvFCR80SeN83Znbx 7XqfkFCof1Ef+VUAYE9ucyhCSVNhGARTbJ/8atoob+to1A+M8sdZPodyubndBooPOaM2 jJTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=U9np6V2j; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=Vw2lnnHe; 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 m2si737395otk.122.2019.12.02.22.59.36; Mon, 02 Dec 2019 22:59:48 -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; dkim=pass header.i=@codeaurora.org header.s=zsmsymrwgfyinv5wlfyidntwsjeeldzt header.b=U9np6V2j; dkim=pass header.i=@amazonses.com header.s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx header.b=Vw2lnnHe; 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 S1727415AbfLCG6l (ORCPT + 99 others); Tue, 3 Dec 2019 01:58:41 -0500 Received: from a27-185.smtp-out.us-west-2.amazonses.com ([54.240.27.185]:33938 "EHLO a27-185.smtp-out.us-west-2.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727337AbfLCG6l (ORCPT ); Tue, 3 Dec 2019 01:58:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=zsmsymrwgfyinv5wlfyidntwsjeeldzt; d=codeaurora.org; t=1575356320; h=From:To:Cc:Subject:Date:Message-Id; bh=WY+EofIbsJ0ATyBUY39PBUF9SD8Hg6K0NfdwhCSeY68=; b=U9np6V2j3j2/rhzPirWafSVsRxLjxu4xlrUfB0RRV6Y3aUsTTgePVSCxd6XtG9Gm d0D4cY7kurDRvalGbjKBe9HPkrzQnS/4Gz4+I5R+1efN8do7Dx3scApodCVTPW7mJ6C Yx3yHRuZoKhTOtdWOaNp6h5qeZFHvw96Q4r/0Bqk= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=gdwg2y3kokkkj5a55z2ilkup5wp5hhxx; d=amazonses.com; t=1575356320; h=From:To:Cc:Subject:Date:Message-Id:Feedback-ID; bh=WY+EofIbsJ0ATyBUY39PBUF9SD8Hg6K0NfdwhCSeY68=; b=Vw2lnnHe/3cJm1euDEd9MqLD3tNCdpGXkU4bh+e1zN4k7gvgw+/hUViEbbvlG3qr zvw1VbNpfjTs25/7V65vAb0OXtDgbM2ob4lk7RADmHmd0UT31Lwnnf2Is7oAFQzyZV/ pXBeAKWYykD0XJJ8LbeTeySP5+3EhJq4T45xwJ20= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 428FCC43383 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=cang@codeaurora.org From: Can Guo To: asutoshd@codeaurora.org, nguyenb@codeaurora.org, rnayak@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com, saravanak@google.com, salyzyn@google.com, cang@codeaurora.org Cc: Alim Akhtar , Avri Altman , Pedro Sousa , "James E.J. Bottomley" , "Martin K. Petersen" , Bean Huo , Evan Green , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] scsi: ufs: Give an unique ID to each ufs-bsg Date: Tue, 3 Dec 2019 06:58:40 +0000 Message-ID: <0101016eca8dc9d7-d24468d3-04d2-4ef3-a906-abe8b8cbcd3d-000000@us-west-2.amazonses.com> X-Mailer: git-send-email 1.9.1 X-SES-Outgoing: 2019.12.03-54.240.27.185 Feedback-ID: 1.us-west-2.CZuq2qbDmUIuT3qdvXlRHZZCpfZqZ4GtG9v3VKgRyF0=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Considering there can be multiple UFS hosts in SoC, give each ufs-bsg an unique ID by appending the scsi host number to its device name. Fixes: df032bf27 (scsi: ufs: Add a bsg endpoint that supports UPIUs) Signed-off-by: Can Guo Reviewed-by: Avri Altman Reviewed-by: Christoph Hellwig diff --git a/drivers/scsi/ufs/ufs_bsg.c b/drivers/scsi/ufs/ufs_bsg.c index dc2f6d2..d2197a3 100644 --- a/drivers/scsi/ufs/ufs_bsg.c +++ b/drivers/scsi/ufs/ufs_bsg.c @@ -202,7 +202,7 @@ int ufs_bsg_probe(struct ufs_hba *hba) bsg_dev->parent = get_device(parent); bsg_dev->release = ufs_bsg_node_release; - dev_set_name(bsg_dev, "ufs-bsg"); + dev_set_name(bsg_dev, "ufs-bsg%u", shost->host_no); ret = device_add(bsg_dev); if (ret) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project