Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1100395imm; Tue, 2 Oct 2018 02:44:13 -0700 (PDT) X-Google-Smtp-Source: ACcGV61FkNg4F1QhMYr5XmxGKR+DQq4WWi67Vr/q+4oRB0Ww+HncVZ5QhSEolYZC/Y/K+BvKyMgH X-Received: by 2002:a63:7a50:: with SMTP id j16-v6mr13833933pgn.112.1538473453411; Tue, 02 Oct 2018 02:44:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538473453; cv=none; d=google.com; s=arc-20160816; b=mxm+KoDLiU9iQeKekwRpAonxDTR4SGX6yj2rzxoOE2t1oow6b0gMfweqUX/zskOy3s 3hcaymSrMGoapdwJMFBAasev6KW/WiPs6mjl4SKBm2agK8tyCkTfQ5Kk6WtVXbif8PLT yc8W6HKbigsWC6wWqJdlREaOstQA+kmUKHBXskSFR2dg0lm9rOxD6BfQMxUreDEV/FvT gygKNqWyJWAXo3xC2vvH5wyAxU52AZDKME/fmiOs14AlNVR5d1kS0MkluRrFlr2pGDr8 9ePzGpafE3f79Ovoe0z41Cod5JjQYsyEbMpjE61UHTqm1G0OqCwnilMVdmESbF7zKgm2 lAOw== 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 :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=NBPNFL4IRLp9ozKvdY7RxFmMv8N4is682pl71zVzACo=; b=Zb6DNrW1BYwXB9cNM1PpQk22zD3leoYsrjHM232mbdbjO9d0pxSSLb6v5kPeayU8oZ mBL4J2Nv564PHTvJwkKINlVxFU8DOjLFz6ax0hiWyuXoyKH01IhrT6fUeYgEaAFZZncv xEworIpnhjn8nj6ITmpnaKnioipfeDg+AYfAICSIN8T5k/SFlPmD/OzuPvCSY7TPQvew /DOcltlZy21t9eUFk9BgU3viec4qM9p7ttr7C27e0E35+7tYTZsOnAW65rK9E/burGWK c/p7PYx/KcutBh2FlU5FsCVwDGg7bSfGZAzmLbllGiKxBZ6ud/eemHAVwCFGKJ+eQN2P W8rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b="TswmtvV/"; 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=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gn7si14842380plb.264.2018.10.02.02.43.58; Tue, 02 Oct 2018 02:44:13 -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=@nxp.com header.s=selector1 header.b="TswmtvV/"; 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=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727482AbeJBQ0E (ORCPT + 99 others); Tue, 2 Oct 2018 12:26:04 -0400 Received: from mail-eopbgr00055.outbound.protection.outlook.com ([40.107.0.55]:64032 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726321AbeJBQ0E (ORCPT ); Tue, 2 Oct 2018 12:26:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NBPNFL4IRLp9ozKvdY7RxFmMv8N4is682pl71zVzACo=; b=TswmtvV/RrmaGD+6CwDWk4ZPmTEfdpV3NuFASjgwIB2IlVnOh2gJGt+OEY+n+jH9RJmQIP73muMxi9EE4DCn7UBigRifmPl8wyqmOgXiybgEOHdmjueebvmVO/Vg9VGGMK9Co6VUDX45FY99FiyNkW9CTAFHs7NNPrftOaiB8Zs= Received: from HE1PR0401MB2363.eurprd04.prod.outlook.com (10.168.33.8) by HE1PR0401MB2508.eurprd04.prod.outlook.com (10.168.147.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.25; Tue, 2 Oct 2018 09:43:36 +0000 Received: from HE1PR0401MB2363.eurprd04.prod.outlook.com ([fe80::10fa:841f:d25c:a565]) by HE1PR0401MB2363.eurprd04.prod.outlook.com ([fe80::10fa:841f:d25c:a565%10]) with mapi id 15.20.1185.024; Tue, 2 Oct 2018 09:43:36 +0000 From: Ioana Ciornei To: Greg KH CC: "idryomov@gmail.com" , "sage@redhat.com" , "elder@kernel.org" , "jth@kernel.org" , "benh@kernel.crashing.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "ceph-devel@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-scsi@vger.kernel.org" Subject: RE: [PATCH] driver core: device: add BUS_ATTR_WO macro Thread-Topic: [PATCH] driver core: device: add BUS_ATTR_WO macro Thread-Index: AQHUWZxbI1CVKGkJjk2ecx6zC3HfWaUK4nYAgADLczA= Date: Tue, 2 Oct 2018 09:43:35 +0000 Message-ID: References: <1538407972-9340-1-git-send-email-ioana.ciornei@nxp.com> <20181001210804.GA24332@kroah.com> In-Reply-To: <20181001210804.GA24332@kroah.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=ioana.ciornei@nxp.com; x-originating-ip: [86.34.165.90] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;HE1PR0401MB2508;6:zHoZUcXcF8mkm8RQWZ7rKWbwV2bn8rUUvtOyDReYfog6thQG67c3n6y/gZJt1hkY6berU36TuQmk9BEssgD0xq3CLKy0sLZvyN7X8mXbWZHELlmWaAQLEDrlAgipIM6Lfd5U95cD7VS7b0TLvFon/383rYe9dCw060OE29KIEFSxy6BRNa9idmqZMN9baZUFbMMlZVXu8I7iW05pFKssML+Y7eRAFLgUtfwyYyESGNU/rl7JBDp+84zzsHh1dkmB6Z627VtbR0tkrlw1FJ8tAfo0cmaH2JvrEI3iJoHVZ635/eB3W2u5eigoJeJvQ4TzI0p9XBEXrDIazqvB/cOlWIogtDFWkR6NffeXvJhDGaPA0NgOj+HvBTXXaL9niFSz+tXM9Rxpe7pqRcL09zEmuZYPl+NvAHEi7KJZRC1ybo2ma3Etywd7ykLhufOKi8eUveYiBqajeYS+W9mOFsCf7Q==;5:xa1U1OZQOxUsG2o565Et2ijNyHaOndo955V2yci39DeZGBJpDdcSSonEcNzPJsjIkI5uxJBs8FGCcq9dAQezk2l7P8D/DCNvJG9w3njqjgxsCjCWPah1RpVijn6+4xrWVvlUXjlVoAejKUpLjs+SP9HWBTeiqp1BsWJuYRzIZdI=;7:KjxrDnqymfpUikP91wGrYLb1nYsTM4axiOKWPet9RtOcjNX7B75Y1OXWBtuKUCVEJxPPA81L+sRI6977CWdY9BL5p9O/jlWbKQ1caMdFSd3X0/ISTgDqDt6nLyjlON47CuD+DC4HpAoQhznvypApxSDRnZlcYjQ27D28/MZCbe1l4Wiz1Y+vlZhdqQo+MYTBV2rcLyEZ0kLIQ1ON/8pNbiwA0PGF1FUfoznF51LBipWf+ACoi6WFLKRuP8I1m5QQ x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: 51441aed-eaed-4c46-9d3b-08d6284b864d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:HE1PR0401MB2508; x-ms-traffictypediagnostic: HE1PR0401MB2508: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(84791874153150)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231355)(944501410)(52105095)(10201501046)(3002001)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051);SRVR:HE1PR0401MB2508;BCL:0;PCL:0;RULEID:;SRVR:HE1PR0401MB2508; x-forefront-prvs: 0813C68E65 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(376002)(396003)(136003)(346002)(189003)(199004)(86362001)(2900100001)(102836004)(5250100002)(316002)(186003)(26005)(105586002)(106356001)(6506007)(99286004)(478600001)(33656002)(76176011)(14454004)(7696005)(7736002)(966005)(39060400002)(7416002)(74316002)(6246003)(446003)(11346002)(54906003)(305945005)(68736007)(44832011)(486006)(25786009)(476003)(97736004)(53936002)(66066001)(81156014)(8936002)(4326008)(229853002)(5660300001)(6116002)(3846002)(9686003)(6306002)(6436002)(55016002)(256004)(8676002)(2906002)(71200400001)(81166006)(6916009)(71190400001);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR0401MB2508;H:HE1PR0401MB2363.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: 5FoqNjsn7vBGoeNb3DQlVHeW3V05jKX7J/rhE+bbkeu0NUVElk94KC4I9CV4Y0VjPI4OyeyobFNQyAkH4hwBqfoqZuxXJ5rubvp9bYJvESsCbb2mdFt/2PUogSS2AyS0zyDuDm1s0/LIA5SteHbbtJJrsBp+KUZbjubXCyqARH+xfIrrq85ND70P+pvO6kdo0wnVViPLlmrip1PYDkJrfUkhn7CiUMST+FGt8iSJNL0ltAqtnGfIe7zhu7RDQcYhui3/Z9ywoJ0NbWY8klM6q6KOyrmlEyFLsOO0txPJwOwklcJOHsvIjRdeXjQYlHawk0dq1thi9He7SlIP51JokYh90KoufcsH4oOWHj64sL0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 51441aed-eaed-4c46-9d3b-08d6284b864d X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Oct 2018 09:43:35.7739 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2508 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > Add BUS_ATTR_WO macro to make it easier to add attributes without > > auditing the mode settings. Also, use the newly added macro where > > appropriate. > > > > Signed-off-by: Ioana Ciornei > > --- > > arch/powerpc/platforms/pseries/ibmebus.c | 12 ++++---- > > drivers/block/rbd.c | 48 ++++++++++++++++--------= -------- > > drivers/scsi/fcoe/fcoe_sysfs.c | 4 +-- > > drivers/scsi/fcoe/fcoe_transport.c | 10 +++---- > > include/linux/device.h | 2 ++ > > include/scsi/libfcoe.h | 8 +++--- > > 6 files changed, 43 insertions(+), 41 deletions(-) >=20 > Nice! This duplicates a lot of the work I did back in July but have not = pushed out > very far due to the other things that ended up happening around that time= : > https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git/l= og/?h=3Dbus_cleanup=20 >=20 > As the patch series seen at that link shows, you can do this in more plac= es than > just what you did here. >=20 > Either way, you should break this up into the individual patches, like I = did or you > can take my patches if you want. Getting the BUS_ATTR_WO() macro added i= s > good to do now, and then you can go and hit up all of the different subsy= stems > that should be converted over to it. I can of course split my patch into individual ones and resubmit them, but = as you already have the entire patch set ready, I feel like we can just pus= h those. I looked through your changes and it seems like you covered all th= e subsystems. Please let me know if there is something else I should do. My intention here was to first add the _WO attribute so that afterwards I c= an add a new bus attribute in the fsl-mc bus. Ioana >=20 > thanks, >=20 > greg k-h